In a DITA-OT preprocessing plugin, how can I tell what transformation type is being run? #4443
-
In a DITA-OT plugin, I want to apply some preprocessing to only certain transformation types. How can I do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
One way would be to extend an existing transformation type, then add additional custom tasks to the preprocessing pipeline. I don't have an example for this, as I've never done it. Another way is to import the
You can import the property as an XSLT parameter using one of the |
Beta Was this translation helpful? Give feedback.
One way would be to extend an existing transformation type, then add additional custom tasks to the preprocessing pipeline. I don't have an example for this, as I've never done it.
Another way is to import the
TRANSTYPE
Ant property into an existing XSLT preprocessing stage, then reference it like this:You can import the property as an XSLT parameter using one of the
dita.preprocess.*.param
extension points. Here is a sample plugin showing how to do this:com.synopsys.show-transtype.zip