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

RE: Limericks and XML...

limerick poem

I think you just restated the document vs. data conundrum. If you're writing
markup for a document for humans, all you may need is:

> <poem type="limerick">
>     There was a young lady named Bright
>     Whose speed was much faster than light.
>     She set out one day,
>     in a relative way,
>     And returned on the previous night.
> </poem>

But if you're doing automated limerick validation, that's not enough
information. I would say the data is unnormalized for that intent. (There
are conflicting definitions of "normalize"; I mean it in the data modeling
sense of the term.) Too many compound data fields, in other words, forcing
the validation engine to do its own parsing for syllabilification.

Your other example is more like it:

> <poem type="limerick">
> <line><foot><syllable>There</syllable><syllable>was</syllable>
> <syllable>a</syllable></foot>...</line>
>     .
>     .
>     .
>     .
> </poem>

There's not quite enough information in the above, either, but it's closer.

In my opinion, XML is just a syntax for describing things. It may not be the
most efficient or intuitive, but I think it has enough universality to
handle just about description you care to write in it, to any level of

Yesterday someone told me he didn't think XML was a good language for data
modeling (I have a feeling he doesn't like SQL DDL, either). What is 'good'?
There's no universal 'good' that can be applied in every situation. Good is
what fits the constraints of the system.




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.
First Name
Last Name
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.