This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Test of current element


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]