How to add a custom DITA transformation type?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Wed Oct 22, 2008 3:09 pm
How to add a custom DITA transformation type?
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:
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!
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}
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!
-
- Posts: 9437
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to add a custom DITA transformation type?
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Wed Oct 22, 2008 3:09 pm
Re: How to add a custom DITA transformation type?
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!
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!
-
- Posts: 9437
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to add a custom DITA transformation type?
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service