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 1420 - [FO] base-uri for collation uris
Summary: [FO] base-uri for collation uris
Status: CLOSED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-13 21:22 UTC by Michael Rys
Modified: 2005-09-29 11:07 UTC (History)
0 users

See Also:


Attachments

Description Michael Rys 2005-05-13 21:22:20 UTC
If the collation is specified using a relative URI, it is assumed to be 
relative to the value of the base-uri property in the static context. 

We think that a different base is needed. For example, let's assume that a 
base URI is set to http://mydomain.org/CustomerOrders where I keep all my 
documents and that all collations are in http://collations.vendor.com/. 

If I write a query of the form:

for $i in doc("customers.xml")
where compare($i/name, "Doe", "English-AS-CS") = 0
return
  ... 

I would like the two relative URIs to resolve against their respective 
different bases.
Comment 1 Michael Kay 2005-05-13 21:31:38 UTC
We've had this discussion before...

Relative URIs are not the way to solve the problem of making collation URIs
interoperable. Implementations need to provide indirection mechanisms using
catalogs, configuration files, or URI resolvers. 

I'm happy to ban relative collation URIs, or to say that the way they are
resolved is implementation defined, but we don't want to set up additional
machinery in this area.
Comment 2 Ashok Malhotra 2005-05-20 22:05:23 UTC
The WGs discussed this request during the joint meeting on 5/19/2005 and decided
not to accept it.

Ashok Malhotra
Comment 3 Michael Kay 2005-07-26 14:16:06 UTC
As a result of the WGs' decision, the XSLT 2.0 spec has been brought into line
with F+O in stating that any collation URI that is a relative URI must be
resolved against the base URI from the static context (or in the case of a
collation URI used outside the context of an XPath expression, the base URI of
the stylesheet element on which it appears.)

Michael Kay