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

Re: namespaces redux (was: Re: [XML Schema]Here's ho

  • From: Andrew Welch <andrew.j.welch@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Tue, 16 Oct 2012 11:47:35 +0100

Re:  namespaces redux (was: Re:  [XML Schema]Here's ho
>> 3. Avoid using URLs, the globally unique benefit
>> is far outweighed by the confusion cost
>
> Are you recommending that URNs be used rather than URLs?

I'm advocating simple strings for simple cases, for example for a
config file someone might be tempted to use:

xmlns:c="http://mycomp.com/someproduct/v1.1/config/"

whereas they could just do:

xmlns:c="config"

- it will never need to change
- there is no confusion if something exists at the end of the url, or
if the domain has to actually exist.
- there is no confusion around a trailing slash
- in XPath 3.0 you can have nice short self contained xpaths.
- its easy to remember
- the markup can be reused as its not associated with some product
- it still allows embedding of other markup, or this markup to be
embedded elsewhere

> If yes, doesn't that eliminate the ability to use things such as RDDL?

I don't know RDDL I'm afraid.

> XML Schema uses URLs for namespaces, as does XSLT. Do you believe that to be a mistake?

The dates were a mistake, and (I think) they should really have a
trailing slash, and they aren't the easiest to remember so unless you
have tool support or know them off by heart you need to look them
up.... but other than that for a global spec it's hard to argue
against a url.

> What do you mean by "the confusion cost"?

Hopefully the above bullets covers it, I can't think of any more for now.



-- 
Andrew Welch
http://andrewjwelch.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.