XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Default namespace for attributes?

The main advantage of the rule for unprefixed attributes is that you
don't have  to prefix all the attributes when prefixing elements.

If you have an xhtml <a href="foo">bar</a> and need to put that in a
context where the defualt namespace is something else 9eg docbook 5),
then you bind h to the xhtml namespace and go
<h:a  href="foo">bar</a>
but if unprefixed attributes were affected by the default namespace
binding then this would be wrong ad href would be an attribute from 
the docbook namespace. You'd have to go
<h:a  h:href="foo">bar</a>
and the xhtml spec would have to be changed so that it defined
attributes in the xhtml namespace.


So the current rule is the rule you want if you think that the majority
of attributes, even in namespaced vocabulary, should be unprefixed.


David


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]





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

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