@Immutable public final class SchematronTransformerFactory extends Object
TransformerFactory handler that prefers Saxon's
TransformerFactory before calling the SPI version
TransformerFactory.newInstance (). This is mainly to solve the
interoperability issue when using Xalan and Saxon together in the class path.| Modifier and Type | Field and Description |
|---|---|
static String |
SAXON_TRANSFORMER_FACTORY_CLASS |
| Modifier and Type | Method and Description |
|---|---|
static TransformerFactory |
createTransformerFactorySaxonFirst(ClassLoader aClassLoader,
ErrorListener aErrorListener,
URIResolver aURIResolver)
Create a new
TransformerFactory trying to invoke the Saxon
implementation first using the class
"net.sf.saxon.TransformerFactoryImpl". |
static TransformerFactory |
getDefaultSaxonFirst() |
public static final String SAXON_TRANSFORMER_FACTORY_CLASS
@Nonnull public static TransformerFactory getDefaultSaxonFirst()
TransformerFactory. Never
null.@Nonnull public static TransformerFactory createTransformerFactorySaxonFirst(@Nullable ClassLoader aClassLoader, @Nullable ErrorListener aErrorListener, @Nullable URIResolver aURIResolver)
TransformerFactory trying to invoke the Saxon
implementation first using the class
"net.sf.saxon.TransformerFactoryImpl".aClassLoader - The optional class loader to be used. May be null.aErrorListener - An optional XSLT error listener to be used. May be
null.aURIResolver - An optional XSLT URI resolver to be used. May be null.TransformerFactory and not null.com.helger.commons.exception.InitializationException - In case initialization fails.Copyright © 2014–2017 Philip Helger. All rights reserved.