Bug #2310
closedsaxon:next-in-chain extension to xsl:output buggy when xsl:result-document is used
100%
Description
[found in Saxon-PE 9.6.0.4J]
In 9.4 and 9.5 (at least), @saxon:next-in-chain worked fine when the initial transform used xsl:result-document to create one or more result documents in output passed to the next transform in a chain.
With the attached files, saxon -s:input.xml -xsl:transform1-withresultdoc.xsl
produces expected output in the current directory, but complains "No source document has been built by the previous pipeline stage".
Operating on an input directory, e.g. with input.xml copied to a directory In, the command saxon -s:In -o:Out -xsl:transform1-withresultdoc.xsl
writes output to the current directory, not "Out", but reports a transformation failure with "While processing input.xml: No source document has been built by the previous pipeline stage".
(More complex chained transformations may produce other types of buggy behavior. In my actual use case, Transform 2 invokes a character map in its xsl:output element, but Transform 1, which does not use a character map, nevertheless fails with 'SEPM0016: Character map 'specialChar' has not been defined'. The transforms ran without problem under Saxon 9.5.)
Files
Please register to edit this issue