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

Re: Victory has been declared in the schema wars ...

  • From: Paul Downey <paul.downey@w...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Wed, 29 Nov 2006 12:21:11 +0000

Re:  Victory has been declared in the schema wars ...

On 29 Nov 2006, at 11:32, Costello, Roger L. wrote:

> Would you explain why grammar-based languages (e.g., DTD, XSD, RNG)  
> are
> a bad foundation?  A grammar-based language tells an instance document
> author what tags are allowed, how those tags may be arranged, and the
> datatypes of the data.  Isn't that what we want from a schema  
> language?
> Shouldn't that information serve as the foundation for a schema?
>
> Also, would you explain why paths (XPaths) provide a more suitable
> foundation?

I'm not Rick, but here's my thinking:

When used as a description to drive a mapping (databinding if you will)
grammar-based languages encourage a parser to traverse the tree
or state-event the angle brackets and push the conten into the model
as it's encountered and barf if anything unexpected gets in the way.

This leads to closed world models, the need to add stupid flags such
as "mixed" and "xs:any", as well as enabling premature optimisations
such as UPA.

The result is a the natural tendency to kill extensions and evolution,
wither the 'X' in XML.

OTOH paths are ways of flagging the interesting bits in some otherwise
possibly open-ended content, and encourge querying the data. It's looser
and all the more loverly for it.

Paul
--
http://blog.whatfettle.com



[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.