- 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
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