Table of ContentsXEP task uses RenderX XEP XSL Processor to format XML documents to a printable format - PDF or PostScript. It requires XEP 3.7 or later be installed and properly activated. The task can operate either on a single file or on a file set. Input documents are either XSL FO (XSLFO) instances, or generic XML files with associated XSLT stylesheets. NoteAvailability of output formats depends on XEP edition. In some editions, PostScript generator is not available. The user must configure XEPTask to use it with Ant:
XEP Ant Task can be applied:
These modes are mutually exclusive: if If an XSLT stylesheet is set using The following nested elements can appear inside of XEP task entry.
NoteIn all examples below, we assume that a classpath entry
with id="xep-classpath" is available inside of
Basic case – render an XSL FO (XSLFO) document to produce PDF: <xep in="mydocument.fo" out="mydocument.pdf" format="PDF"> <classpath refid="xep-classpath"/> <sysproperty key="com.renderx.xep.CONFIG" value="C:/XEP/xep.xml"/> </xep> Transform and render a single XML document to PostScript, passing parameters to stylesheet: <xep in="mydocument.xml" out="mydocument.ps"
style="stylesheets/mystyle.xsl" format="PostScript">
<classpath refid="xep-classpath"/>
<sysproperty key="com.renderx.xep.CONFIG" value="C:/XEP/xep.xml"/>
<param name="date" expression="13-01-2003"/>
<param name="time" expression="15:33"/>
</xep>
Render a set of XSL FO (XSLFO) documents to PDF; put formatted documents into the same directories as the source files: <xep format="PDF"> <classpath refid="xep-classpath"/> <sysproperty key="com.renderx.xep.CONFIG" value="C:/XEP/xep.xml"/> <fileset dir="./mydocs/src"> <include name="*.fo"/> </fileset> </xep> Transform and render a set of XSL FO (XSLFO) documents to PostScript; pass one parameter to the stylesheet; put formatted documents into a separate directory: <xep destDir="postscript" style="docbook.xsl" format="PostScript"> <classpath refid="xep-classpath"/> <sysproperty key="com.renderx.xep.CONFIG" value="C:/XEP/xep.xml"/> <param name="title-color" expression="'red'"/> <fileset dir="docbook"> <include name="*.dbx"/> </fileset> </xep> |
|||||||||||||||||||||||||||||||||
RenderX®, © 2005-2008 • Contact Us • Privacy Policy • Terms of Service • Site design by Dmitry Kirsanov Studio |
|||||||||||||||||||||||||||||||||