Hi all,
I'm using XEP instead of FOP 0.25 for DITA PDF conversions, because FOP
doesn't support some crucial things like floats and keeps
(keep-with-next, keep-together, etc.). If anyone's interested, here's
how I did it:
1. Download XEP and the XEPTask.jar from RenderX and install according
to their instructions.
2. Create a new xml file in the "dost" subfolder of the XXE DITA addon
folder. You can name it whatever you want. Its contents should look like
this (variable values in square brackets):
<?xml version="1.0" encoding="UTF-8" ?>
<project name="[your_project_name]" basedir=".">
<import file="conductor.xml"/>
<property name="xep.dir" value="[path_to_your_xep_install_folder]"/>
<property name="xep.lib.dir" value="${xep.dir}${file.separator}lib"/>
<taskdef name="xep" classname="com.renderx.xepx.ant.XEPTask"
classpath="${xep.lib.dir}${file.separator}XEPTask.jar"/>
<path id="xep-classpath">
<fileset dir="${xep.lib.dir}">
<include name="xep*.jar"/>
<include name="xt.jar"/>
<include name="saxon.jar"/>
</fileset>
<pathelement path="${xep.lib.dir}${file.separator}XEPTask.jar"/>
</path>
<target name="[your_project_name].dita2pdf" depends="dita-preprocess,
[your_project_name].map2pdf, [your_project_name].topic2pdf"></target>
<target name="[your_project_name].topic2pdf" if="noMap"
depends="dita-preprocess">
<antcall target="dita.topic.fo">
<param name="input"
value="${dita.temp.dir}${file.separator}${user.input.file}"></param>
<param name="output"
value="${dita.map.output.dir}${file.separator}${dita.topic.filename.root
}.fo"></param>
</antcall>
<xep
in="${dita.map.output.dir}${file.separator}${dita.topic.filename.root}.f
o"
out="${dita.map.output.dir}${file.separator}${dita.topic.filename.root}.
pdf"
format="PDF">
<classpath refid="xep-classpath"/>
<sysproperty key="com.renderx.xep.CONFIG"
value="${xep.dir}${file.separator}xep.xml"/>
</xep>
</target>
<target name="[your_project_name].map2pdf" unless="noMap"
depends="dita-preprocess">
<antcall target="dita.map.fo">
<param name="input"
value="${dita.temp.dir}${file.separator}${user.input.file}"></param>
<param name="output"
value="${dita.map.output.dir}${file.separator}${dita.map.filename.root}.
fo"></param>
</antcall>
<xep
in="${dita.map.output.dir}${file.separator}${dita.map.filename.root}.fo"
out="${dita.map.output.dir}${file.separator}${dita.map.filename.root}.pd
f"
format="PDF">
<classpath refid="xep-classpath"/>
<sysproperty key="com.renderx.xep.CONFIG"
value="${xep.dir}${file.separator}xep.xml"/>
</xep>
</target>
</project>
3. Edit the dita.toPDF command in dost.incl (in the XXE DITA addon
folder) so that the "-buildfile" argument points to your new xml file
(instead of conductor.xml) and "use-init" is followed by your custom
dita2pdf target name(ie. [your_project_name].dita2pdf).
Hope this is helpful.
Mark Fletcher
Workday(tm)
www.workday.com <http://www.workday.com/>
925-951-9053 (office)
mark.fletcher at workday.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060801/a1a7b5f2/attachment.htm