W3C home > Mailing lists > Public > uri@w3.org > March 2003

Re: How does one specify a fragment relative to base document?

From: Graham Klyne <gk@ninebynine.org>
Date: Thu, 06 Mar 2003 08:16:07 +0000
Message-Id: <5.1.0.14.2.20030306075505.02c36e90@127.0.0.1>
To: Tim Bray <tbray@textuality.com>
Cc: uri@w3.org

At 15:43 05/03/2003 -0800, Tim Bray wrote:
>Graham Klyne wrote:
>>Is there a way to specify a fragment identifer relative to the document 
>>in the current base URI.  I can't see a way to do this.
>>If I use ./#frag, then the final path component of the base URI is omitted.
>
>Er, "#frag", right?  What am I missing?

According to the URI spec [1], that is relative to the *current document*, 
as opposed to the current base URI.  For example, when xml:base is used 
within an XML document, the #frag is not (as I understand) relative to the 
base URI.

The URI spec [1] is quite explicit about stating that when resolving #frag 
relative to some base URI, it refers to a fragment the *current document* 
as distinct from the base URI;  cf. algorithm in section 5.2.

#g
--

[1] http://www.apache.org/~fielding/uri/rev-2002/rfc2396bis.html

(I'm using this latest work-in-progress as a reference, but, without 
explicitly checking, I think the current spec says the same.)


-------------------
Graham Klyne
<GK@NineByNine.org>
PGP: 0FAA 69FF C083 000B A2E9  A131 01B9 1C7A DBCA CB5E
Received on Thursday, 6 March 2003 03:45:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:05 UTC