Page 1 of 1

DITA-OT plug-in integration

Posted: Thu Aug 10, 2017 4:34 am
by SD-Dave
I am developing a custom DITA-OT PDF plugin that launches from an ANT build file. It is working, using an external DITA-OT installation. Now I would like to launch it from within Oxygen XML. I have tried using the ANT transformation scenario, both with the included DITA-OT installation that comes with Oxygen and the external DITA-OT directory. I have tried playing with the JRE and ANT directories in the options tab for the ANT transform. But I am getting errors regardless of what I try.

Below is the error log from Oxygen:

"c:\program files (x86)\oxygen xml editor 19\jre/bin/java" -Xmx256m -classpath "C:\dita-ot-2.4.6/lib/ant-launcher.jar" "-Dant.home=C:\dita-ot-2.4.6" -f "QSR-Drum-Synth-Manual.ditamap" "-Dwebhelp.trial.license=no"

Buildfile: C:\Users\David\Documents\QSR-Drum-Synth\QSR-Drum-Synth-Manual.ditamap
C:\Users\David\Documents\QSR-Drum-Synth\learningmap.dtd could not be found

BUILD FAILED C:\Users\David\Documents\QSR-Drum-Synth\learningmap.dtd (The system cannot find the file specified)
at Method)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)...

Total time: 0 seconds

The process finished with exit code: 1

Re: DITA-OT plug-in integration

Posted: Thu Aug 10, 2017 8:14 am
by Radu

Looking at the command line Oxygen executes you created an ANT transformation scenario in Oxygen but as the value of the "Build File" path you set the path to the main DITA Map instead of setting the reference to the ANT build file.
I think that instead of a plain ANT transformation scenario you should create a transformation scenario of type "DITA OT". In the "Parameters" list you can define the "dita.dir" parameter and have it point to the DITA OT used for publishing.