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

Re: document() function

Subject: Re: document() function
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 20 Aug 2002 22:19:31 -0600 (MDT)
file rel
J.Pietschmann wrote:
> The component separator for file: URLs is "/", not "\".

Thomas covered this pretty thoroughly, and contributed significantly to
related threads on other lists, but I want to reiterate the point that the
statement above is *not* a rule.

Everything after the scheme in a file: URL is OS-dependent by definition.
(Thanks, Netscape, for bestowing yet another abomination upon us). The format 
is:

  "file:" + an OS-dependent path, properly escaped

Ultimately, there are *no* assumptions you can make about what comes after the
scheme, if you don't know the OS the URL is associated with.

Examples of paths on different OSes that make life difficult:

Mac (before OS X)           Windows/DOS                     UNIX
=========================   ====================            =================
(no equivalent)             \abs\path\to\file               /abs/path/to/file
drive:abs:path:to:file      DRIVE:\abs\path\to\file         (no equivalent)
:rel:path:to:file           rel\path\to\file                rel/path/to/file
::foo:rel:path:to:file      ..\foo\rel\path\to\file         ../foo/etc
:::foo:rel:path:to:file     ..\..\foo\rel\path\to\file       ../../foo/etc
(no equivalent)             \\Host\Share\abs\path\to\file   (no equivalent*)

  * Well, sorta. Things like NFS, SMBFS, etc. complicate matters a bit

The URI resolver shared by Windows Explorer and Internet Explorer is by far
the most forgiving. Its ability to handle pretty much anything you throw at
it should not be considered evidence of the equivalence of different kinds of 
path components, or of there being a canonical format for the paths in file: 
URLs across OSes.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
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.