How to get EXSLT support in Saxon-HE?

I have a bunch of XSLT files that I need to process against some XML files. I cannot modify XSLT files because they come from a third party. XSLT - version 2.0.

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

Most of the XSLTs work fine, however some of them give errors regarding missing functions, in particular 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.

Anyway, can I use EXSLT functions with Saxon-HE?

I am happy to switch to another tool / processor if this works.

+6
source share
3 answers

Saxon-B 9.1 will remain available to people with this requirement. There is very little need for EXSLT extensions when you use XSLT 2.0, but you come across style sheets that use them, and Saxon-B remains available for this purpose if you want to stick with open source software.

+5
source

Saxon9 HE does not have the EXSLT extension. To use EXSLT, you need to go back to Saxon 9.1 or choose another product as a whole, for example Xalan (Java) or MSXML (Windows) or LibXSLT (C and scripting), all of which implement only XSLT and XPath 1.0. However, with Saxon9 HE and XSLT 2.0, why do you need EXSLT?

Well, I should have read your message before replying. This requirement is as follows:

  • XSLT 2.0
  • EXSLT
  • can't change XSLT

If all this is supposed, it looks like it leaves you with Saxon9 PE or EE. (Well, or Saxon 9.1, of course.)

+1
source

Regardless of which processor you choose, it should not support EXSLT functions, it just needs to be extensible so that you can register your own functions, so you can implement EXSLT functions yourself.

0
source

Source: https://habr.com/ru/post/887362/


All Articles