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

Re: Problems trying to run FXSLT-XSLT2

Subject: Re: Problems trying to run FXSLT-XSLT2
From: Dimtre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 26 Nov 2004 21:51:21 +1100
could not compile stylesheet
On 23 Nov 2004 11:24:47 +0000, Colin Paul Adams
<colin@xxxxxxxxxxxxxxxxxx> wrote:
> I guessed that running runningTotal.xsl against booklist.xml
> might be a reasonable test, but it fails rather miserably:
>
> At line 46 in file:///home/colin/fxslt/runningTotal.xsl:
> Fatal error: XP0017: XPath syntax error in
%Go??%@...e-set($vrtfSingleBookAmounts)/*%Go??%@:
>    Unknown function: saxon:node-set
> At line 46 in file:///home/colin/fxslt/runningTotal.xsl:
> Fatal error: XP0017: XPath syntax error in
%Go??%@...e-set($vrtfSingleBookAmounts)/*%Go??%@:
>    Unknown function: saxon:node-set
> At line 51 in file:///home/colin/fxslt/runningTotal.xsl:
> Fatal error: XP0017: XPath syntax error in
%Go??%@...n:node-set($vrtfRunningTotal)/*%Go??%@:
>    Unknown function: saxon:node-set
> At line 51 in file:///home/colin/fxslt/runningTotal.xsl:
> Fatal error: XP0017: XPath syntax error in
%Go??%@...n:node-set($vrtfRunningTotal)/*%Go??%@:
>    Unknown function: saxon:node-set
> Could not compile stylesheet: There were error compiling the stylesheet
>
> What's an XSLT2 version doing trying to use saxon:node-set?
> XSLT2 doesn't need any node-set extension functions.

Which confirms that it is better to ask than to try guessing...

See a reply to your previous one-sentence post for detailed information.

As for this specific example, it ran successfully with Saxon 7.x in
June 2003. Many things changed since then, so your question is out of
synch. In particular:

 1. The Saxon's namespace-uri was changed

 2. saxon:node-set() is no longer supported in XSLT 2.0

However, EXSLT is supported (in Saxon 8.0).

Change line 3 from:

      xmlns:saxon="http://icl.com/saxon"

to:

      xmlns:saxon="http://exslt.org/common"

then the transformation runs successfully with

Saxon 8.0 from Saxonica
Java version 1.4.2_04



If more explanations are needed, please, contact me off-list and I'd
be happy to assist.

Cheers,
Dimitre.

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.