<?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>20100</bug_id>
          
          <creation_ts>2012-11-27 16:14:21 +0000</creation_ts>
          <short_desc>Add missing import schema statement</short_desc>
          <delta_ts>2013-01-21 16:54:09 +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>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Sorin Nasoi">spungi</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</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>78918</commentid>
    <comment_count>0</comment_count>
    <who name="Sorin Nasoi">spungi</who>
    <bug_when>2012-11-27 16:14:21 +0000</bug_when>
    <thetext>The 60 test cases in &quot;prod-OrderByClause&quot; test set( http://dev.w3.org/cvsweb/2011/QT3-test-suite/prod/OrderByClause.xml?rev=1.8;content-type=text%2Fplain)
that are using the &quot;orderdata&quot; environment are missing the corresponding import schema statement in the actual tests.

The &quot;orderdata&quot; environment uses a validated document that is bound as context item but the tests are not importing the &quot;http://www.w3.org/XQueryTestOrderBy&quot; schema used to validate the context item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78928</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-11-27 17:24:14 +0000</bug_when>
    <thetext>It should not be necessary to import the schema unless the query actually references types in the schema by name.

We make this much clearer in XQuery 3.0: form 2.5.5 &quot;An XQuery 3.0 implementation must be able to determine relationships among the types in type annotations in an XDM instance and the types in the in-scope schema definitions (ISSD).&quot; In other words, if a type annotation is present at run-time in the input document, that is supposed to tell the query processor all it needs to know about the type at run-time. You only need an import schema if the query processor needs compile-time information about types, and that&apos;s only needed if the query contains expression that refer to types by name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81895</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-01-21 16:54:09 +0000</bug_when>
    <thetext>As there has been no response to my comment #1 I am closing the bug as &quot;invalid&quot;. Please re-open if you still feel the tests are wrong.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>