Bug #2516
closedSchema validation: Fatal errors handled differently
100%
Description
Reported by user:
Fatal errors are handled differently. They are not counted toward validity of the input XML file.
Attached FatalErrors.zip file has this test case.
Files
Updated by Michael Kay almost 9 years ago
The InvalidityHandlerWrappingErrorListener is calling ErrorListener.error() rather than ErrorListener.fatalError(). I'm not sure this is what we did before but it seems a better fit to the spec. It's difficult to be definitive because the spec for ErrorListener talks about its use for transformation rather than for validation.
Updated by Yitzhak Khabinsky almost 9 years ago
- File MyErrorListener.zip MyErrorListener.zip added
To pinpoint your attention:
I attached my latest version of the MyErrorListener.java file.
Long time ago I added line 48 to add fatal errors to the global error counter.
This way we have 2 global counters:
-
errorCount = error events + fatalError events
-
warningCount = warning events
Updated by O'Neil Delpratt almost 9 years ago
- Status changed from New to Resolved
For the purpose of background compatibility the class InvalidityHandlerWrappingErrorListener wraps an ErrorListener to use with the new Reporting feature. In 9.6 the errorListener was reported using the fatalErrors method. This we should have carried forward in 9.7 instead of using the 'errors' method.
Bug fixed and committed to svn.
Updated by O'Neil Delpratt almost 9 years ago
- Applies to branch 9.7 added
- Fix Committed on Branch 9.7 added
Updated by O'Neil Delpratt almost 9 years ago
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.7.0.2 added
Bug fix applied in the Saxon 9.7.0.2 maintenance release
Updated by O'Neil Delpratt almost 9 years ago
- Status changed from Resolved to Closed
Please register to edit this issue