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

Re: XML is Like a Box of Chocolates

  • From: Peter Flynn <peter@silmaril.ie>
  • To: xml-dev@lists.xml.org
  • Date: Sun, 04 Mar 2012 18:27:32 +0000

Re:  XML is Like a Box of Chocolates
On 04/03/12 14:05, Costello, Roger L. wrote:
[...]
> What's the meaning of this organization?
> 
> Obviously it has no meaning. It is simply the way I organized my 
> chocolates. To attach meaning to this organization is assigning 
> meaning where none exists.

In the case of data, where the individual items (chocolates) have no
intrinsic meaning, this is probably true.

In the case of text, where each sentence and word does have a meaning,
the way you organise them is likely to be of some importance.

> An XML document is just an organization of data. Organization has no 
> meaning. Be careful that you don't implicitly assign meaning where
> none exists.

By the same token, be careful that you don't fail to assign meaning
explicitly where it is needed. The <title> element as the first child of
a <chapter> element is important (the clue is in the name "title").

> For example, XML attributes are not "meta-data" and they have no 
> "scope".

On the contrary, attributes can be used as metadata if done carefully.

> Analogously, it would be foolhardy to claim that because the 
> chocolate bar is hooked onto the "Chocolates" box it is somehow 
> "meta-chocolate" and it "scopes" all the chocolates inside the box.

I had assumed that it was more like an SGML inclusion exception :-) A
little like those solid chocolate make-weights that honest chocolatiers
used to include in a box when the aggregate weight of each chocolate
fell short of the net weight printed on the box. Something we lost when
moving to XML :-)

> XML documents can be processed any way you want. There is no right 
> way.

Unfortunately not true where text is concerned. Storing or processing
the paragraphs of a chapter in reverse order and putting the title at
the end of the chapter might be pleasing to the Dadaists but is not
normally useful to the reader.

///Peter


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.