Custom DITA-OT plugins may contribute new transformation types (transtypes) and each transtype may have a set of allowed configuration parameters. If a DITA-OT plugin declares a transtype, Oxygen XML Author Eclipse plugin detects that transformation type declaration and presents descriptions in the DITA Transformation Type dialog box and the contributed parameters in the transformation scenario's Parameters tab.
<transtype> element to specify a name, description, and the
transtype it
extends.<transtype name="xhtml" extends="base-html" desc="HTML"><param> element to specify
the name, description, and information about the default and allowed set of values. For
more information, see: https://www.dita-ot.org/3.1/topics/plugin-configfile.html.<param name="args.indexshow" desc="Specifies whether to show the index" type="enum">
<val>yes</val>
<val default="true">no</val>
</param>Depending
on the type declared for a parameter, Oxygen XML Author Eclipse plugin will help you pick values for
each parameter edited in the Parameters tab of the transformation
scenario configuration dialog box. For example, for parameters of type "enum", Oxygen XML Author Eclipse plugin will present a combo box for choosing the proper value for the
parameter.<promotedParams> element to define
the promoted parameters. Here is an
example:<extensionPlugin>
<transtype name="pdf-css-html5">
<promotedParams>
<param name="args.css" promotedName="CSS"/>
<param name="args.css.param.numbering" promotedName="Numbering"/>
<param name="args.chapter.layout" promotedName="Chapter layout"/>
</promotedParams>
</transtype>
</extensionPlugin>The example above results in the Parameters tab looking like this:
<plugin id="com.oxygenxml.pdf.prince">
<!-- extensions -->
<feature extension="dita.conductor.transtype.check" value="pdf-prince" type="txt"/>
<feature extension="dita.conductor.target.relative" value="integrator.xml"
type="file"/>
<feature extension="dita.transtype.print" value="pdf-prince"/>
<transtype name="pdf-prince" extends="commons" desc="PDF (Prince XML)">
<param name="princeExecPath" type="file" desc="Path to the Prince executable"/>
</transtype>
</plugin>For more information, watch this DITA-OT Day 2015 presentation: