W3C home > Mailing lists > Public > uri@w3.org > February 2003

Re: URI (file://localhost URIs, how not to abbreviate)

From: Al Gilman <asgilman@iamdigex.net>
Date: Sat, 01 Feb 2003 11:12:27 -0500
Message-Id: <5.1.0.14.2.20030131224537.023d36e0@pop.iamdigex.net>
To: "Jerry Kasten" <kasten@hks.com>
Cc: uri@w3.org

The URI you want, spelled in full, is
file://localhost/d:/users/abaqus60/utils/generated/doc_env/doctypes/catalog

which may sometimes be abbreviated
file:///d:/users/abaqus60/utils/generated/doc_env/doctypes/catalog


In situations where the 'file' scheme is not firmly established by a BASE in
the context, the 'authority' part of the URI should not be elided, although
it may be as brief as '///' in this case.

Consider:

<quote cite=
"http://www.zvon.org/tmRFC/RFC2396/Output/chapter5.html">
     4. Due to a loophole in prior specifications [RFC1630], some
        parsers allow the scheme name to be present in a relative URI if
        it is the same as the base URI scheme. Unfortunately, this can
        conflict with the correct parsing of non-hierarchical URI. For
        backwards compatibility, an implementation may work around such
        references by removing the scheme if it matches that of the base
        URI and the scheme is known to always use the <[27]hier_part>
        syntax. The parser can then continue with the steps below for the
        remainder of the reference components. Validating parsers should
        mark such a misformed relative reference as an error.
</quote>

Al

At 02:29 PM 2003-01-31, Jerry Kasten wrote:




>I'm using a Perl script that contains XML::Catalog. The following
>instruction is used to create a catalog object (on a PC):
>
>my
>$catalog=XML::Catalog->new('file:/users/abaqus60/utils/generated/doc_env/doc
>types/catalog');
>
>This works. However, what I'd really like is to specify the partition, as
>in:
>
>my
>$catalog=XML::Catalog->new('file:d:/users/abaqus60/utils/generated/doc_env/d
>octypes/catalog');
>or something equivalent to be able to specify the 'd' partition.
>
>The previous syntax does not work. Does anyone have any ideas about how I
>can change the above line or change the XML::Catalog package to make this
>work?
>
>Thanks,
>
>Jerry Kasten
Received on Saturday, 1 February 2003 11:12:27 GMT

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