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

Wellformedness

  • From: Staffan Måhlén <staffan.mahlen@a...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 13 Mar 2001 17:15:22 +0100

wellformedness
Several threads have lately been describing wellformedness as rock-solid. In
a message [1] last week i questioned a (very) minor point of the XML 1.0
second edition recommendation on this. I have now also tested using the W3C
validator but that one too complained, although i am not quite sure that not
using the -V option implies only checking wellformedness. The problem seems
to be that at least one major parser as well as the W3C validator is not
compliant regarding one minor wellformedness issue.

A few more direct questions could be:

Is the example wellformed?
Are internal DTDs mandatory to parse when only checking wellformedness?
Are internal entities required to be included if only checking
wellformedness?
(the entity table in the spec suggests the two above are true but there
might be some more vague fallback?)

Are there other wellformedness issues where commonly used parsers fail?
Do other parsers see my example as wellformed?
Should two-step parsing of internal DTDs be required (when not validating)?
Is event-based parsing (SAX) supposed to handle this (or does it already)? 
Why not make PE declarations mandatory (WFC) before usage?

With the last question probably being my main question. I wish to understand
the reason for the change. The "feature" is probably never used, but i
suspect there is something behind the errata i am missing. Are there grey
areas regarding wellformedness and the borderline between
validating/wellformed? Or am i just not reading the spec right?

/Staffan Måhlén

[1] http://lists.xml.org/archives/xml-dev/200103/msg00360.html 
...contained the Example:

<?xml version="1.0"?>
<!DOCTYPE test [
<!ELEMENT test (#PCDATA)>
%zz; 
<!ENTITY % zz '&#60;!ENTITY nonTricky "error-prone" >' >
]>
<test>
	&nonTricky;
</test>

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.