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

Re: XSL performance question: running count of attribu

Subject: Re: XSL performance question: running count of attributes using axes and sum()
From: Michael Ludwig <milu71@xxxxxx>
Date: Thu, 9 Apr 2009 23:35:13 +0200
Re:  XSL performance question: running count of attribu
mark bordelon schrieb am 09.04.2009 um 14:14:19 (-0700):
> Lieber Michael,


> Anyway, this line is causing an error in Altova Spy:
> <xsl:variable name="sums" select="exsl:node-set($sums-rtf)"/>
> "File Untitled4.xsl: XSL transformation failed Error in XPath
> expression: Unknown function - Name and number of arguments do
> not match any function signature in the static context -
> 'http://exslt.org/common:node-set'
> Kannst Du mir bitte verklaeren, was ich woll falsch gemacht hab' ;-)

Lieber Mark,

it looks like the processor you're using with Altova doesn't
support the EXSLT node-set() function. I don't know if Altova
has a processor of their own, or if they use MSXML or Xalan or
whatever. The node-set() function is an indispensable add-on for
XSLT 1.0, because it is needed to convert the not very useful
so-called "result tree fragments" (or RTF) to full-fledged useful
node-sets, on which you can use the axes, which you can't on an
RTF, which only allows xsl:value-of and xsl:copy-of.

There is msxsl:node-set() for MSXML, xalan:nodeset() for Xalan,
exsl:node-set() for processor supporting EXSLT. You need to map
the prefix to the correct URI in any case. Should be solvable by
doing a web search. See also:

Support for the msxsl:node-set() Function



Michael Ludwig

Current Thread


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.
First Name
Last Name
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.