Page 1 of 1

How to add a custom DITA transformation type?

Posted: Mon Nov 03, 2008 6:34 pm
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!

Re: How to add a custom DITA transformation type?

Posted: Mon Nov 03, 2008 7:02 pm
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

Re: How to add a custom DITA transformation type?

Posted: Tue Nov 04, 2008 5:42 pm
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!

Re: How to add a custom DITA transformation type?

Posted: Tue Nov 04, 2008 6:02 pm
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