This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl:choose and xsl:when
- To: xsl-list at mulberrytech dot com
- Subject: Re: xsl:choose and xsl:when
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 19 Jul 2000 18:50:10 GMT
- References: <0A040A4F9023D411804200508BC761DB0824B4@OMMD-OFFC-EXC1>
- Reply-To: xsl-list at mulberrytech dot com
<xsl:template match="ELEMENT">
your current node is the ELEMENT node.
<xsl:choose>
<xsl:when test="ELEMENT = 0">No Change</xsl:when>
you are testing for ELEMENT children of the current node.
so don't do that, do this:
<xsl:choose>
<xsl:when test=". = 0">No Change</xsl:when>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list