<?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>24648</bug_id>
          
          <creation_ts>2014-02-13 09:59:05 +0000</creation_ts>
          <short_desc>[xslt 3.0] Incorrect Notes re dynamic use of current-group() and current-grouping-key()</short_desc>
          <delta_ts>2014-05-15 14:00: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>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="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>100478</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2014-02-13 09:59:05 +0000</bug_when>
    <thetext>While I realize this subject is not new, it came up on the XSL List and Dimitry Novatchev sent me a direct note pointing to it: http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201401/msg00019.html.

The points raised in this discussion are:

1) large text nodes are not streamable (consider a large base64 chunk)
2) externally resourced unparsed-text is not streamable, only if you are lucky enough that unparsed-text-lines is processed using streaming, but the function itself is stable, so buffering the whole input can be required.

Dimitry expressed his concern about both. I think we only need to address the second point, in the sense that we should allow something similar to:

&lt;xsl:stream unparsed-text-lines=&quot;http://example.com/largetext.txt&quot;&gt;
   &lt;!-- each context item here is a line and is grounded --&gt;
&lt;/xsl:stream&gt;

The analysis of this is simple enough, the use-case is to allow multiple reads to be non-deterministic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100535</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-13 14:01:17 +0000</bug_when>
    <thetext>We discussed this at the face to face in Prague.

We inclined to think that the problem described here might best be solved by exploiting the note in 1.6.4 of F &amp; O:

   Some functions (such as fn:doc and fn:collection) create new nodes 
   by reading external documents. Such functions are guaranteed to be
   ·deterministic· with the exception that an implementation is allowed 
   to make them non-deterministic as a user option.

That is, implementors can support a sublinear use of memory on unparsed text by allowing a user option to make the function non-deterministic.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>