[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: Liam R E Quin <liam@w3.org>
  • To: Andrew Welch <andrew.j.welch@gmail.com>
  • Date: Tue, 16 Oct 2012 10:54:09 -0400

Re:  namespaces redux (was: Re:  [XML Schema]Here's ho
On Tue, 2012-10-16 at 11:47 +0100, Andrew Welch wrote:

> xmlns:c="config"

This is still, of course, a URI, but now it is a relative URL.

Please don't do this.

Ah, for the reasons that John has said.

It looks nice but it does *not* have the meaning you seem to think it
does. Hmm, I should add that to the course notes I'm writing.

One problem is that you can create non-portable documents - software is
free (unfortunately) to resolve "config" as a relative URI reference
using the base URI of the containing resource, so that the actual
namespace URI in the document would vary depending on the document's
location.

Another is software that will go use that relative URI to fetch a schema
of some sort.

There was a large thread on the now-closed xml-lenary list in about A.D.
2000, with some 1500 postings in a short time, about relative URI
references as namespace names, and the only possible compromise was to
disallow it.

I was disappointed, as I'd always hoped we (the XMLers) would define a
catalog of some sort that could be located at a namespace URI and used
to locate schemas, DTDs, stylesheets, documentation, entity definitions,
code fragments and so forth. RDDL-style. But the consensus was that such
things are neither forbidden nor encouraged, and relative URIs should
not be used as a namespace name.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Author, "Head First Namespaces", O'Grady Books, 1st April 2034



[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.