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

RE: Namespace URI question


namespace uri format
> From: J.Pietschmann [mailto:j3322ptm@y...]
> > xmlns:foo="file:///foodom.xsd"    

> Not quite correct.
> The relevant RFC is
>   http://www.rfc-editor.org/rfc/rfc2396.txt
> (unless it has been obsoleted by a newer one recently.
> Your URL is an absolute URL. 

Okay. So the above is an absolute file URL to nowhere. 

>>  Meaning its an absolute path,
>> relative to the root-of-the-moment.
> I have no idea what this should mean.

It means I misunderstood the meaning of the URI.

> In any case, it is unusual and perhaps unwise to use a file URL
> to indentify a name space. While the spec is fuzzy enough to allow
> basically arbitrary Unicode strings, the rationale for choosing
> URIs is to uniquely identify the name space, i.e. to provide a
> string unique in the whole universe. Using HTTP URLs comes
> reasonably close to this intention.

Yep, I agree. The example I chose did not originate from me, and my
arguments for not doing this were the same as yours. But I was a bit
confused on the interpretation of file:///file.ext URI format. I see it now
as a rootless file URL, and therefore meaningless. I doesn't appear to be
officially deprecated for namespace usage, although it perhaps should be. I
can certainly see a lazy programmer using this for a short identifier, but
unwise URIs similar to this may be too to numerous to enumerate for
deprecation. 

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.