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

RE: Nested xsl:when

Subject: RE: Nested xsl:when
From: "Danny Leblanc" <leblancd@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 25 Sep 2006 17:54:46 -0400
RE:  Nested xsl:when
Turns out that there is a closing tag after the first xsl:for-each that was
put in by mistake.

So the issue is solved.

Thanks

-----Original Message-----
From: Danny Leblanc
Sent: Monday, September 25, 2006 5:15 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Nested xsl:when


Hello everyone,

  Just a quick question. Are nested xsl:whens permitted in an XSL transform? I
am getting errors raised by both Saxon and Altova XSLT with the following
script (about xsl:when not matching up)

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" />

  <xsl:template match="test/Test_Log/PAO_Compare_Test">
    <xsl:for-each select="Test_Results">
      <xsl:sort select="FormName"/>
      <xsl:value-of select="FormName"/>
      <xsl:choose>
        <xsl:when test="FormStatus='FAIL'">
          <ab/>
        </xsl:when>
        <xsl:otherwise>
          <cd/>
        </xsl:otherwise>
      </xsl:choose>
      <xsl:for-each select="FormPage"/>
        <xsl:value-of select="FormPage/Page"/>
        <xsl:value-of select="FormPage/Code"/>
      </xsl:for-each>
    </xsl:for-each>
  </xsl:template>
</xsl:stylesheet>

  Any thoughts on this would be appriciated.

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.