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

Re: Accepting non-deterministic content models

  • From: Lars Marius Garshol <larsga@g...>
  • To: xml-dev@l...
  • Date: Mon, 09 Jul 2001 11:47:24 +0200

nsgmls parser

* Lars Marius Garshol
|
| The only reason to reject non-deterministic content models is because
| the SGML standard requires it, and so for backwards compatibility XML
| did the same. This is also why the requirement is so vague. It doesn't
| say "should", it says "for compatibility, it is an error if...".

* John Cowan
| 
| [...] This was done so that existing SGML parsers could handle XML.
| I still often parse XML with nsgmls, for example.

I know. But since SGML had to be changed anyway, I think it should
also have been changed to allow non-deterministic content models in
"XML mode"; that is, when &-connectors are turned off in the SGML
declaration. 
 
* Lars Marius Garshol
|
| If this approach is followed, you have to do extra work to detect
| whether the original content model was "non-deterministic". In fact, 
| the reason why xmlproc accepts such content models (as Tom Passin
| reports) is that I haven't implemented this check yet. I don't think
| there's all that much point in doing so, either.
 
* John Cowan
|
| The language "it is an error" means that your processor need not
| detect it.  So if you don't want to add it, don't.

I know. I'm arguing on two levels at once here, and not keeping them
straight. XML being the way it is I think there _is_ a point in
implementing this. But I think there is absolutely no point in having
XML be this way.
 
* Lars Marius Garshol
|
| Now that we've ended up with a spec that is the way it is, I think the
| best course to follow for an implementation is to accept such content
| models, but to warn about them. 
 
* John Cowan
|
| That too is a reasonable course of action, since it protects
| the document author against non-portable documents.

That is the idea.

--Lars M.


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.