W3C home > Mailing lists > Public > uri@w3.org > July 2007

Re: URI Reference creation

From: Dan Connolly <connolly@w3.org>
Date: Fri, 27 Jul 2007 18:30:34 -0500
To: Mike Brown <mike@skew.org>
Cc: Sebastian Pipping <webmaster@hartwork.org>, uri@w3.org
Message-Id: <1185579034.4187.904.camel@pav>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 12:15:37 GMT