<?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>29958</bug_id>
          
          <creation_ts>2016-10-24 15:45:16 +0000</creation_ts>
          <short_desc>[xslt30ts] function-5006</short_desc>
          <delta_ts>2017-01-28 22:14:49 +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 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</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="Abel Braaksma">abel.online</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>127943</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-10-24 15:45:16 +0000</bug_when>
    <thetext>I believe this test case is not streamable.

Consider the path expression

sf:deep-descent(section[1])/p[2]

The function call sf:deep-descent(section[1]) is crawling and consuming.

&quot;The provisional posture of the expression is the posture of the right-hand operand, assessed with a context posture and type set to the posture and type of the left-hand operand&quot; - the combination of crawling with the child axis gives roaming.

The expression is not a scanning expression, so the posture is the provisional posture.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127947</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-10-25 00:33:50 +0000</bug_when>
    <thetext>This looks like a case not properly covered by rule 19.8.8.8, item 4.

The point of this rule is that if the rh-side always selects a singleton node, there is no possibility of overlap, hence the restriction for this rule with numeric predicates.

(some crawling expression)/axis-step[numeric-expression]

-- where axis-step is child/descendant/descendant-or-self

result should be striding. This is somewhat surprising, but I believe it is correct and we may need to reflect this in the rules.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128036</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-11-03 15:55:24 +0000</bug_when>
    <thetext>This should have been changed into a spec bug after analysis. Doing that now.

Title changed from: [xslt30ts] function-5006</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128040</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-11-03 17:58:28 +0000</bug_when>
    <thetext>I can&apos;t see how 19.8.8.8 rule 4 is relevant. That rule says that if E is crawling then E[N] is striding provided N evaluates to a simple number. This case is quite different.

I&apos;m not even sure what you mean by the &quot;rh-side&quot;. The rule is about axis expression filtered by a numeric predicate.

The current rules say that this expression is crawling and we would need substantial new machinery to change that; I think the test is simply wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128069</commentid>
    <comment_count>4</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-11-05 13:41:12 +0000</bug_when>
    <thetext>I apologize, I misunderstood my own suggestion in comment#1 and my comment#2 completely misses the mark.

I have committed a fix for this test, but I found myself confused about scanning expressions and am not 100% certain the current fix is sound, so I&apos;m leaving this open for now so that others can have a look.

Changing it back to a test bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128070</commentid>
    <comment_count>5</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-11-05 13:41:55 +0000</bug_when>
    <thetext>(I mean, my comment#1 misses the mark...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128421</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-01-28 22:14:49 +0000</bug_when>
    <thetext>I have attempted to fix this. However the fix is not tested because Saxon is not yet running this test correctly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>