<?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>29710</bug_id>
          
          <creation_ts>2016-06-27 20:33:44 +0000</creation_ts>
          <short_desc>[xslt3.0] Streamability=&quot;filter&quot; example</short_desc>
          <delta_ts>2016-10-06 18:42:27 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Michael Kay">mike</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>126845</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-06-27 20:33:44 +0000</bug_when>
    <thetext>In 19.8.5.4, in the example for streamability=&quot;filter&quot;, 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 &quot;guaranteed streamable&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126852</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-06-29 08:04:12 +0000</bug_when>
    <thetext>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&apos;s meant by &quot;the function body&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126874</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-06-30 21:31:33 +0000</bug_when>
    <thetext>The changes were agreed and have been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>