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 Jason Diamond other posts by this author
Mar 1 2002 2:54AM messages near this date
Re: [xml-dev] Question about the sytax of namespace declarations | Re: [xml-dev] Question about the sytax of namespace declarations
>  Wait-a-minute.
> 
>  Why would you want to undeclare a namespace prefix???

I can only think of one reason why you'd want to undeclare a namespace
prefix.

<foo:bar xmlns:foo="#foo"> 
    <baz xmlns:foo="" /> 
</foo:bar> 

If this were legal, the baz element would _not_ have the foo namespace in
its [in-scope namespaces] so you could <xsl:copy />  it to a result tree
without causing the unused namespace declaration to appear on the element
when you serialize that tree.

Of course, this problem is really easy to get around. Personally, I don't
think this particular use case justifies the feature but maybe Tim and
Daniel have other things in mind.

Jason



-----------------------------------------------------------------
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> 
Thread:
Wayne Steele
Thomas B. Passin
Thomas B. Passin
Tim Bray
Julian Reschke
James Clark
Jason Diamond
Daniel Veillard
Jason Diamond

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