Page 1 of 1

DITA OT 1.8 with Oxygen 20

Posted: Wed May 30, 2018 12:37 pm
by NicoAMP
Hello,

I use DITA OT 1.8 (I need to use this version for a customer) with Oxygen 19 to produce PDF on a ditamap : it works well.

When I use Oxygen 20 to do the same thing I have 2 errors :
- Transformation failed. C:\tmp\DITA-OT\plugins\org.dita.pdf2\build.xml:324: javax.xml.transform.TransformerConfigurationException: net.sf.saxon.s9api.SaxonApiException: Errors were reported during stylesheet compilation
- Leading '/' selects nothing: the context item is absent (C:\tmp\DITA-OT\plugins\net.sourceforge.dita4publishers.common.xslt\xsl\lib\dita-support-lib.xsl)

Do you know why I have this error with Oxygen 20 and not with Oxygen 19 ?

Thanks

Re: DITA OT 1.8 with Oxygen 20

Posted: Wed May 30, 2018 1:58 pm
by Radu
Hi,

The DITA OT 1.8 you are using probably comes from an older Oxygen installation and is missing a couple of libraries (because it uses Oxygen's equivalent libraries). The latest Saxon 9.8 XSLT processor bundled with Oxygen 20 started showing this error because of some problem it finds in one of the XSLTs.
As a quick fix:

In the "OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT2.x\lib" folder there are two libraries (saxon-9.1.0.8.jar and saxon-9.1.0.8-dom.jar) which should be copied to the equivalent "DITA-OT1.8\lib" folder.

Regards,
Radu

Re: DITA OT 1.8 with Oxygen 20

Posted: Thu May 31, 2018 11:59 am
by NicoAMP
Hi,

Thanks a lot, It works well now.

Regards,
Nicolas