[Bug 3486] [XQuery] relative base URI

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3486





------- Comment #2 from mike@saxonica.com  2006-07-19 17:13 -------
See also bug #3415.

I believe that the base URI property of a node must always be an absolute URI
(RFC 2396 sort-of-implies this when it says: <quote>The term "relative URI"
implies that there exists some absolute "base URI"...</quote>).

However, the value of xml:base can be a relative URI. Section 4.3 of XML Base
explains how it is resolved.

XQuery ought to say (a) that in the case where the query is a resource
retrieved using a URI, that URI is the "default base URI" of the query; (b) if
the prolog declares a base URI and it is relative, then it is resolved against
the default base URI. If there isn't a default base URI then it should be an
error.

Michael Kay (personal response) 

Received on Wednesday, 19 July 2006 17:13:54 UTC