This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Unable to mix xsl:element and xsl:choose
- To: XSL-List at mulberrytech dot com
- Subject: Unable to mix xsl:element and xsl:choose
- From: Bharat dot Chintapally at CommerceQuest dot com
- Date: Wed, 1 Nov 2000 18:19:17 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
I am unable to mix xsl:element and xsl:choose tags. In the following code I
am just trying to display a different image based on the value of "state".
I am not sure what is missing here. I am using MSXML in IE 5.5.
<font class="Green">
<xsl:element name="a">
<xsl:attribute name="href">
/servlet/com.commercequest.enet.status.web.StatusQuery?report=Document
Detail&uuid=<xsl:value-of select="@uuid"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="state='IN_PROGRESS'">
<img BORDER="0" SRC="/status/media/images/move.gif" WIDTH
="16" HEIGHT="16"/><xsl:value-of select="state"/>
</xsl:when>
<xsl:otherwise>
<img BORDER="0" SRC="/status/media/images/go.gif" WIDTH="16"
HEIGHT="16"/><xsl:value-of select="state"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</font>
Any help is appreciated.
thanks
-- bharat
---------------------------------------------------------------
Bharat Chintapally
CommerceQuest Inc.
bharat.chintapally@commercequest.com
New Phone # 813-639-6478
---------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list