Re: [xsl] Calling a java method in XSL 1.0 with Saxon 6.5.5 fails

Subject: Re: [xsl] Calling a java method in XSL 1.0 with Saxon 6.5.5 fails
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 16 May 2007 11:33:45 +0200
Kai Hackemesser wrote:


Michael Kay schrieb:
I have a (currently) simple java method I want to use in a xsl stylesheet. I use XSL 1.0 and Saxon 6.5.5 (project requirement :'( ).

Please tell whoever it is that sets your project requirements that Saxon
6.5.5 is getting rather old, that its developer no longer remembers very
much about how it works, and that Saxon 8.9.0.3 handles XSLT 1.0 stylesheets
just as well if not better, unless you use one of the very few pathological
constructs where the specification changes incompatibly in XSLT 2.0.
The requirements are: It has to run with pure JDK 1.4.2 and there it is used, isn't it?

what's that, "pure jdk"? Does that mean that you are not allowed to have any additional libraries apart from the one that are delivered by Sun? Saxon surely is not provided as part of the JDK, so you already have additional libs. And Saxon 8.9x runs just as well with the "pure jdk 1.4" as the 6.5 version, even better. As an added benefit, you can switch for free to XSLT 2.0, which is a giant leap forward as compared to XSLT 1.0 (but if you are addicted to 1.0, you can still use it just as you did before).


-- Abel Braaksma

Current Thread