[xsl] Count - Saxon & Xalan

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

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

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

Thanks for your help,
     Matt Youngblut

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

Current Thread