Bug #3906
closedSample of XSL streaming work in Saxon EE does not work at all
100%
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')) > 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