如何在 Saxon-HE 中获得 EXSLT 支持? [英] How do I get EXSLT support in Saxon-HE?

查看:53
本文介绍了如何在 Saxon-HE 中获得 EXSLT 支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆 XSLT 文件,需要针对一些 XML 文件进行处理.我无法更改 XSLT 文件,因为它们来自第 3 方.XSLT 是 2.0 版.

我使用的是 Mac OS X 10.6,看起来 Saxon-HE 是唯一可用的 XSLT 2.0 处理器.

大多数 XSLT 的工作正常,但是,有些会在缺少函数方面出现错误,特别是 month-in-year() 和其他与日期/时间相关的函数.

根据http://www.saxonica.com/documentation/extensions/exslt.xml 关于 EXSLT:><块引用>

这些扩展在 Saxon-PE 和 Saxon-EE 中开箱即用"可用.它们在 Saxon-HE 中不可用

无论如何,我可以在 Saxon-HE 中使用 EXSLT 函数吗?

如果可行的话,我很乐意改用其他工具/处理器.

解决方案

Saxon-B 9.1 仍可供有此类需求的人使用.当您使用 XSLT 2.0 时,几乎不需要 EXSLT 扩展,但您确实会遇到使用它们的样式表,如果您想坚持使用开源软件,Saxon-B 仍然可以用于此目的.

I have a bunch of XSLT files that I need to process against some XML files. I cannot change the XSLT files as they come from a 3rd party. The XSLT's are version 2.0.

I'm on Mac OS X 10.6 and it looks like Saxon-HE is the only XSLT 2.0 processor available.

Most of the XSLT's work fine, however, some give errors regarding missing functions, specifically month-in-year() and other date/time related functions.

According to http://www.saxonica.com/documentation/extensions/exslt.xml regarding EXSLT:

These extensions are available in Saxon-PE and Saxon-EE "out of the box". They are not available in Saxon-HE

Is there anyway that I can use the EXSLT functions with Saxon-HE?

I'm happy to move to another tool/processor if that would work.

解决方案

Saxon-B 9.1 will remain available for people with this kind of requirement. There's very little need for the EXSLT extensions when you're using XSLT 2.0, but you do come across stylesheets that use them, and Saxon-B remains available for that purpose if you want to stick with open source software.

这篇关于如何在 Saxon-HE 中获得 EXSLT 支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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