classpathx-xml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-xml] Ælfred2 SAX conformance


From: Chris Burdess
Subject: Re: [Classpathx-xml] Ælfred2 SAX conformance
Date: Thu, 5 Aug 2004 09:38:29 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Burdess wrote:
The patch normalises ignorableWhitespace and characters recognition, so it doesn't penalise other parsers for not having the exact same behaviour as Xerces (which is not demonstrably correct in this matter). There are a couple of performance improvements as well.

It also raises a bit of a bugbear for Xerces, as it checks for fatalError correctly. When Xerces encounters a fatalError, it doesn't call endDocument afterwards. The SAX specification mandates that endDocument is always called. So this patch reduces Xerces conformance to 37.28%.

From the SAX specification for endDocument:

"The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input."

In the conformance tests for Xerces, the last method invoked is often fatalError NOT endDocument, which I interpret as a fail. - -- Chris Burdess
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBEfIF6dl1DEqHgrgRArFVAKCCDxJ5gcxiSE8UL3feaFefe4QMHQCgo45c
xds6JApDRyXMQhuSk3IPPwA=
=TPuO
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]