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

URI Reference creation

From: Sebastian Pipping <webmaster@hartwork.org>
Date: Fri, 27 Jul 2007 23:13:39 +0200
Message-ID: <46AA6003.10304@hartwork.org>
To: uri@w3.org

Hello again!


== Reference creation ==
For the inverse process of reference resolution,
e.g. making

   abc

out of

   URI:  http://example.com/some/abc
   BASE: http://example.com/some/

is there any algorithm description or pseudo-code
available? I didn't find any in RFC 3986.
I plan to implement this and want to be sure
to do it right. Is it just (1) normalize both URIs
and (2) cut off common prefix?



== Error in RFC 3986 section 6.2.3? ===
Section 6.2.3. Scheme-Based Normalization reads

  "(e.g., "mailto:Joe@Example.COM" is equivalent to
   "mailto:Joe@example.com", even though the generic
   syntax considers the path component to be case-
   sensitive)" .

Isn't ".COM" case-insensitive since it is part of the
host not path?


Sebastian



[1] http://tools.ietf.org/html/rfc3986#section-6.2.3
Received on Friday, 27 July 2007 21:19:15 GMT

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