W3C home > Mailing lists > Public > uri@w3.org > January 2002

Re: Resolving Relative URIs.

From: Paul Grosso <pgrosso@arbortext.com>
Date: Tue, 08 Jan 2002 18:35:33 -0600
Message-Id: <4.3.2.7.2.20020108183422.02168f00@172.27.10.30>
To: "Jason Diamond" <jason@injektilo.org>, <uri@w3.org>
At 14:31 2002 01 08 -0800, Jason Diamond wrote:
>Hi, I have a question regarding the examples in Appendix C.2 of RFC2396.
>
>It says:
>
>> Similarly, parsers must avoid treating "." and ".." as special when
>> they are not complete components of a relative path.
>>
>>       /./g          =  http://a/./g
>
>My question regards this first example. My implementation is resolving this
>relative URI (with http://a/b/c/d;p?q as the base URI) as http://a/g. Every
>other example in Appendix C is passing for me. I must have a bug but I'm
>confused as to why the dot in the above example isn't "complete component of
>a relative path" that should get stripped. Can anybody enlighten me?


/./g isn't a relative path--it starts with /.

paul
Received on Tuesday, 8 January 2002 19:35:48 GMT

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