ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
[xml-dev] Re: SLAIX (was: Can XLink be fixed)
by Simon St.Laurent other posts by this author
Aug 14 2002 7:36PM messages near this date
Re: [xml-dev] SLAIX (was: Can XLink be fixed) | Re: [xml-dev] 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

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:

Rick Jelliffe
Henry S. Thompson
Norman Walsh
Norman Walsh
Paul Prescod
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Robin Berjon
=?iso-8859-1?Q?Bill_de_h=D3ra?=
Simon St.Laurent
Paul Prescod
Simon St.Laurent
Robin Berjon
Simon St.Laurent
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
J. David Eisenberg
Norman Walsh
J. David Eisenberg
Robin Berjon
Norman Walsh
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Shane McCarron
Simon St.Laurent
Joe English
Norman Walsh
Simon St.Laurent
Keith W. Boone
Arjun Ray
Arjun Ray
Rick Jelliffe
Simon St.Laurent
Simon St.Laurent
Tim Bray
Simon St.Laurent
Tim Bray
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
Lars Marius Garshol
Bob DuCharme
Elliotte Rusty Harold
Didier PH Martin
Elliotte Rusty Harold
Simon St.Laurent
Elliotte Rusty Harold
Norman Walsh
Tim Bray
Simon St.Laurent
Tim Bray
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Ann Navarro
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
John Cowan
Rick Jelliffe
Simon St.Laurent
John Cowan
Simon St.Laurent
John Cowan
Simon St.Laurent
Mike Champion
Didier PH Martin
John Cowan
Mike Champion
Simon St.Laurent
Norman Walsh
Tim Bray
Simon St.Laurent
Rick Jelliffe
Norman Walsh
Masayasu Ishikawa
John Cowan
Jeff Rafter

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved