本文整理汇总了Java中org.intellij.plugins.xsltDebugger.rt.engine.local.saxon9.Saxon9Support类的典型用法代码示例。如果您正苦于以下问题:Java Saxon9Support类的具体用法?Java Saxon9Support怎么用?Java Saxon9Support使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Saxon9Support类属于org.intellij.plugins.xsltDebugger.rt.engine.local.saxon9包,在下文中一共展示了Saxon9Support类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTransformerFactory
import org.intellij.plugins.xsltDebugger.rt.engine.local.saxon9.Saxon9Support; //导入依赖的package包/类
public TransformerFactory createTransformerFactory() throws ClassNotFoundException, InstantiationException, IllegalAccessException {
final String type = System.getProperty("xslt.transformer.type");
if ("xalan".equalsIgnoreCase(type)) {
return XalanSupport.createTransformerFactory();
} else if ("saxon".equalsIgnoreCase(type)) {
return SaxonSupport.createTransformerFactory();
} else if ("saxon9".equalsIgnoreCase(type)) {
return Saxon9Support.createTransformerFactory();
} else if (type != null) {
throw new UnsupportedOperationException("Unsupported Transformer type '" + type + "'");
}
return XalanSupport.prepareFactory(XSLTRunner.createTransformerFactoryStatic());
}