<?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>11700</bug_id>
          
          <creation_ts>2011-01-09 00:27:55 +0000</creation_ts>
          <short_desc>[XQTS] ForExpr029&apos;s is-XPath2 should be false</short_desc>
          <delta_ts>2011-06-29 01:48:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Benjamin Nguyen">benjie.nguyen</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>43947</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-01-09 00:27:55 +0000</bug_when>
    <thetext>ForExpr029&apos;s query is basically
    for $var in (1,2) for $var in (2,2) return $var * $var
for which the expected output is
    4 4 4 4
which is fine for XQuery, but the test-case has is-XPath2=&quot;true&quot;, implying that an XPath2 processor would give the same result. In fact, an XPath2 processor should raise a syntax error on this expression, because XPath doesn&apos;t allow multiple adjacent &apos;for&apos; clauses. (It would be valid XPath if there were an extra &apos;return&apos; before the second &apos;for&apos;.)

So the is-XPath2 attribute for this test-case should instead have the value &quot;false&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44710</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Nguyen">benjie.nguyen</who>
    <bug_when>2011-01-25 14:23:01 +0000</bug_when>
    <thetext>I agree, we can either remove the is-XPath2 or we can rewrite the test. As a matter of fact I&apos;d rewrite it as follows which seems closer to the original spirit :

for $var in (1,2), $var in (2,2) return $var * $var

I&apos;m fine with either solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44723</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-01-25 20:08:45 +0000</bug_when>
    <thetext>I&apos;d prefer the query to change as you suggest, and the test-case to stay is-XPath2=&quot;true&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50435</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2011-06-29 01:47:50 +0000</bug_when>
    <thetext>I&apos;ve made the change suggested in Comment 1, and committed it.
Consequently, I&apos;m closing the bug as resolved-fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>