<?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>24541</bug_id>
          
          <creation_ts>2014-02-05 23:10:21 +0000</creation_ts>
          <short_desc>Missing KindTests in the analysis</short_desc>
          <delta_ts>2014-05-15 14:00:22 +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>99849</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-02-05 23:10:21 +0000</bug_when>
    <thetext>A KindTest (such as attribute(), processing-instruction(), text()) is not mentioned in the break-down of expressions. The closest you can get is an Axis Step (19.8.7.7 Streamability of Axis Steps, http://www.w3.org/TR/xslt-30/#streamability-of-axis-steps), but this section does not mention KindTests.

While writing this up, it occurs to me that the rules are actually sound here, as in the GSR under adjusted sweep S&apos;, a KindTest has a special rule, and it is itself already on an axis, which are mentioned under Axis Steps.

I nevertheless add this bugreport, because I think a small Note under 19.8.7.7 on axis steps containing KindTests can be beneficial in understanding this special case and may remove possible confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99887</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-06 09:53:51 +0000</bug_when>
    <thetext>A KindTest is not itself an expression (or a &quot;construct&quot;), it&apos;s only of interest in that it forms part (sometimes the entirety) of an AxisStep. So any impact of KindTests on streamability should be covered in the rules for AxisSteps.

I&apos;ve no objection to adding a Note, though I&apos;m not quite sure what it needs to say.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100383</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-12 10:28:40 +0000</bug_when>
    <thetext>The WG discussed this during the ftf meeting in Prague and concluded that a note or some expository text in the opening text of 19.8.7 might serve the case, pointing out that as a consequence of the rule of classifying by the most specific production for which an entry appears, expressions like processing-instruction() should be sought not under KindTest (which does not appear) but under AxisStep (which does).  And similarly for child::x, which should be analysed not under PathExpr but (again) under AxisStep (which is more specific).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100721</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-16 20:30:29 +0000</bug_when>
    <thetext>Further explanations have been added, as suggested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101987</commentid>
    <comment_count>4</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-03-06 16:01:23 +0000</bug_when>
    <thetext>Not sure I should reopen this issue just because of a tiny typo, but this once I&apos;ll take the risk to do so (because it was introduced with this change): 

under 19.8.7, second bullet point in the first list, the term ForwardsAxis is used, which should be ForwardAxis.

Other typos I&apos;ll place in a collective issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104351</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-04-24 14:38:37 +0000</bug_when>
    <thetext>Noted and fixed.

Editorial note: axes are consistently &quot;forward&quot; and &quot;backward&quot;, whereas compatibility is consistently &quot;forwards&quot; and &quot;backwards&quot;. At least it&apos;s consistent.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>