[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|