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

RE: namespace handling models


xml unknown namespace

>> am wondering if anyone can think of any
> > other models for how xml applications handle
> > namespaces that are not in the applications
> > known namespaces than these:
 >

>extract-text: a transform or filter is applied to the unknown elements 
>to extract text contents. Ex: RSS summaries. This is a subset of

>transform: elements and children in the unknown namespace are 
>transformed into known elements and text. Ex: Henry Thompson's normal
>forms.
Sort of a subset of the parse-tree model, if you consume known
namespaced subtrees of an unknown namespace you consume text nodes as
well. I think though that it is it's own model, specifying that what one
wants is just to bubble up text nodes can be very useful. 
Thanks for the mention of normal forms, hadn't seen it before, now I
have some reading for next weekend. However looking at what I googled up

http://www.ltg.ed.ac.uk/~ht/normalForms.html

 I couldn't see right off how one manages transform of unknown namespace
elements to known elements and text:

If I have <x:code xmlns:x="urn:whatever:namespace">90952</x:code>
somewhere in the xml coming into my application, and I have absolutely
no knowledge of the namespace and the element of local name code in it,
how does normal Forms or any technology help me to securely transform
that to <zip>90952</zip>. This is what I think you're saying it does,
and this is what I find strange and mystifying that it could do,
although I am willing to be astounded if it be so.

>In the spirit of your list, this doesn't include strategies by which 
>unknown namespaces become known, such as James Clark's NXML locate and 
>David Tolpin's Regular Associations, recently mentioned on this list.

Thanks for the info, still not sure if I understand the Regular
Associations post yet. Yeah, how an unknown namespace becomes known
isn't what I'm interested in right now. What I'm thinking about
specifically is models for how unknown namespaces are treated that
remain unknown all the way through an application, mainly because we
have an application in which I suppose that is going to be a big
problem. 



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.