<?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>30378</bug_id>
          
          <creation_ts>2018-12-17 22:06:47 +0000</creation_ts>
          <short_desc>[XSLT30] Streamability, error XTSE3195 does not disallow absence of for-each-source and for-each-item with the streamable attribute present</short_desc>
          <delta_ts>2018-12-20 19:23:50 +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>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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.online</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>129452</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2018-12-17 22:06:47 +0000</bug_when>
    <thetext>Error XTSE3195 reads as:

&quot;[ERR XTSE3195] If the for-each-item is present then the for-each-source, use-accumulators, and streamable attributes must both be absent. If the use-accumulators attribute is present then the for-each-source attribute must be present. If the for-each-source attribute is present then the for-each-item attribute must be absent. &quot;

But the prose doesn&apos;t cover the scenario where neither for-each-item and for-each-source are present, but streamable is present.

I think the intent of this error is to prevent confusion with streamable=&quot;yes&quot; and disallows its appearance in any other scenario unless for-each-source is also present.

If we were to allow streamable=&quot;yes&quot; with an absent for-each-stream, we&apos;d run into conflict with the streamability rules for xsl:merge, which requires all expressions to be grounded and motionless. So the potential streaming input in that case would end up being non-streaming anyway.

I suggest we fix it simply by adding the case to the error, for instance something like this:

&quot;[ERR XTSE3195] If the for-each-item is present then the for-each-source, use-accumulators, and streamable attributes must both be absent. If the use-accumulators *** and/or streamable *** attribute is present then the for-each-source attribute must be present. If the for-each-source attribute is present then the for-each-item attribute must be absent. &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129460</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2018-12-20 19:23:50 +0000</bug_when>
    <thetext>It appears that the resolution for bug #29804 wasn&apos;t applied completely, which deals with the scenario and permits the presence of use-accumulators, except that it is ignored unless streaming is requested.

Not sure how to move forward with this, though what&apos;s written in comment#0 seems to be the least obtrusive way forward (but doesn&apos;t fully resolve the prev. bug), which is likely preferred considering we&apos;re in REC status.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>