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

Re: ID/IDREF is evil

  • From: Steve Newcomb <srn@coolheads.com>
  • To: xml-dev@lists.xml.org
  • Date: Mon, 03 Feb 2014 21:34:07 -0500

Re:  ID/IDREF is evil
Roger,

How, exactly, does your proposed additional constraint actually
facilitate communication?

Or perhaps you believe XML has some purpose other than communication?

You recommend taking a cue from the lore of compiler construction.
But compilers are not focused on communication; their only purpose is to
*facilitate control over processes*.  Do you really feel that XML's
primary purpose is to facilitate control over processes?  I'm finding it
hard to believe that that's what you really think.

You seem to be saying that, whatever the purpose of XML might be, the
exploitation of some of its features necessarily impedes progress toward
the fulfillment of that purpose.  In order to convince me of your point,
you must articulate the purpose you think XML is supposed to fulfill.
Right now, I'm finding your point comparable to a claim that human
beings should abandon rice in favor of Rice Krispies in order to avoid
consuming the energy required to boil real rice.

Steve

On 02/03/2014 05:05 PM, Costello, Roger L. wrote:
> 	All known parsing algorithms for context-sensitive
> 	grammars are either very inefficient or very complex.
> 
> 	Reasoning about context-sensitive grammars is difficult.
> 
> 	Proofs about context-sensitive grammars is difficult.
> 
> 	Take cue from compiler developers: they separate
> 	context-sensitive processing into a separate pass.
> 
> So don't use ID/IDREF. 
> 
> Of course, that doesn't mean you will never have data that has intra-data dependencies. What it means is that you should modularize your grammar rules: express your context-free rules in your XML document and express your context-sensitive rules (intra-data dependencies) in Schematron. That's a nice, clean separation-of-concerns. That's a modular data design.
> 
> Let's recap:
> 
> 1. ID/IDREF introduces context-sensitive rules into your XML grammar wherever there is an ID attribute and wherever there is an IDREF attribute.
> 
> 2. Don't use ID/IDREF.
> 
> 3. Modularize your rules: express context-free rules in XML and express context-sensitive rules in Schematron.


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