Dear community
I need to preprocess some ditamaps before the topics are pulled and merged by the Dita OT.
I wrote a little plugin which extends the preprocess.pre and post extension points.
<plugin id="com.my.preprocess">
<require plugin="com.oxygenxml.pdf.css"/>
<feature extension="ant.import" file="build.xml"/>
<feature extension="depend.preprocess.pre" value="my-preprocess"/>
<feature extension="depend.preprocess.post" value="my-postprocess"/> </plugin>
This works but the preprocessing now is applied to all transformations regardless of type. I dont want this, I only need it for certain ditamaps, so my idea was to define a new transtype.
<feature extension="dita.transtype.print" value="my-preprocessed-pdf"/>
<transtype name="my-preprocessed-pdf" extends="pdf-css-html5" />
and defined in build.xml an ant target
<target name="dita2my-preprocessed-pdf" depends="dita2pdf-css-html5">
But from here on I don't know what to do. How do I connect the targets?
I want the "my-preprocess" and "my-postprocess" extensions only applied when the transtype is "my-preprocessed-pdf"
Any help is much appreciated.
Regards Jörn