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] Question about the sytax of namespace declarations

[ Lists Home | Date Index | Thread Index ]

> From: Tim Bray [mailto:tbray@textuality.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.




 

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

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