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

Re: URIs, concrete

  • To: <xml-dev@l...>
  • Subject: Re: URIs, concrete
  • From: Norman Gray <norman@a...>
  • Date: Thu, 1 Aug 2002 14:28:20 +0100 (BST)

Re: URIs

Greetings,

On Wed, 31 Jul 2002, Simon St.Laurent wrote:

> > <x:foo bar="bogus"/>
>
> The namespaces specification leaves the relationship anomalous by
> providing no clear answer about the association.  While its non-answer
> and my proposal should work effectively the same in practice, that
> notion doesn't appear to go down well with people who are happier with
> specifications as written.

Are we reading the same spec?  Section 5.2 says[1]

> A default namespace is considered to apply to the element where it
> is declared (if that element has no namespace prefix), and to all
> elements with no prefix within the content of that element. If the URI
> reference in a default namespace declaration is empty, then unprefixed
> elements in the scope of the declaration are not considered to be
> in any namespace. Note that default namespaces do not apply directly
> to attributes.

OK, it's in the legalese appropriate to specs, and a slightly subtle
point that you might not get the first time you read it (I didn't),
but just to avoid any doubt, there's an example promptly presented in
section 5.3 which is intended to drive the point home.

So it isn't quite headlined, and it may or may not be a design wart,
but there's no way you can say it's ambiguous or implicit.

I really, really, don't see the big deal about this, or the heat about
URIs.  I appreciate the principle of least surprise, and can see where
both the namespace and URI specs permit behaviour which violates it
somewhat, and I can see that that can be problematic in some contexts.
So there's a best-practice issue; so what?  If you design a system which
uses that slightly surprising behaviour, then you think twice to make
sure that there isn't a more natural alternative, but if you do in fact
need it, then that's that.

All the best,

Norman


[1] http://www.w3.org/TR/1999/REC-xml-names-19990114/#defaulting

-- 
---------------------------------------------------------------------------
Norman Gray                        http://www.astro.gla.ac.uk/users/norman/
Physics and Astronomy, University of Glasgow, UK     norman@a...


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.