Using ant transformations from DITA-OT Oxygen Framework outs

Here should go questions about transforming XML with XSLT and FOP.
GSejourne
Posts: 15
Joined: Tue Mar 15, 2011 12:56 pm

Using ant transformations from DITA-OT Oxygen Framework outs

Post by GSejourne »

I'm trying to use the ant transformations of the built-in DITA-OT framework, which work fine inside Oxygen, outside the editor, using CLI.

Like

Code: Select all

ant -f mybuildfile.xml mytarget
.

I previously used a manually installed dita-ot environment, and this used to work well, once you set all necessary env variables, PATH and CLASSPATH.

The question is: what do you have to do to use the Oxygen DITA-OT framework out of Oxygen ? What environment variables do you have to set ? Where should they point to ? etc.

Thanks,

NB: The purpose is: some of the transformation must be handled on an svn repo server, which would build the latest dita doc every night, etc., so I really need to get this going;
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Using ant transformations from DITA-OT Oxygen Framework outs

Post by Radu »

Hi,

Each DITA Open Toolkit installation has startup scripts like:
startcmd.bat and startcmd.sh
which set the necessary class path and environmental variables and then launch ANT.

Even the DITA OT which comes bundled with Oxygen (in the OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT) has these scripts present and you can start looking inside them.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
GSejourne
Posts: 15
Joined: Tue Mar 15, 2011 12:56 pm

Re: Using ant transformations from DITA-OT Oxygen Framework outs

Post by GSejourne »

Alright,

I have some leads then, but still doesn't work.
I'm still getting java classpath errors...

While looking at the shipped build.xml file in the /DITA-OT dir, it seems it contains a bunch of Oxygen hacks...

Is this the place to look ?
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Using ant transformations from DITA-OT Oxygen Framework outs

Post by Radu »

Hi,

Yes, the DITA Open Toolkit bundled with Oxygen contains some patches and improvements. It also does not contain some libraries which usually come with an external DITA Open Toolkit (as it uses the libraries directly from Oxygen).
If you want an unmodified version you can download it directly from the DITA Open Toolkit web site:
http://sourceforge.net/projects/dita-ot ... 20Release/

You can get a full easy-install version.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply