RE: [xml-dev] Question about the sytax of namespace declarations
by Michael Brennan other posts by this author
Mar 1 2002 12:08AM messages near this date
[xml-dev] ANNOUNCE: Ruple (XML Spaces) Alpha Version 2
|
[xml-dev] xml/XSL and javascript form issue
> From: Tim Bray [mailto:tbray@[...].com]
<snip/>
> It's not, but this is probably a bug BTW. You can "undeclare" the
> default namespace like so:
>
> <root xmlns="foo" >
> <child xmlns="" />
> </root>
>
> so why shouldn't you be able to undeclare other prefixes, e.g.
>
> <root xmlns:foo="bar" >
> <child xmlns:foo="" />
> </root>
I never thought this was a bug. It seems logical, to me. There is no way to
include an element with no namespace if a default namespace is in scope,
unless you undeclare the default namespace. A namespace mapped to a prefix
poses no such impediment, though. The current formulation seems reasonable
to me.
-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org>
The list archives are at http://lists.xml.org/archives/xml-dev/
To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>
|