May describe unreleased features ยท Switch to current
release
4.2
ยท For shortcuts, type ?
Adding a new transformation type
Plug-ins can add an entirely new transformation type. The new transformation type can be very simple, such
as an HTML build that creates an additional control file; it also can be very complex, adding any number of new
processing steps.
About this task
You can use the <transtype> element to define a new transformation type with any new
custom parameters that are supported.
When a transformation type is defined, the build expects Ant code to be integrated to define the transformation
process. The Ant code must define a target based on the name of the transformation type; if the transformation
type is "new-transform", the Ant code must define a target named dita2new-transform.
Procedure
Create an Ant project file for the new transformation. This project file must define a target named
"dita2new-transtype," where new-transtype is the name of the new
transformation type.