Project

Profile

Help

Bug #2304

closed

Streaming: early exit not working

Added by Michael Kay about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Streaming
Sprint/Milestone:
Start date:
2015-02-02
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

When a streaming XSLT 3.0 stylesheet does not need to read the whole input file (for example, because of an xsl:iterate/xsl:break instruction, or because an exists() test is satisfied) it should silently abandon parsing, and return successfully. This is working when streaming is initiated using xsl:stream, but not when the streamed input document is the primary input supplied on the command line, or via the s9api transformation API. In the latter case the transformation is failing with an error, (Error "SXQP0001: No more input required"). This exception is Saxon's internal signal to the parser to abandon its work, and it should not be visible to the user.

A patch will be applied to the 9.6 and 9.7 branches. Test case si-iterate-094 added.

Please register to edit this issue

Also available in: Atom PDF