<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28192</bug_id>
          
          <creation_ts>2015-03-11 14:07:17 +0000</creation_ts>
          <short_desc>[XSLT30] Note in streamability of for-expressions does not match text</short_desc>
          <delta_ts>2015-10-29 09:50:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118528</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-11 14:07:17 +0000</bug_when>
    <thetext>The text and Note say (partially):

&lt;quote&gt;
Writing the expression as for $v in S return R, the two operand roles are S and R.

&lt;snip /&gt;

&lt;note&gt;
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.
&lt;/note&gt;
&lt;/quote&gt;

But this is not (entirely) true. It is &quot;S&quot; 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 &quot;for $n in para return copy-of($n/@indent)&quot; streamable, because the operand R is motionless, but currently we disallow this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118568</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-12 18:14:58 +0000</bug_when>
    <thetext>The correction was accepted and has been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>