<?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>22279</bug_id>
          
          <creation_ts>2013-06-05 07:00:42 +0000</creation_ts>
          <short_desc>error in &apos;Catalog010&apos; and &apos;Catalog011&apos; test-cases in &apos;app-CatalogCheck&apos; test-set</short_desc>
          <delta_ts>2013-06-10 12:28:36 +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>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="Sorin Nasoi">spungi</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>mike</cc>
    
    <cc>oneil</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>88704</commentid>
    <comment_count>0</comment_count>
    <who name="Sorin Nasoi">spungi</who>
    <bug_when>2013-06-05 07:00:42 +0000</bug_when>
    <thetext>Both mentioned test-cases try to load the changes.xml file without providing a correct URI:

instead of:
let $changes := doc(resolve-uri(&apos;changes.xml&apos;, base-uri(.)))//change/@id/string()

the test-cases use
let $changes := doc(&apos;../changes.xml&apos;)//change/@id/string()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88708</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-06-05 07:15:58 +0000</bug_when>
    <thetext>The tests are written to assume that the static base URI of a query is the URI of the catalog file that contains the query.

I&apos;m sure there are many other tests that make this assumption so it should probably be explicitly stated in http://dev.w3.org/2011/QT3-test-suite/guide/running.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88710</commentid>
    <comment_count>2</comment_count>
    <who name="Sorin Nasoi">spungi</who>
    <bug_when>2013-06-05 07:39:37 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I&apos;m sure there are many other tests that make this assumption so it should
&gt; probably be explicitly stated in
&gt; http://dev.w3.org/2011/QT3-test-suite/guide/running.html
Actually no, there are no test-cases (that I know of) that make this assumption.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88735</commentid>
    <comment_count>3</comment_count>
    <who name="Sorin Nasoi">spungi</who>
    <bug_when>2013-06-05 14:13:29 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; I&apos;m sure there are many other tests that make this assumption so it should
&gt; &gt; probably be explicitly stated in
&gt; &gt; http://dev.w3.org/2011/QT3-test-suite/guide/running.html
&gt; Actually no, there are no test-cases (that I know of) that make this
&gt; assumption.
Correction: there are indeed other test-case in FOTS that make the assumption that the static base URI of a query is the URI of the catalog file that contains the query.

An example is &quot;parse-xml-001&quot; from &quot;fn-parse-xml&quot;.

So yes, I think that a note should be added in the 
http://dev.w3.org/2011/QT3-test-suite/guide/running.html.

Sorry for the omission.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88991</commentid>
    <comment_count>4</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-06-10 12:28:36 +0000</bug_when>
    <thetext>In response to comment #3, the following paragraph has been added to http://dev.w3.org/2011/QT3-test-suite/guide/running.html under section &quot;Setting up the Context for Running Tests&quot;:

&quot;The static base URI of the query is always the URI of the file containing the query, which will typically be the catalog file.&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>