This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Test of current element
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Test of current element
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 14 Apr 2000 15:49:05 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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