Re: URI Reference creation

On Fri, 2007-07-27 at 16:33 -0600, Mike Brown wrote:
[...]
> I'd be interested to know if anyone else has implemented this kind of thing.
> Perhaps we could keep track of them at http://esw.w3.org/topic/UriTesting.

In that wiki topic, you'll find
http://www.w3.org/2000/10/swap/uripath.py

which implements this algorithm in the refTo() function,
with tests... and some comments about options
in the algorithm... e.g. whether
refTo('http://ex/x/y/z', 'http://ex/r') yields
'../../r' or '/r' .




-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Friday, 27 July 2007 23:30:49 UTC