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

Re: Conformance testing and the XML-test-suite


xml testing
> In the conformance test suite published by the W3C, there is a document 
> that explains each test and the expected message/behavior of a 
> conformant parser [1]. The section "Invalid" reads:
> 
> > All conforming XML 1.0 Validating Processors are required to report
> > recoverable errors in the case of documents which are Invalid. Such
> > errors are violations of some validity constraint (VC).
> >
> > If a validating processor does not report an error when given one of
> > these test cases, or if the error reported is a fatal error, it is not
> > conformant. If the error reported does not correspond to the problem
> > listed in this test description, that could also be a conformance
> > problem; it might instead be a faulty diagnostic.
> >
> > All conforming XML 1.0 Nonvalidating Processors should accept these
> > documents, reporting no errors.
> 
> Is this accurate? I thought any parser-- including a non-validating 
> parser-- could report violations of Validity Constraints insomuch as 
> they can recognize them [2].
> 
> [1] http://www.w3.org/XML/Test/xmlconf-20031210.html#invalid
> [2] http://www.w3.org/TR/REC-xml/#proc-types
> 


As far as I can tell, the XML spec does not state that a non-validating
XML processor must not report VC violations. However, the moment it does 
report some of them, it could be considered a faulty validating pocessor.

From a practical point of view, a non-validating processor that
reports VC violations as errors would not be very useful, as you could
not check for well-formedness of a document, unless you examine each
reported error manually.

Karl

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.