[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Problem with xsl:when statement


Subject: [xsl] 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

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
Keywords