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

Count - Saxon & Xalan

Subject: Count - Saxon & Xalan
From: mjyoungblut@xxxxxxx
Date: Fri, 20 Jul 2001 07:43:21 -0500
xalan count
Hi,
     The following works fine with Saxon, but fails with Xalan with the
error "Can not convert #RTREEFRAG to a NodeList!"

<xsl:variable name="NODES">
     <Nodes>
          <xsl:apply-templates select="Product" mode="Count"/>
     </Nodes>
</xsl:variable>
<!-- The part that fails -->
<xsl:variable name="COUNT">
     <xsl:value-of select="count($NODES//Nodes//Product)"/>
</xsl:variable>

<xsl:template match="Product" mode="Count">
     <!-- <xsl:if statements> -->
          <xsl:copy-of select="."/>
     </xsl:if>
</xsl:template>


Thanks for your help,
     Matt Youngblut


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Count - Saxon & Xalan
    • mjyoungblut - Fri, 20 Jul 2001 08:48:56 -0400 (EDT) <=
      • <Possible follow-ups>
      • mjyoungblut - Fri, 20 Jul 2001 10:03:47 -0400 (EDT)
        • dante - Fri, 20 Jul 2001 10:24:04 -0400 (EDT)
          • LAJ - Fri, 20 Jul 2001 10:58:20 -0400 (EDT)

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.