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

Re: nested namespaces


Re:  nested namespaces
Simon St.Laurent wrote:

> More generally, I'm wondering about cases where developers use container
> elements in one namespace which may be different from either the
> namespace of the parent element or the namespaces used by the child
> elements.
> 
> For example:
> <a:container 
>      xmlns:a="http://example.com/a"
>      xmlns:b="http://example.com/b"
>    >
>    <b:container>
>      <a:leaf />
>      <a:branch>
>        <a:leaf />
>      </a:branch>
>      <a:leaf />
>    </b:container>
> </a:container>
> 
> Some people seem to assume that elements in namespaces you don't
> understand can be discarded, but what gets discarded here?  

That's a difficult assumption to hold. Namespaces are purely for 
partitioning names - pedantically, that's not the same as a 
processing model for names. Thinking about it, discarding what you 
don't know is effectively a bug *unless* you've defined a protocol 
or a policy over and above namespaces for handling unknown sets of 
names. I haven't got to Marks' draft yet, but it seems like you're 
wanting to treat namespaces as a form of processing instruction or 
dispatch mechanism.

> Any thoughts?  I don't see any obvious answers here.

I doubt there are any. When you get down to it there's not much 
difference between unrecognized input and garbage input - other than 
perhaps it meant something to the origin producer.

Bill de hÓra



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.