OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Default namespace for attributes?

[ Lists Home | Date Index | Thread Index ]

Replying to your previous response..

On 7/16/06, Jirka Kosek <jirka@kosek.cz> wrote:
> My own understanding is that attribute is always related to an element
> on which it appears. So you can know identity of unnamespaced attribute
> if you take current element into account, and you will save few bits of
> memory when parsing and processing XML.

I just checked "Namespaces in XML 1.1" Recommendation.

I think you are right in your understanding above (and this answers my
question also). The new namespaces spec (ver 1.1) makes this point
clear (http://www.w3.org/TR/xml-names11/#defaulting). Here the spec
clearly says .. "A default namespace declaration applies to all
unprefixed element names within its scope. Default namespace
declarations do not apply directly to attribute names; the
interpretation of unprefixed attributes is determined by the element
on which they appear. "



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS