RE: [xml-dev] Question about the sytax of namespace declarations

From
Michael Brennan <>
To
'Tim Bray' <>,
Date
2002-03-01T00:08:39Z
ID
<D7155AD41ECFD511AF4A00B0D0202CB51DFE8E@MAILHOST>
Thread
RE: [xml-dev] Question about the sytax of namespace declarations
> From: Tim Bray [mailto:]

<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.