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

Re: DNS based URIs that don't imply access method


dns bad practice
David Hunter wrote:
> At this point, I feel I need to intrude into the thread and ask [again, I'm
> afraid] for the benefits of using URIs for namespace names?

Well, the benefits of being able to piggyback on the DNS so that 
everyone can make their own and dodge collisions, as you note, are 
pretty large.

There's also the desirable side-effect that if you use an HTTP URI, you 
can put something there to help explain your shiny brand-new namespace 
to people and software.

There are two good arguments against namespace names the way they're 
done, one technical and one psychological.  The technical one is that 
the scoping of the declarations makes them rather awkward to handle when 
you're manipulating in-memory data structures that represent XML 
documents.  My personal way to deal with this is to use XML for 
interchange and mash the data into in-memory data structures that are 
optimized for application needs not XML fidelity, but there's no denying 
this causes problems for some people.

The psychological problem is the one you put your finger on, and the one 
that drives SimonStL to distraction: when you explain that these names 
are also URLs and are also names, only they're really URIs which are 
really in practice URLs only maybe more, only they're really URI 
*references* except for it's bad practice to use relative ones... well, 
you get some angst.

That granted, when actual programmers sit down to write actual code that 
deals with actual namespace-labeled markup, the implementions are 
straightforward and interoperate well, I have yet to hear a *single* 
story of an actual implementation problem caused by the URIness of 
namespace names.

If we had a blank slate and a chance to re-invent namespaces scratch, 
there are a few things I'd change (unprefixed attributes, undeclaration, 
no relative and no fragment), but I'd still use URIs.  -Tim


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.