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

Re: Namespace URI question


uri local
On Sat, Dec 14, 2002 at 12:38:11AM +0000, Richard Tobin wrote:
> >The use of file: URIs are fraught with so many hassles regarding
> >their proper construction and security that it's darned tough to
> >justify using them.
> 
> I disagree.  It's useful for a program that handles URIs - an XML
> parser, for example - to be able to handle local files without
> having to special-case them everywhere.  file: URLs provide a
> natural way to do that.

  Just to give a very concrete example of an absolute need for 
file: URLs: catalogs. The XML Catalog spec says the "translated" 
resource name must be given as URIs (this makes sense, the "local"
copy could be installed either on the local filesystem or on a
server on the local LAN).
And for any resource actually addressed by the catalog on the filesystem
well you really need a file:/// URL (or a relative URI to the
file:/// URL of the catalog).
file:/// is not intrinsicly evil (using it for namespaces is evil though)
it can have really good use case, the problem is the diversity of
filesystem naming convention (and hierarchy convention but that's 
another story.)
My take is that 95% of the time if you find a file: URL in an instance
it means that the environment is still in flux, that a persistant
canonical URL for the resource has not being defined and that catalogs
haven't been setup. Proper naming conventions and catalog usage ought
to make file: URI disapear completely from the XML documents themselve.

Daniel

-- 
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/

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
 

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.