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]

xsl:choose and xsl:when


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

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