This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6157 - [XQTS] Use of location hints in "modules-schema-context"
Summary: [XQTS] Use of location hints in "modules-schema-context"
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-13 16:13 UTC by Oliver Hallam
Modified: 2008-10-13 20:24 UTC (History)
2 users (show)

See Also:


Attachments

Description Oliver Hallam 2008-10-13 16:13:15 UTC
modules-schema-context imports the module context-lib.xq

This file includes the following schema import:

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

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't point to a valid file.

This location hint should be removed to eliminate this problem.
Comment 1 Michael Kay 2008-10-13 16:33:29 UTC
Unfortunately, removing the location hint doesn't solve the problem. It's still implementation-defined: "Each module import names a target namespace and imports an implementation-defined set of modules that share this target namespace." - 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't.

I'm surprised you say that the base URI of the query is "not defined by XQTS". The concept of a resource having a base URI is part of the architecture of the web, it'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'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.  
Comment 2 Andrew Eisenberg 2008-10-13 20:24:04 UTC
I agree that "at "simple.xsd"" should be removed from context-lib.xq:

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

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.