How to add a custom DITA transformation type?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jperkins
Posts: 2
Joined: Wed Oct 22, 2008 3:09 pm

How to add a custom DITA transformation type?

Post by jperkins »

Just getting started with Oxygen, and didn't see this mentioned anywhere in the docs that I can find.

We have developed a custom DITA transformation type, like the "xhtml" and "pdf2" transformation types that are included with the DITA-OT. Running it from the command line, it would look like this:

Code: Select all

java -jar lib/dost.jar /transtype:flashxml /i:{$currentFileURL}
How do I get our custom type "flashxml" added to the "DITA Transformation Type" dialog, so I can configure a new scenario based on it?

And, possibly related, how do I also configure this transformation for a specific document? I see how to apply an XSLT to a document, but not a DITA transformation.

Thanks in advance for any assistance!
Radu
Posts: 9437
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to add a custom DITA transformation type?

Post by Radu »

Hi,

Oxygen comes with DITA Open Toolkit 1.4.2.1 bundled in the OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/ directory.

You have 2 ways in which you can accomplish this.

1) If the transformation is applied to a DITA Map and the map is opened in the "DITA Maps Manager" view you can configure a new scenario choosing one of the available built-in transformation types and then customize it (for example, in the "Parameters" tab add the "transtype" parameter with your custom value, in the "Advanced" tab possibly change the build file path and build file target)

2) You can create an External Tool to run your command line using editor variables to run it on the current selected editor.
See:
http://www.oxygenxml.com/doc/ug-oxygen/ ... tools.html


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jperkins
Posts: 2
Joined: Wed Oct 22, 2008 3:09 pm

Re: How to add a custom DITA transformation type?

Post by jperkins »

Ah, I didn't notice that I could add a new parameter on that dialog. Thanks for that; I will give that a try.

Is there a way to apply a full DITA transformation to a document as well? Document > Transformation > Configure... only seems to allow applying an XSLT.

Thanks for the quick response!
Radu
Posts: 9437
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to add a custom DITA transformation type?

Post by Radu »

Hi,

No, for the moment you can apply DITA ANT transforms only on maps opened in the DITA Maps manager view.
You have to define some sort of External Tool command lines for the opened editors.

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