OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XML ... simple building blocks, simple assemblymechanisms,

[ Lists Home | Date Index | Thread Index ]

Hi Roger,

On Mon, 2004-06-21 at 15:48, Roger L. Costello wrote:
> Hi Folks,
>  
> I think that XML is a lot like Legos.  
>  
> Consider Legos: with simple building blocks that have clearly defined
> assembling mechanisms (i.e., ways of snapping the blocks together) you
> can create a virtually endless variety and complexity of structures.
>  
> Consider XML: in XML there are just two building blocks: (1) tags, and
> (2) data.   The assembling mechanisms of XML building blocks are very
> simple: (1) a tag can embed tag(s), and (2) a tag can embed data. 
> With these building blocks, and these assembly mechanisms virtually
> any information structure can be created.
>  
> Simple building blocks ... simple assembly mechanisms ... endless
> complexity.

I agree with the conclusion and wouldn't want to sound pedantic, but XML
tags can't embed either tags nor data.

XML tags are either start tags or empty (which can only embed meta-data)
or end tags (which do not embed anything).

I think that you can either choose:

      * to stay at the level of the XML document as a text and say that
        in XML the two building blocks are tags and text literals
        (keeping apart the more exotic stuff) 
      * or to elevate yourself at the level of the XML infoset and say
        that the building blocs are elements, attributes and text nodes
        (forgetting again the more exotic information items).

My 0.02 Euros

Eric

> Nice!  
>  
> /Roger
-- 
Rendez-vous à Paris (Web Services Convention).
                                                http://masl.to?C12E25728
Upcoming XML schema languages tutorial:
 - Portland   -half day-   (27/07/2004)        http://masl.to/?E6ED13728
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS