Project

Profile

Help

Bug #3906

closed

Sample of XSL streaming work in Saxon EE does not work at all

Added by Ig Savin over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Build and release
Sprint/Milestone:
-
Start date:
2018-09-17
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, 9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:

Description

Hi,

I am using an evaluation version of your product (Saxon EE) and faced with the following issue. When I run the sample devoted for XSLT streaming, I get the following error during run-time:

        String s = "<xsl:transform version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:saxon='http://saxon.sf.net/'>\n" +
            " <xsl:template name='main'> " +
            " <xsl:value-of select=\"count(saxon:stream(doc('" + new Uri(samplesDir, "data/othello.xml").ToString() + "')//LINE[count(tokenize(.,'/s')) &gt; 0] ))\" />" +
            " </xsl:template></xsl:transform>";


        // Create a transformer for the stylesheet.
        XsltTransformer transformer = processor.NewXsltCompiler().Compile(new StringReader(s)).Load();

===== XsltStreamDoc =======

Test failed unexpectedly (net.sf.saxon.trans.XPathException): Errors were reported during stylesheet compilation bei net.sf.saxon.style.Compilation.compileSingletonPackage(Configuration config, CompilerInfo compilerInfo, Source source) bei Saxon.Api.XsltCompiler.Compile(TextReader input) bei ConsoleApplication1.XsltStreamDoc.run(Uri samplesDir) in C:\prj\for Tests\Saxon\ConsoleApplication1\ConsoleApplication1\Program.cs:Zeile 2559. bei ConsoleApplication1.Program.Main(String[] argv) in C:\prj\for Tests\Saxon\ConsoleApplication1\ConsoleApplication1\Program.cs:Zeile 185.

What I am doing wrong with your product? The underlying "data/othello.xml" is from your official samples.

Please register to edit this issue

Also available in: Atom PDF