<?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>29053</bug_id>
          
          <creation_ts>2015-08-12 11:03:04 +0000</creation_ts>
          <short_desc>[xslt3.0] Streamability: current()/name()</short_desc>
          <delta_ts>2015-10-29 12:42:26 +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>
          
          
          <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>122566</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-08-12 11:03:04 +0000</bug_when>
    <thetext>Regarding the streamability of current().

In 19.8.9.3, we say (in a note)

&lt;quote&gt;
The effect of the rule is that expressions that use current as an operand with usage inspection are allowed (for example, name(current()) or current()/@class), but other operand usages fail.
&lt;/quote&gt;

There&apos;s a problem here in that path expressions (like current()/@class) don&apos;t use the General Streamability Rules, and therefore don&apos;t define operand usage for their operands. It&apos;s not correct to imply that the LHS of a path expression has usage inspection.

The *concept* of operand usage is defined for all operands of all expressions (see 19.4), and this section also states

&lt;quote&gt;
The assignment of operand usages to each operand role of each kind of construct is defined in 19.8 Classifying Constructs.
&lt;/quote&gt;

But in fact we don&apos;t assign an operand role in all cases, including the common case cited here.

(I came across this because I was trying to implement the rules for streaming current() in terms of operand usage, rather than using the normative algorithm in the spec, and it didn&apos;t work.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122710</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-08-21 20:39:01 +0000</bug_when>
    <thetext>The WG agreed to change the Note under &quot;streamability of current()&quot; to retain the examples of constructs that work, but to remove the reference to operand usage inspection; and to clarify the description of the concept of &quot;operand usage&quot; to make it clear that it is not defined for all constructs.

The changes have been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>