This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:choose and xsl:when
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: xsl:choose and xsl:when
- From: Phillip Mark Reed <preed at aethersystems dot com>
- Date: Wed, 19 Jul 2000 13:27:37 -0400
- Reply-To: xsl-list at mulberrytech dot com
here's my circumstance:
<xsl:apply-templates/>
:
:
<xsl:template match="ELEMENT">
<xsl:call-template name="hdml-tag-line"/>
<xsl:value-of select="$fin-tag-tick"/>
<xsl:call-template name="hdml-tag-tab"/>
<xsl:choose>
<xsl:when test="ELEMENT = 0">No Change</xsl:when>
<xsl:when test="ELEMENT = 1">Up</xsl:when>
<xsl:when test="ELEMENT = 2">Down</xsl:when>
</xsl:choose>
</xsl:template>
where XML includes:
<ELEMENT>2</ELEMENT>
the desired result would be a display of:
No Change -- when the value in the element <ELEMENT> is 0
Up -- when the value in the element <ELEMENT> is 1
Down -- when the value in the element <ELEMENT> is 2
any suggestions. a preferred method would be one that does not suggest
changes to the DTD. thanks.
mark
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list