W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > May 2006

Re: Canonicalization xml:base processing

From: Richard Tobin <richard@inf.ed.ac.uk>
Date: Tue, 30 May 2006 19:14:06 +0100 (BST)
To: John Cowan <cowan@ccil.org>, Richard Tobin <richard@inf.ed.ac.uk>
Cc: public-xml-core-wg@w3.org
Message-Id: <20060530181406.785CF6D6D95@macintosh.inf.ed.ac.uk>

> I believe this summary is correct:
> 
> In 2396 resolution, dot-segments in the relative path are special, dot-segments
> in the base URI are not.

I had a vague recollection of something like that, but it's not true.
The algorithm is

 - remove the final post-slash segment of the base
 - append the relative uri
 - remove dot segments
 - remove dot-dot segments
 - if there are dot-dot segments left (which must be at the beginning)
   it's an error

All this only happens if the "relative" uri has a path not beginning
with slash.

-- Richard
Received on Tuesday, 30 May 2006 18:14:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:34 GMT