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

Re: 3 XML Design Principles


costello xml
* Kenneth Stephen <marvin.the.paranoid@g...> [2005-01-29 16:19]:
> Alan,
> 
>     I dont think it follows that the structure of information in the
> XML representation needs to match the lexical representation. In the
> loose coupling demonstrated, the information is structured
> heirarchically, even though lexically it is not. To represent the same
> data you show, in a loosely coupled fashion, one would go :
> 
> <organization id="org" />
> <person id="john">
>     <worksFor />
> </person>
> <person id="sue">
>     <worksFor="john" />
> </person>
> <person id="stephan">
>     <worksFor="sue" />
> </person>
> 
> ....etc. This is pretty much the way the XML serialization of RDF
> works - the structure can
> be derived by an application / parser aware of the structure rules
> without depending on lexical structure.
> 
>     That being said, I would disagree with the original poster's
> assertion that flat structure is the preferred design. For things like
> XSL processing, a lexical structure that matches the information
> structure is desirable. For things like RDF, the lexical structure is
> not very important. So I think it is a matter of which technologies
> are being used.

    I'm coming at XML in general through XSLT in particular, so I
    find it cumbersome to have to construct structure.

    However, I do see how the structure you provide is easier to
    update. An initial transform can put it in the correct order
    for, say, rendering an xhtml display of the tree.
    
    To be told that it's application dependent is useful for me to
    hear as a student, so that I don't approach problems with
    prejudice against one form or another.

--
Alan Gutierrez - alan@e...

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-2007 All Rights Reserved.