DITA-OT 3.0 and Saxon

71 views
Skip to first unread message

Toshihiko Makita

unread,
Nov 1, 2017, 9:36:50 AM11/1/17
to DITA-OT Users

Hi,


According to the release note in the newest DITA-OT 3.0, I found that XSLT processor has been changed from Saxon-B 9.1 to Saxon-HE 9.8. So now we can use basic XSLT 3.0 functions in the plug-in stylesheet.

But Saxon-HE does not allow external Java library calls from stylesheet. In this case the DITA-OT user must purchase Saxon-PE/EE products.

What I want to know is to replace XSLT processor in DITA-OT from HE to PE/EE. When I consult the [DITA-OT]/startcmd.bat file, there is following line:

 

set CLASSPATH=%DITA_DIR%lib\Saxon-HE-9.8.0-5.jar;%CLASSPATH%

 

However I cannot found relevant line in bin/dita.bat file. How dita.bat includes Saxon .jar file into CLASSPATH?

 

Any suggestions are appreciated.

 

Regards,


-- 
/*--------------------------------------------------
 Toshihiko Makita
 Development Group. Antenna House, Inc. Ina Branch
 Web site:
 http://www.antenna.co.jp/
 http://www.antennahouse.com/
 --------------------------------------------------*/ 

Radu Coravu

unread,
Nov 3, 2017, 5:34:53 AM11/3/17
to Toshihiko Makita, DITA-OT Users
Hi,

I had trouble finding this out on my own because indeed those JAR libraries in the "lib" folder are not explicitly referenced from anywhere.
Here's what I found out after a discussion with Jarno Elovirta:

The ANT process automatically loads JAR libraries found in the "lib" folder from the Ant Home folder:

https://ant.apache.org/manual/running.html

And in the "DITA-OT/bin/ant.bat" scripts the "ANT_HOME" is set to be the DITA OT folder.

Regards,
Radu

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Toshihiko Makita

unread,
Nov 4, 2017, 7:33:11 AM11/4/17
to DITA-OT Users
HI Radu,

Thank you for your information about ant.
It means that I only replacing Saxon HE jar files to PE/EE version (with license file) will solve this problem.
It is very simple. I will inform it to my user.

Regards,

-- 
/*--------------------------------------------------
 Toshihiko Makita
 Development Group. Antenna House, Inc. Ina Branch
 Web site:
 http://www.antenna.co.jp/
 http://www.antennahouse.com/
 --------------------------------------------------*/


2017年11月3日金曜日 18時34分53秒 UTC+9 Radu Coravu:
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages