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 29710 - [xslt3.0] Streamability="filter" example
Summary: [xslt3.0] Streamability="filter" example
Status: CLOSED 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-06-27 20:33 UTC by Michael Kay
Modified: 2016-10-06 18:42 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2016-06-27 20:33:44 UTC
In 19.8.5.4, in the example for streamability="filter", we say:

The effect of the rules is that a call to this function is guaranteed streamable provided that the sequence supplied as the value of the $nodes argument is motionless or consuming.

There are several inaccuracies here:

(a) the argument is called $input, not $nodes

(b) its value must be a singleton

(c) it is not values, but expressions, that have posture and sweep

(d) the effect is not that the function call is "guaranteed streamable" but rather than it has the same posture and sweep as the argument supplied to the function.

Proposed rewrite:

The effect of the rules is that the posture and sweep of a function call f:large-regions(EXPR) are the same as the posture and sweep of EXPR.
Comment 1 Michael Kay 2016-06-29 08:04:12 UTC
The rules for constraints on the function body in the entries for the function streamability categories also use some imprecise terminology. For example:

Rules for the function body: For the function to be guaranteed-streamable, the posture of the function result must be striding, and the sweep of the function result must be motionless.

This should say:

Rules for the function body: For the function to be guaranteed-streamable, the type-adjusted posture of the function body with respect to the declared return type must be striding, and the type-adjusted sweep of the function body with respect to the declared return type must be motionless.

(and even this assumes that we know what's meant by "the function body").
Comment 2 Michael Kay 2016-06-30 21:31:33 UTC
The changes were agreed and have been applied.