use of net.sf.saxon.Configuration in project ddf by codice.
the class SchematronValidationService method init.
public void init() throws SchematronInitializationException {
if (transformerFactory == null) {
transformerFactory = XML_UTILS.getSecureXmlTransformerFactory(TransformerFactoryImpl.class.getName(), SchematronValidationService.class.getClassLoader());
}
// DDF-855: set ErrorListener to catch any warnings/errors during loading of the
// ruleset file and log (vs. Saxon default of writing to console) the warnings/errors
Configuration config = ((TransformerFactoryImpl) transformerFactory).getConfiguration();
config.setErrorListener(new SaxonErrorListener(schematronFileNames));
updateValidators();
}
Aggregations