[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem with xsl:when statement

Subject: Problem with xsl:when statement
From: "Buehl, Reiner \(HPS EMEA GD-C&I\)" <reiner.buehl@xxxxxx>
Date: Fri, 7 Jul 2006 15:48:59 +0200
xsl when expressions
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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.