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

Re: Windows URLs

Subject: Re: Windows URLs
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 4 Nov 2004 13:13:57 GMT
file uri windows
> OK. Details please, and I'll write that collation :-)
you need to add dropped letters (by infering them from a UK dictionary)
and take as equal any letters within a couple of keys on a UK keyboard
and potentially transpose letters if I'm typing faster with one hand
than the other. If I'm typing on a US keyboard you also have to
(potentially) replace any character by the character that appears in
that position on a UK keyboard. That just accounts for bad typing, if
you could also correct spelling errors (ie mistakes in my head, not by my
fingers) that would earn extra bonus points.


> Seriously though, does anyone know what the rules are for file: URLs
> on Windows systems (i.e. how do you encode drive names and UNC paths
> (is that the right term for drives on other servers?) into a file URL)?

we had a long thread on that earlier. The outcome was essentially that
it's a) under specified and b) different systems do it differently.

But in a file URI as in most hierarchical URI schemes, / not \ is used
to denote path separators (used to resolve relative URI) and the bit
between the :// and the first / is the machine name (which may be empty)
which would suggest that

a:\x\y\z

should be
file:///a:/x/y/z

and

\\othermachine\foo\bar

should be

file://othermachine/foo/bar

You commented that d:a\b\c is not the same as  d:\a\b\c which means (I
guess?) that you want d:a\b\c  to be relative to some current directory
on the a drive that is stored elsewhere. I don't think you can code the
idea of multiple current directories in the URI syntax you can only have
one base URI (and if you are using relative URI you never use the uri
scheme prefix so you'd just use x/y/z if you knew you were on the a
drive already) So in general I think that your system would have to know
what is the current directory on a: and then explictly add that to the
URI to produce
file:///a:/some/place/x/y/z

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.