Apache Xalan 的替代 XSLT 处理器 [英] Alternative XSLT processor to Apache Xalan

查看:81
本文介绍了Apache Xalan 的替代 XSLT 处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在我的 Java 应用程序中使用 Apache Xalan XSLT 处理器,但我想使用一些支持使用扩展功能的替代解决方案.Xalan 似乎已过时且有问题.我知道 Saxonixa Saxon,但它是闭源的.是否有一些开源且运行良好的替代方案?

I am currently using the Apache Xalan XSLT processor in my Java application, but I would like to use some alternative solution which supports use of extension functions. Xalan seems to be out of date and buggy. I know of Saxonixa Saxon, but it is closed sourced. Is there some open source and well working alternative?

推荐答案

Saxon 当前的开源版本 Saxon-HE 9.9 支持集成扩展函数"(写入特定 Saxon 定义的 Java 接口的函数).它不支持自反"扩展函数(调用在类路径中找到的任意 Java 类/方法).

The current open source version of Saxon, Saxon-HE 9.9, supports "integrated extension functions" (functions written to a particular Saxon-defined Java interface). It doesn't support "reflexive" extension functions (calls to arbitrary Java classes/methods found on the classpath).

请注意,如果您转向支持 XSLT 2.0 和 3.0 的 Saxon,您会发现调用 Java 的需求要少得多,因为 (a) 内置函数库要大得多,并且 (b) 您可以使用 xsl:function 声明实现自己的函数.

Note that if you move to Saxon, with support for XSLT 2.0 and 3.0, you will find there is much less need for calling out to Java, because (a) the built-in function library is much larger, and (b) you can implement your own functions using the xsl:function declaration.

这篇关于Apache Xalan 的替代 XSLT 处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆