Subject: xsl:choose and xsl:when From: Phillip Mark Reed <preed@xxxxxxxxxxxxxxxxx> Date: Wed, 19 Jul 2000 13:27:37 -0400 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: XSL as a Programming Language, Kay Michael | Thread | Re: xsl:choose and xsl:when, David Carlisle |
Re: Checking for empty values, Mike Brown | Date | Re: Why aren't rules matched with ", Mike Brown |
Month |