RE: TR/xquery-operators/#func-doc

Michael Kay wrote:

 > xml:base changes the meanings of relative URIs in a
 > document, including the meaning of the relative URI "".

This appears to be a misunderstanding of RFC2396,
section 5.2 "Resolving Relative References to Absolute
Form", which states:

 > 2. If the path component is empty and the scheme,
 > authority, and query components are undefined,
 > then [the URI reference] is a reference to the
 > current document and we are done.

This occurs without any reference to a base URI,
whether specified in the document using xml:base
or via any other method.  This specific example
is the first one in section C.2 of the RFC.

As Dave Pawson desires, the relative URI ""
should be guaranteed to refer to the current
document, regardless of any xml:base setting.

-- 
Kian-Tat Lim, ktl@ktlim.com, UTF-7: +Z5de+pBU-

Received on Tuesday, 13 May 2003 09:53:32 UTC