W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > July to September 2000

HTML WG comment on XML Base

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 5 Jul 2000 15:24:08 +0200
Message-ID: <004201bfe684$527f28c0$2dc510c0@cwi.nl>
To: <www-xml-linking-comments@w3.org>
XML base uses RFC 2396 to define how relative URLs are resolved.

In a document called bar.xml with xml:base="http://w3.org/doc/foo/"

    if href="aa"  then  resolved="http://w3.org/doc/foo/aa"
    if href="a"    then  resolved="http://w3.org/doc/foo/a"
but if href=""    then  resolved="http://w3.org/doc/foo/bar.xml"

However, this is not the behaviour of at least IE and Netscape, which
produce a resolved URL which is the same as the base.

This appears to be an RFC1808 vs. RFC2396 issue.  A quick look at 1808 shows
that the algorithm for resolving references required that the URL returned
be the same as the base in this case. So it seems to be a non-interoperable
change between the two RFCs.

While it might be handy to be able to refer to "the same URL as this
document", it seems that it is handier to be able to say "the same URL as
the base" (in a notation independent manner).

Steven Pemberton
Received on Wednesday, 5 July 2000 09:25:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:32:21 UTC