<?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>6157</bug_id>
          
          <creation_ts>2008-10-13 16:13:15 +0000</creation_ts>
          <short_desc>[XQTS] Use of location hints in &quot;modules-schema-context&quot;</short_desc>
          <delta_ts>2008-10-13 20:24:25 +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>CLOSED</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>
          <cc>holstege</cc>
    
    <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>22158</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Hallam">oliver</who>
    <bug_when>2008-10-13 16:13:15 +0000</bug_when>
    <thetext>modules-schema-context imports the module context-lib.xq

This file includes the following schema import:

import schema namespace simple=&quot;http://www.w3.org/XQueryTest/simple&quot; at &quot;simple.xsd&quot;;

Since the behaviour of location hints is implementation defined, this may well fail - if an implementation chooses to use the location hint rather than the namespace to import the schema, and since the base URI is not defined by the XQTS, this probably won&apos;t point to a valid file.

This location hint should be removed to eliminate this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22160</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-10-13 16:33:29 +0000</bug_when>
    <thetext>Unfortunately, removing the location hint doesn&apos;t solve the problem. It&apos;s still implementation-defined: &quot;Each module import names a target namespace and imports an implementation-defined set of modules that share this target namespace.&quot; - and I would have thought that implementations were more likely to load the right modules if you give them a hint than if you don&apos;t.

I&apos;m surprised you say that the base URI of the query is &quot;not defined by XQTS&quot;. The concept of a resource having a base URI is part of the architecture of the web, it&apos;s not something that needs to be defined locally for each application. Also, I would have thought lots of queries in XQTS were dependent on the base URI of a query being known.

We have to test modules somehow and this seems a reasonable way to do it. If it doesn&apos;t match the implementation-defined behaviour of a particular implementation, then I think the test driver has to be written to work around the differences.  </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22163</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2008-10-13 20:24:04 +0000</bug_when>
    <thetext>I agree that &quot;at &quot;simple.xsd&quot;&quot; should be removed from context-lib.xq:

import schema namespace simple=&quot;http://www.w3.org/XQueryTest/simple&quot; at
&quot;simple.xsd&quot;;

Our policy has been to refer to modules and schemas by their URIs and then to allow test harnesses to customize queries by adding location hints. This is spelled out in Customizing Library Imports in Guidelines for Running the XML Query Test Suite.

Oliver, as I am making the change that you requested, I am marking the report as CLOSED.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>