[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Problem with xsl:when statement
Hi all, I have trouble with a xsl:when expression. My XML input looks like this: <SET> <SEVERITY value="Normal"/> <TROUBLETICKET acknowledge="0"/> </SET> I would like to print "Yes" or "No" depending on the value of @acknowledge but had no success so far with different xsl expressions. This is what I currently have: <xsl:choose> <xsl:when test="SET/TROUBLETICKET"> <tr> <td> <xsl:choose> <xsl:when test="xsl:value-of(select='SET/TROUBLETICKET/@acknowledge')='1'">Yes</xs l:when> <xsl:otherwise>No</xsl:otherwise> </xsl:choose> </td> </tr> </xsl:when> </xsl:choose> Can somebody help me with this expression? Best regards, Reiner.
|
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
|