[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Default namespace for attributes?
- From: David Carlisle <davidc@nag.co.uk>
- To: xml-dev@lists.xml.org
- Date: Mon, 17 Jul 2006 09:58:27 +0100
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]