[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Global/Local attributes


Re:  Global/Local attributes

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.