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 28192 - [XSLT30] Note in streamability of for-expressions does not match text
Summary: [XSLT30] Note in streamability of for-expressions does not match text
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: 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: 2015-03-11 14:07 UTC by Abel Braaksma
Modified: 2015-10-29 09:50 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2015-03-11 14:07:17 UTC
The text and Note say (partially):

<quote>
Writing the expression as for $v in S return R, the two operand roles are S and R.

<snip />

<note>
The rule that R must be grounded prevents the variable being bound to a node in a streamed document. This disallows expressions of the form for $x in child::section return $x/para, because this requires data flow analysis (tracing from the binding of a variable to its usages), rather than purely syntactic analysis. Some implementations may be able to stream such constructs.
</note>
</quote>

But this is not (entirely) true. It is "S" that must be grounded that prevents the variable from being bound to a node.

The rest of the text seems correct.

Note that we could make "for $n in para return copy-of($n/@indent)" streamable, because the operand R is motionless, but currently we disallow this.
Comment 1 Michael Kay 2015-03-12 18:14:58 UTC
The correction was accepted and has been applied.