Error message "Cannot use a schema-validated source document unless the stylesheet is schema-aware" when using xsl:output saxon:next-in-chain with Saxon 9.8 EE and streaming
Please register to reply
Added by Martin Honnen over 7 years ago
When I use Saxon 9.8.0.4 EE (both the .NET and the Java version) from the command line against a stylesheet with both @<xsl:mode on-no-match="shallow-copy" streamable="yes"/>@ and @<xsl:output saxon:next-in-chain="test201708180311.xsl"/>@ then the transformation fails with an error "Cannot use a schema-validated source document unless the stylesheet is schema-aware".
Here is the main stylesheet:
The next-in-chain code is
Input can be any XML document.
Should this work? Is this fixed by the https://saxonica.plan.io/issues/3407 or this not related?
I am getting a similar error message "The source document has been schema-validated, but the stylesheet is not schema-aware." when trying to write my own C# code and using a second XsltTransformer as the destination of a first XsltTransformer but I guess it is better putting that code and API use related question in a separate thread.
Please register to reply