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 ]


> The XML Namespaces Recommendation says that the default namespace
> applies only to elements, and not to attribues
> (http://www.w3.org/TR/REC-xml-names/#defaulting).
> i.e. an unprefixed attribute name will always be in the null  
> namespace.
> I am curious to know why this is so?

This has a long history and debate. I think the original explanation  
was that the authors of the spec thought of attributes being like  
local variables in C++ (who don't have a namespace either) or  
something like that. Many people believe that this was a big mistake  
as it complicates both applications and the general understanding of  
namespaces without any benefit.



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

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