<?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>25335</bug_id>
          
          <creation_ts>2014-04-13 08:56:54 +0000</creation_ts>
          <short_desc>[xslt 3.0] Streamed merging</short_desc>
          <delta_ts>2014-05-15 14:00:46 +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>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>
          <cc>abel.braaksma</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>103799</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-04-13 08:56:54 +0000</bug_when>
    <thetext>There are two specific problems with section 15.4 on streamable merging:

(a) We say the xsl:merge-source/@select attribute must be striding, but in several of the examples it is grounded

(b) We place no constraints on the use of the current-merge-group() function within the xsl:merge-action (or within the merge keys).

I think these problems are not superficial. The concepts of sweep and posture have been developed with the idea in mind that there is only one streamable document and that it is the document containing the context item. Generalizing this to multiple input documents is non-trivial.

I currently feel that the right answer is to insist that xsl:merge-source/@select is grounded (e.g. by using copy-of() or snapshot()), in which case we do not need to place any constraints on xsl:merge-action or the use of current-merge-group().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103949</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-04-16 08:28:16 +0000</bug_when>
    <thetext>*** Bug 24343 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104326</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-04-24 10:37:28 +0000</bug_when>
    <thetext>The working group discussed this on 2014-04-17 and agreed with this direction. When streaming is requested and xsl:merge-source/@for-each-stream is used, the nodes selected using the @select attribute will be subjected to an implicit call on snapshot().</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>