use of net.sf.saxon.TransformerFactoryImpl in project ddf by codice.
the class SchematronValidationService method init.
public void init() throws SchematronInitializationException {
if (transformerFactory == null) {
transformerFactory = TransformerFactory.newInstance(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