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

Re: Namespace question: Do attributes inherit the element's namespace?

  • From: David Megginson <david@m...>
  • To: xml-dev <xml-dev@i...>
  • Date: 06 Jan 2000 14:11:16 -0500

Re: Namespace question:  Do attributes inherit the element's namespace?
Leigh Dodds <ldodds@i...> writes:

> Attributes don't have namespaces. And therefore your tools are correct.
> Attributes live in the per-element-type partition.
> See http://www.w3.org/TR/REC-xml-names/#ns-breakdown, and
> http://www.w3.org/TR/REC-xml-names/#ns-expnames for some examples of
> how Namespaces are applied to attributes.
> The acceptions are 'global' attributes which live in a separate
> partition, the global attribute partition, and these can have a
> Namespace.
> I don't claim to fully understand this though


You're not alone -- this point has caused as much confusion as any
other in the Namespaces spec.

Remember that Namespaces have to do simply with identification (this
is an A) and distinction (this is not a B); they don't say anything
about what A and B mean.

Basically, then, the main question was whether the attribute names in
the following two examples are identical:

  <html:a href="foo">


  <html:a html:href="foo">

For most applications (such as RDF, and, possibly, XSL), the answer is
a firm 'no', but the WG decided to make it *possible* to distinguish
the two in case anyone ever thinks of a good reason to do so.

All the best,


David Megginson                 david@m...

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 unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.
First Name
Last Name
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.