我使用的是格式化引擎,以前我使用的是saxon9he.jar,在该引擎中使用的配置是“
private static TransformerFactory theTransformerFactory =
TransformerFactory.newInstance();
((TransformerFactoryImpl) theTransformerFactory).getConfiguration();
现在我想使用EnterpriseEdition
saxon9ee.jar,我想使用EnterpriseTransformerFactory
来获得配置。我能用这个吗?或者,我需要对引擎中的EnterpriseEdition
开关进行哪些更改?
发布于 2015-09-29 16:53:39
Saxon的EnterpriseTransformerFactory
和EnterpriseConfiguration
是Saxon的TransformerFactoryImpl
和Configuration
的子类,因此您应该能够以完全相同的方式使用它们,而无需对应用程序进行任何更改。当然,要获得任何好处,您需要(a)安装许可证文件和/或(b)对代码进行更改以利用新特性。
https://stackoverflow.com/questions/32843648
复制相似问题