<?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>24530</bug_id>
          
          <creation_ts>2014-02-05 20:56:40 +0000</creation_ts>
          <short_desc>Missing streamability result for xsl:map</short_desc>
          <delta_ts>2014-02-17 13:17:00 +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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>cmsmcq</cc>
          
          <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>99823</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-02-05 20:56:40 +0000</bug_when>
    <thetext>Under 19.8.4.22 Streamability of xsl:map (http://www.w3.org/TR/xslt-30/#streamability-xsl-map) there are two numbered items, the first applying to xsl:map having only xsl:map-entry instructions. 

I think that we should split up the first item and write something along the lines that we do for similar instructions to make it clearer what happens:

1. If the sequence constructor within the instruction consists exclusively of xsl:map-entry instructions (and xsl:fallback instructions, which are ignored), the first of the following applies:
a) if any of the xsl:map-entry children is roaming and/or free-ranging, then the posture and sweep are roaming and free-ranging.
b) otherwise, the posture is grounded and the sweep is the widest sweep of the xsl:map-entry children, where the ordering of increasing width is motionless, consuming, free-ranging.

I know this is purely editorial, and one could argue that rule #2 already covers this 1.a. version, but I believe it is clearer this way and more in line with other rules. Note also the addition of the ordering of the sweep, which is copied to many other rules already (which, as it turns out, mentions free-ranging, even though free-ranging is often no option anymore at that stage, leaving only motionless and consuming).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100371</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-12 09:37:34 +0000</bug_when>
    <thetext>The WG discussed this during the ftf meeting in Prague and decided to leave this change to the discretion of the editor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100747</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-17 13:17:00 +0000</bug_when>
    <thetext>Resolved as suggested in the original post.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>