[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Count - Saxon & Xalan
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|