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] Global/Local attributes

[ Lists Home | Date Index | Thread Index ]


> Named namespaces and default
> namespaces are not they same.  They have different semantics.  You cannot
> necessarily use them interchangably.

namespaces always have a name. Whether that namespace is the default in
any particular document is just a feature of that document not a feature
of the namespace.

If there is a default namespace declared you can always make an
equivalent document that uses a prefix (and prefixes the elements)

Going the other way given a document in which every namespace is bound
to a prefix you can always take one of the namespaces and add a default
declaration for that namespace and remove that prefix from all the
elements.Of course  you have to leave any attributes
prefixed and leave in the original prefix binding for the namespace
if there were any attributes in the namespace. 

David



_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.




 

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

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