Closed jkiddo closed 8 years ago
The first problem is the missing support for the XML Entity Handler when just reading from a file. I added support for this in the current HEAD revision.
The second things was, that the errorHandler must be assigned to the SchematronResource itself. Please see https://github.com/phax/ph-schematron/blob/master/ph-schematron/src/test/java/com/helger/schematron/supplementary/Issue30Test.java for a working test case that fixes the Entity resolution and the error handling logging.
Did the EntityHandler extension help you? Do you need a 4.1.1 release?
Release early, release often ;) - I found a workaround, so it is not that critical. But feel free to push a release when you see fit containing the fix
Version 4.1.1 is on Maven central
There seems to be a bug when validating the schematron files. The following code reproduces the bug:
Attached are the schematron files with an empty rule which is intentionally a bug. When running validateCompletely, none of the methods are hit in the IPSErrorHandler. However, when running isValidSchematron(), the schemas are deemed invalid
Archive.zip