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

RE: Namespace URI question


namespace uri
> -----Original Message-----
> From: Richard Tobin [mailto:richard@c...]

> >xmlns:foo="file:///foodom.xsd"    

> file:///foodom.xsd is (for retrieval purposes) is the same as
> file://localhost/foodom.xsd, and is an absolute URI referring to a
> file on the machine where the URI is being interpreted (RFC 1738).

Okay, okay... now get it.
 
> It's not a relative URI any more than http://127.0.0.1/~richard is.
> 
> Its interpretation depends on the machine you use it on, but not on
> the current base URI.

So, it's not relative. But localhost is relative. So it's an absolute
address with a "relative" localhost at the root. I'm not trying to argue
semantics, I'm just saying that there is a relative component to this
address. That's not to say that it's a relative URI. 

> On the other hand, it's not a very good namespace name because it
> isn't tied to the author in the way a URI containing a normal domain
> name is.  Someone else might use it with just as much justification as
> you.  As the Namespace spec says:
> 
>   The namespace name, to serve its intended purpose, should have the
>   characteristics of uniqueness and persistence.

Good citation.  

I came across this namespace declaration in a someone else's document (which
I told him to change), but got stuck on the meaning of file:///foo.xsd.  I
see now that the third slash means "localhost", which of course I should
have known but I got mentally blocked on file path representations.  Now I'm
back aboard the clue train.


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.