<?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>9879</bug_id>
          
          <creation_ts>2010-06-08 15:36:32 +0000</creation_ts>
          <short_desc>XQuery 1.1 tests have invalid XQueryX versions</short_desc>
          <delta_ts>2010-06-18 22:15:57 +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>PC</rep_platform>
          <op_sys>Windows NT</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="Oliver Hallam">oliver</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</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>36045</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2010-06-08 15:36:32 +0000</bug_when>
    <thetext>Consider test WhereExpr020:

for $file in ($input-context//Folder)[1]/File
where true()
where false()
return $file/FileName

This has differing results for XQuery 1.0 and 1.1:

      &lt;output-file role=&quot;principal&quot; compare=&quot;Text&quot; spec-version=&quot;1.1&quot;&gt;WhereExpr020.txt&lt;/output-file&gt;
      &lt;expected-error spec-version=&quot;1.0&quot;&gt;XPST0003&lt;/expected-error&gt;

However, an XQueryX version of this test exists which has two whereClauses in a flowrExpr.  In XQueryX 1.0 the query does not conform to the XQueryX schema.

Should schema validation errors be considered to be parse error for the purposes of running the test suite, or do we need some way to annotate that the XQueryX versions of the test only apply to XQueryX 1.1 processors?

K2-WhereExpr-1 has a similar problem.

K2-ExternalVariablesWithout-18 has an external variable with a default value which has also been translated to an invalid XQueryX 1.0 document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36268</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2010-06-18 22:15:57 +0000</bug_when>
    <thetext>The XML Query WG discussed this issue at its June 15 meeting.

Before we added XQuery 1.1 test cases to the test suite, these test cases used scenario parse-error and no XQueryX documents were generated for them.

For the purposes of testing XQueryX 1.0, a test harness may now skip the execution of a test case when:

1) the scenario is parse-error, or
2) an XQuery 1.0 expected error is XPST0003, or
3) the XQueryX document does not validate using the XQueryX 1.0 schema

The Guidelines for Running the XML Query Test Suite will be updated to reflect the resolution of this issue.

Please close this bug report if you agree with this resolution.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>