RE: Test of current element

Subject: RE: Test of current element
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 14 Apr 2000 15:49:05 +0100
> My element looks like this:
> <ID>45</ID>
> 
> My pseudo code:
> <xsl:template match="ID">
> 	<xsl:if value-of = "45">
> 		<xsl:call-template name="doSomething"/>
> 	</xsl:if>
> 	<xsl:value-of />
> </xsl:template>

nearly there...

<xsl:template match="ID">
	<xsl:if test=".='45'">
		<xsl:call-template name="doSomething"/>
 	</xsl:if>
 	<xsl:value-of select="."/>
</xsl:template>

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread