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

Re: a or b or both - mystery..

  • From: Joe English <jenglish@f...>
  • To: xml-dev@l...
  • Date: Tue, 17 Apr 2001 07:50:04 -0700

Re: a or b or both - mystery..

Marcus Carr wrote:

> My understanding was that the requirement for deterministic
> models was a concession made to those who were writing parsers
> at the expense of those who were creating DTDs.

A more important reason is that, in SGML, the rules for 
when start-tags may be omitted don't make any sense unless 
content models are deterministic.

(There is a way to rephrase the rules for start-tag
omissibility that avoids this, but I don't think it will
ever make it into a revision of the SGML Standard.)

At any rate, there's really no need to retain the restriction
in XML Schemas.  The argument that it makes it easier
on parser authors is IMO bogus; there are *plenty*
of well-known, simple algorithms for RE matching that
have no problem with nondeterministic expressions.

A somewhat more compelling argument is that it's easier
for *human beings* to understand deterministic content models,
but that's better left to the discretion of Schema authors.


> There's only one structure that I know of where deterministic models are
> unable to express the desire of the author, but a case can certainly be
> made that non-deterministic models might be more convenient in some cases.

Which structure is that?


--Joe English

  jenglish@f...

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.