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

Re: nested namespaces


nested namespace

"Simon St.Laurent" wrote:
> 
> I'm working on a couple of projects which rely on multiple namespaces
> mixed up in the same document as a matter of course.  For example:
> 
> ...

the uncertainty results from expecting too much from namespaces.

expressions do not become useful until they manifest a tripartite relation. look at rdf, semantic networks, or whatever abstract conceptualization you chose. to
take your example, "value" means nothing. neither does (e:result "value"). it is only when you assert (b:rule e:result "value") that you have asserted anything meaningful.

> 
> The general notion is that when you encounter a namespace your processor
> doesn't understand, you try its following sibling instead. 

to the extent that one can judge an oversimplified description such as this, such a method will produce bogus results. that is, an attempt to do this will
likely infer things which were not intended. when it does succeed, it is because, instead of admitting the relation ("value" is x) & (b:rule e:result x) to some
concept, your ontology recognized ("value" is x) & (a:container b:rule x) in some concept, or (a:container c:result x), or (y a:container x), or ...

which means that the method is effecting ontological mapping.
so one might as well admit that and do it explicitly.
(something for which sax is not particularly well suited, and the dom is not intended.)

as an aside, the question points out why, as comforting as namespace descriptions may be to the casual observer, they will do little to advance automated processing.

>                                                          If there is
> no sibling, you go back up to your parent to see if it has any following
> siblings to offer, etcetera, and if you land at the root element again,
> you're out of luck.
> 
> ...
> 
> This is an area that Namespaces in XML pretty plainly avoided,

which is as it should be. the problem has nothing to do with the relationships between qualified names and universal names, but with those which can be inferred
among universal names once identified.

>                                                                but it
> may be an area that we need to consider more and more as we get deeper
> into documents which mix and match namespaces on terms which aren't
> always clearly defined in advance.  (I haven't seen Microsoft request
> that the W3C add the extra namespaces and elements it uses in the
> old-style Office-generated HTML to the XHTML spec, for instance, though
> perhaps they've written a module for it.)
> 
> Any thoughts?  I don't see any obvious answers here.
> 

the obvious method woud be to drive the process with an abstract domain model. at least with a document schema.

...

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.