This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 30034 - [xslt30] xsl:choose streamability : misleading note
Summary: [xslt30] xsl:choose streamability : misleading note
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-19 09:11 UTC by Michael Kay
Modified: 2017-01-05 22:11 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2016-12-19 09:11:40 UTC
The rules for streamability of xsl:choose (19.8.4.10) are correct but the subsequent Note is misleading: it wrongly suggests that only the first test condition can be consuming. Replace:

Note:

The effect is to allow any of the following:

1. Every sequence constructor in an xsl:when or xsl:otherwise branch may read the input stream. In this situation the test expressions must be motionless.
2. Alternatively, the first test expression may consume the input stream, in which case the sequence constructors (and any subsequent test expressions) must be motionless.

with

Note:

The effect is to allow either of the following:

1. Any or all of the sequence constructors in xsl:when and xsl:otherwise branches may be consuming, in which case the test expressions must all be motionless.

2. Any one of the test conditions may be consuming, in which case all the other test conditions, and all the sequence constructors, must be motionless.
Comment 1 Michael Kay 2017-01-05 22:11:12 UTC
The changes were agreed and have been applied.