Re: trivia, but it's a niggle

At 23:03 29/05/97 BST, Henry S. Thompson wrote:
>Have you looked carefully at RFC 1738 lately (URLs)?

>2) There's not much there about relative references, is there :-(

That's covered by RFC 1808.
>
>3) Unless I can't decode their semi-bnf correctly, the syntax we all
>use for file URLs is actually bogus, namely
>
>file:/home/ht/mymasterpiece.xml

This is effectively a relative URL that includes a scheme name. RFC 1808
mentions this case:

   Finally, some older parsers allow the scheme name to be present in a
   relative URL if it is the same as the base URL scheme.  This is
   considered to be a loophole in prior specifications of partial URLs
   [1] and should be avoided by future parsers.

>4) Is
>
>/home/ht/mymasterpiece.xml
>
>a valid relative URL if the base is a file?

Yes.  See RFC 1808.

James

Received on Friday, 30 May 1997 03:58:39 UTC