Re: FW: Questions about RFC 2396

On Thu, 2003-02-20 at 11:16, Graham Klyne wrote:
> Interesting case...
> 
> Dan, maybe add something based on this to your test cases [1]?
> 
>        ('http://ex/x/y', 'http://ex/x/q:r', 'q:r'),

No, that would violate the axiom
	x + (y-x) = y
i.e.
	join(x, refTo(x, y)) == y

since join(x, z) = z when x and z are absolute
and don't share a scheme, which is the case for
	join('http://ex/x/y', 'q:r')

It's quite necessary to escape the ':' for this reason.

I don't manage negative tests. Perhaps I should.


> 
> #g
> --
> 
> [1] http://www.w3.org/2000/10/swap/uripath.py
> 
> 
> At 09:30 AM 2/20/03 +0100, Stefan Eissing wrote:
> >Am Donnerstag, 20.02.03, um 05:33 Uhr (Europe/Berlin) schrieb Larry Masinter:
> >>4.  There is no need to escape ':'.
> >>
> >
> >There is one place where one needs to escape ':'. And that is if
> >':' appears in the first segment of a relative uri reference. Like
> >
> >a link to http://example.org/test/another:name.html
> >appearing in http://example.org/test/index.html
> >
> ><a href="another:name.html">another</a>
> >
> >will nto work. Either esacpe ':' or use
> >
> ><a href="./another:name.html">another</a>
> >
> >//Stefan
> 
> -------------------
> Graham Klyne
> <GK@NineByNine.org>
-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Monday, 24 February 2003 10:18:30 UTC