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

RE: Namespaces does *not* formally introduce "global attributes"

  • From: Ronald Bourret <rbourret@i...>
  • To: XML List <xml-dev@i...>
  • Date: Thu, 4 Feb 1999 17:44:23 +0100

global attribute in xml
David Megginson wrote:

> > AHA! So the namespaces proposal _DOES_ go beyond simply qualifying
> > names with URIs!
>
> No it doesn't.

Mea culpa.  David is right.  Global attributes are no longer a normative 
part of the spec.

The namespaces spec says the following about non-xmlns attributes:

a) They can be prefixed or unprefixed
b) The default namespace does not apply to unprefixed attributes
c) Applications should use the namespace name, not the prefix, in 
constructing qualified names
d) No tag can contain two attributes whose names are identical or whose 
names resolve to the same qualified name; this clarifies what is meant by 
"name" in the Unique Att Spec validity constraint in XML

It does not tell us:

e) What the difference is between prefixed and unprefixed attribute names 
(other than the existence of the prefix) -- that is, the semantic 
difference (if any) between prefixed and unprefixed attributes
f) How to process prefixed or unprefixed attributes, except as noted in (c)

Two further comments:
1) Tim Bray's statement that unprefixed attributes do not belong to an XML 
namespace derives from (b).  Since there is no prefix to associate them 
with an XML namespace, and we can't the default XML namespace doesn't 
apply, there is simply no association.  However, as A.2 points out, many 
applications are likely to use traditional, per-element namespaces for 
unprefixed attributes. Note that these are a consequence of the Unique Att 
Spec validity constraint in the XML spec, not anything in the namespaces 
spec.

2) As far as I can tell, there is nothing in the normative part of the spec 
that would lead us to conclude the existence of a global attribute 
partition that is separate from the per-element-type partitions, as is 
described in A.2.  That is, the namespaces spec gives us no reason to 
believe that ns:a attributes in the following elements are in any way 
related, any more than the b attributes are related:

   <foo ns:a="1" b="1"/>
   <bar ns:a="1" b="1"/>

Is this correct?

-- Ron Bourret



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.