Project

Profile

Help

Bug #2310

closed

saxon:next-in-chain extension to xsl:output buggy when xsl:result-document is used

Added by David Sewell almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Serialization
Sprint/Milestone:
Start date:
2015-02-05
Due date:
% Done:

100%

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

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

input.xml (101 Bytes) input.xml simple input XML David Sewell, 2015-02-06 03:19
transform1-noresultdoc.xsl (576 Bytes) transform1-noresultdoc.xsl Transform 1, normal output, chains Transform 2, no problem David Sewell, 2015-02-06 03:19
transform2.xsl (436 Bytes) transform2.xsl Transform 2 David Sewell, 2015-02-06 03:19
transform1-withresultdoc.xsl (649 Bytes) transform1-withresultdoc.xsl Transform 1, uses xsl:result-document, chains Transform 2, buggy David Sewell, 2015-02-06 03:19
Saxon-chain-example.zip (794 KB) Saxon-chain-example.zip Example files for character map problem with saxon:next-in-chain David Sewell, 2015-03-18 20:09

Please register to edit this issue

Also available in: Atom PDF