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

Re: Namespace URI question


absolute url file uri
Jeff Lowery wrote:
> Sorry, I mistyped that. Let's try again:
> 
> xmlns:foo="file:///foodom.xsd"    
> 
> My (possibly incorrect) understanding (although I have read the RFC) is that
> the URI location is {base URL} + /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. This is *not* the same as an
absolute (file) path. However, an absolute URL is not to
be resolved against a base URL, by definition. Only relative
URLs can and often should be resolved, thereby producing an
absolute URL (also by definition).

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

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.

J.Pietschmann


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.