use of com.helger.schematron.pure.errorhandler.LoggingPSErrorHandler in project ph-schematron by phax.
the class Issue4Test method testReadFromUNCWithInclude.
@Test
public void testReadFromUNCWithInclude() throws Exception {
final File aSchematronFile = new File("\\\\PC61826\\share\\example-8-5.sch");
if (aSchematronFile.exists()) {
final SchematronResourcePure aResPure = SchematronResourcePure.fromFile(aSchematronFile);
aResPure.setErrorHandler(new LoggingPSErrorHandler());
aResPure.validateCompletely();
assertTrue(aResPure.isValidSchematron());
} else
s_aLogger.info("Test ignored because file does not exist");
}
use of com.helger.schematron.pure.errorhandler.LoggingPSErrorHandler in project ph-schematron by phax.
the class Issue64Test method validateAndProduceSVRL.
public static void validateAndProduceSVRL(@Nonnull final File aSchematron, final File aXML) throws Exception {
final SchematronResourcePure aSCH = SchematronResourcePure.fromFile(aSchematron);
aSCH.setErrorHandler(new LoggingPSErrorHandler());
// Perform validation
final SchematronOutputType aSVRL = aSCH.applySchematronValidationToSVRL(new FileSystemResource(aXML));
assertNotNull(aSVRL);
}
Aggregations