Create a transformation target
This procedure describes how to create a transformation target and add it to a conductor file.
Targets are defined in your client conductor file (for example,
%OutputGenDir%/data/conductor-acme.xml) in a
<target>
element.
- Prepare the execution environment
- Prepare the content for the transformation
- Create the build.bat file and build.properties files
- Execute build.bat
- Clean up the files
- Input directory: When IXIASOFT CCMS Output Generator retrieves the files from the Content Store, it stores them in this directory, defined with the
outgen.job.source.dir
Ant property. If you need to modify the files before transforming them, you need to modify them in this directory.Note: If you are working with a branched map or a map that includes content from different cycles (authoring, published, localization), you must call theflatten
target before modifying the source files. Theflatten
target will copy all the files to the input directory so that you can modify them as required. - Output directory: Any file that is stored in this directory at the end of the transformation job will be returned to the end user in a zip file (if using CCMS Desktop) or saved to the app server for later download (if using CCMS Web). This directory is defined with the outgen.job.output.dir property. Make sure to clean up your directory as required and to keep all the files that must be returned to the user.
The following procedure describes how to create the acme.dita2xHtmlwrapper
target, which transforms DITA files
into HTML. The final target will look as follows:
<target name="acme.dita2xHtmlwrapper" depends="default_dependencies, flatten, resolve_container_keyref, extract_LowRes_images">
<echostart>acme.dita2xHtmlwrapper</echostart>
<ot_build_add_ditaval_ifpresent/>
<ot_build_clean_ot_temp/>
<ot_build_set_parameter name="transtype" value="xhtml"/>
<dita_startcmd_ot_build/>
<clean_ot_output/>
<!-- Set the property job.keep.temp to preserve the completed temp folder of the task -->
<!--<property name="job.keep.temp" value="yes"/>-->
<echoend>acme.dita2xHtmlwrapper</echoend>
</target>
Since conductor files are like programming files, each target is different and does not follow a specific structure, like output type or processor files do. This section describes how to create a target that transforms DITA files to HTML using the DITA Open Toolkit, but you can create many different types of targets.
To create a transformation target: