xsl-list
[Top] [All Lists]

Re: Problems trying to run FXSLT-XSLT2

2004-11-26 03:51:21
On 23 Nov 2004 11:24:47 +0000, Colin Paul Adams
<colin(_at_)colina(_dot_)demon(_dot_)co(_dot_)uk> 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 
%Gï¿¿%(_at_)(_dot_)(_dot_)(_dot_)e-set($vrtfSingleBookAmounts)/*%Gï¿¿%@:
   Unknown function: saxon:node-set
At line 46 in file:///home/colin/fxslt/runningTotal.xsl:
Fatal error: XP0017: XPath syntax error in 
%Gï¿¿%(_at_)(_dot_)(_dot_)(_dot_)e-set($vrtfSingleBookAmounts)/*%Gï¿¿%@:
   Unknown function: saxon:node-set
At line 51 in file:///home/colin/fxslt/runningTotal.xsl:
Fatal error: XP0017: XPath syntax error in 
%Gï¿¿%(_at_)(_dot_)(_dot_)(_dot_)n:node-set($vrtfRunningTotal)/*%Gï¿¿%@:
   Unknown function: saxon:node-set
At line 51 in file:///home/colin/fxslt/runningTotal.xsl:
Fatal error: XP0017: XPath syntax error in 
%Gï¿¿%(_at_)(_dot_)(_dot_)(_dot_)n:node-set($vrtfRunningTotal)/*%Gï¿¿%@:
   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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>