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

Re: SLAIX (was: Can XLink be fixed)


Re: SLAIX (was: Can XLink be fixed)
John Cowan writes:
> I'd like to launch a discussion about solving the infoset
> serialization problem once and for all, for every kind of infoset. 
> As a trial balloon, I propose SLAIX, which stands for "serializing in
> Layman normal form any infoset as XML."

Layman normal form?  As in Andrew Layman?  This certainly isn't meant
for the layman.


> The document
> 
>   <book>
>     <author sort="brownjohn">John Brown</author>
>     <title>My Life</title>
>         </book>
> 
> SLAIXifies somewhat as follows:
> 
> <slaix:slaix slaix:xmlns="..."
xmlns="http://www.w3.org/TR/xml-infoset">
>   <document slaix:id="root" children="e1" document_element="e1" 
> base_URI="..."/>
>   <element slaix:id="e1" local_name="book" children="e2 e3"
>       attributes="" namespace_attributes="" in-scope_namespaces="n1"
>       base_URI="..." parent="root"/>
>   <element slaix:id="e2" local_name="author" children="c1 c2 c3 c4 c5 
> c6 c7 c8 c9 c10"
>       attributes="a1" namespace_attributes="" in-scope_namespaces="n1"
>       base_URI="..." parent="book"/>
>   <element slaix:id="e3" local_name="title" children="c11 c12 c13 c14 
> c15 c16 c17"
>       attributes="" namespace_attributes="" in-scope_namespaces="n1"
>       base_URI="..." parent="root"/>
>   <attribute slaix:id="a1" local_name="sort" 
> normalized_value="brownjohn"
>       specified="true" attribute_type="CDATA" owner_element="e2"/>
>   <namespace slaix:id="n1" prefix="xml"
>       namespace_name="http://www.w3.org/XML/1998/namespace"/>
>   <character slaix:id="c1" character_code="74" 
> element_content_whitespace
>       = "false" parent="e2"/>
>   <!-- boring character elements omitted -->
> </slaix:slaix>

Sorry, John, but that's not only repulsive but it encourages the piling
on ever more crap into the infoset.  A more convincing Infoset
serialization for that document would look like:

   <book>
      <author sort="brownjohn">John Brown</author>
      <title>My Life</title>
   </book>
    
Or were you trying to make that point through blistering self-parody?
It's not April, so it's hard to tell.  But if you wanted rejection out
of hand followed by cackling hysterical laughter, you got it.

Yecch.

-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com

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.