ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
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> 

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved