Pre-processing
You can use the following extension points to pass parameters to modules in the pre-processing pipeline:
- dita.preprocess.conref.param
- Pass parameters to the conref module in the pre-processing pipeline
- dita.preprocess.mappull.param
- Pass parameters to the mappull module in the pre-processing pipeline
- dita.preprocess.mapref.param
- Pass parameters to the mapref module in the pre-processing pipeline
- dita.preprocess.topicpull.param
- Pass parameters to the topicpull module in the pre-processing pipeline
Transformations
You can use the following extension points to pass parameters to modules in DITA-OT transformations:
- dita.conductor.eclipse.toc.param
- Pass parameters to the XSLT step that generates the Eclipse Help table of contents (TOC).
- dita.conductor.html.param
- Pass
parameters to the HTML and HTML Help
transformations.
- dita.conductor.html5.param
- Pass
parameters to the HTML5 transformation.
- dita.conductor.html5.toc.param
- Pass
parameters to the XSLT step that generates the HTML5 table of contents (TOC).
- dita.conductor.pdf2.param
- Pass
parameters to the PDF transformation.
- dita.conductor.xhtml.param
- Pass
parameters to the XHTML and Eclipse Help transformations.
- dita.conductor.xhtml.toc.param
- Pass
parameters to the XSLT step that generates the XHTML table of contents (TOC).
Example
The following two files represent a complete (albeit simple) plug-in that passes the parameters defined in the
insertParameters.xml file to the XHTML transformation process.
Contents of the plugin.xml file
<plugin id="com.example.newparam">
<feature extension="dita.conductor.xhtml.param"
file="insertParameters.xml"/>
</plugin>
Contents of the insertParameters.xml
<dummy xmlns:if="ant:if" xmlns:unless="ant:unless">
<!-- Any Ant code allowed in xslt task is possible. Example: -->
<param name="paramNameinXSLT" expression="${antProperty}"
if:set="antProperty"/>
</dummy>