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

Re: namespace handling models


unknown namespace
bryan wrote:
>>transform: elements and children in the unknown namespace are 
>>transformed into known elements and text. Ex: Henry Thompson's normal
>>forms.
> 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:

Here is an entirely trivial example:

<x:foo xmlns:x="unknown" a="1" x:a="2">
   <y:bar xmlns:y="other"/>
</x:foo>

Becomes:

<element name="foo" ns="unknown" xmlns="known">
   <attribute name="a" value="1"/>
   <attribute name="a" ns="unknown" value="2"/>
   <text>
   </text>
   <element name="bar" ns="other"/>
   <text>
</text>
</element>

(I think I got this from a post by Simon St. Laurent.) It's a kind of 
transparent tunneling.

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

It's not about meaning, it's about markup. You don't have to lose 
information just because you don't understand it.

Bob

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