Graham wrote:


On 17 Jul 2005, at 4:20 pm, Sjoerd Visscher wrote:

Where did you read that same-document references only apply when there is no embedded base URI?


Scroll down to the algorithm in 5.2.2, and it backs up Tim and Sam, in particular this:

            if (R.path == "") then
               T.path = Base.path;

Yes, so if the URI reference is empty, then the target path is the base path, and so with embedded base URIs it is the embedded base URI.

To again quote the spec: "When a URI reference refers to a URI that is, aside from its fragment component (if any), identical to the base URI (Section 5.1), that reference is called a "same-document" reference."

This is all done after the algorithm has run, which specifically says that the uri is identical to the base URI, so it is a same-document reference.

It seems pretty clear to me that whoever wrote the same-document references section simply wasn't thinking about embedded base URIs, and thus it can be safely ignored. Your interpretation would contradict not just the algorithm but practically the whole of the rest of the document.

Not at all. You have to remember that beging a same-document reference sais nothing about what the URI actually is, but only that:

   When a same-document reference is dereferenced for a retrieval
   action, the target of that reference is defined to be within the same
   entity (representation, document, or message) as the reference;
   therefore, a dereference should not result in a new retrieval action.

--
Sjoerd Visscher
http://w3future.com/weblog/

Reply via email to