<?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>24532</bug_id>
          
          <creation_ts>2014-02-05 21:22:41 +0000</creation_ts>
          <short_desc>Streamability of NodeComp, before/after operator</short_desc>
          <delta_ts>2014-02-24 15:01:45 +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>WORKSFORME</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.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>99828</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-02-05 21:22:41 +0000</bug_when>
    <thetext>This is somewhat similar as the previous bug 24531. The same that was written there might apply here. In addition:

How can a processor possibly check using forward-only streaming whether one node is before the other? There is only two situations using streaming nodes on both operands, that is currently streamable and that is when one of the operands is motionless and the other is consuming, or when both are motionless.

a) foo &gt;&gt; bar
b) foo[@bar &lt;&lt; @zzz]
c) @foo &lt;&lt; bar
d) foo &lt;&lt; .
e) ancestor-or-self::foo &gt;&gt; bar

Hmm, while writing this down, I am finding out the obvious logic here: one of the nodes will always be in the current stack, which is always before any consuming expression. And if both are motionless, their relative position is known.

Is this true always? Is there an easy proof for this? Common sense tells me this is correct, but still, I find operators &lt;&lt; and &gt;&gt; to &quot;feel&quot; very free-ranging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99892</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-06 10:41:50 +0000</bug_when>
    <thetext>I believe that document order on two nodes within a streamed document is perfectly well defined, and indeed it is fundamental to streaming that it should be well defined. We have however severely restricted the ability to process two nodes in a streamed document simultaneously, and therefore to ask questions about the relative order of two such nodes, because it&apos;s in the nature of streaming that we only process one node at a time.

The expression (A &lt;&lt; B) is disallowed (free-ranging) if A and B are both consuming or if either is free-ranging. But I think this leaves expressions like (.. &lt;&lt; .) well defined and streamable. Indeed I think that (. &lt;&lt; child::author) is probably permitted (and is consuming), provided there is only one author; though it&apos;s a pretty useless thing to write.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100373</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-12 09:48:16 +0000</bug_when>
    <thetext>The WG discussed this during the ftf meeting in Prague and decided that this issue is (as noted) essentially similar to bug 24531; we close it the same way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>