[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Who provide for the syntax for "file:///c:/" ?

syntax for file
On Thu, Jul 17, 2003 at 04:42:40PM +0100, Dave Pawson wrote:
> At 08:09 17/07/2003 +0000, collin@s... wrote:
>  >Who provide for the syntax for "file:///c:/" ?
> Some ****.
> I played with it, .... and came to that conclusion
> http://www.dpawson.co.uk/xsl/sect4/uriIncl.html
> No wonder tag cant decide how to describe a uri.
>    Standards???
>    or
>    confusion?

  Well, that part of our infrastructure is an abomination IMHO.
Sorry my code will fail on 
because from the small semantic I can extract from RFC 2396, it's
a file scheme with a c:/ authority, and to me C: is neither
a server nor a registered component.

  The only definition I found of the file scheme is RFC 1738
which obviously shows its age (and is obsoleted by 2396 except 2396
does not define specific scheme). 1738 states

A file URL takes the form:


  it's also defined somewhere (can't remember maybe 2396) that
<scheme>:///path, i.e. without the authority is equivalent of
accessing teh service on localhost, hence


can be mapped to a given semantic.
Now to make things really crazy, on windows, depending on which set of
tools (MS, CygWin, ...) you compile your code against, file path access
semantic changes. My last rant is that nothing defines file accesses relative
to the current directory (i.e. the relative filepath mechanism in the
POSIX filesystem sense) using file:// URL . 
In a nutshell when trying to design file access on Windows based on
URI then either you try to get a relatively compliant implementation and
a lot of users complains, or you try to accomodate everything and 
it's just a pile of unreliable heuristic (hum is that \ a path separator
or a backslash character...).
  - avoid the Windows platform for web stuff
  - educate your users (good luck)
  - get someone to clean up that mess by redefining the file
    scheme in a new RFC (good luck too)

  Really depressing ! All bets are off in that area :-(


Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@r...  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.