Table of ContentsXEP Connector for Apache Cocoon is a PDF/PostScript serializer for Cocoon 2.1.x, built upon RenderX XEP XSL FO (XSLFO) formatter. It generates PDF or PostScript documents from XSL Formatting Objects instances. In order to use XEP Connector for Cocoon, you must install and configure the following components:
The connector's source code is in com/renderx/xepx/cocoon/*.java. We use
Ant to build and install the serializer, details are in Before compiling, adjust values of the two properties at the top of the file,
ant make.jar will build To add the serializer to Cocoon, you must place
XEPSerializer.jar into ant install You should have the rights to write to the directory; in multi-user environments, ask the system administrator to do this step for you. After installing the files, restart Cocoon To use XEP Connector for Cocoon, add PDF and PostScript serializers to the global
sitemap, replacing <map:components> .......... <map:serializers default="html"> <map:serializer mime-type="application/pdf" name="fo2pdf" src="com.renderx.xepx.cocoon.Serializer"> <parameter name="com.renderx.xep.CONFIG" type="string" value=" With the serializers above, the following rule will server DocBook files as PDF documents. <map:pipelines>
.........
<map:pipeline>
...........
<map:match pattern="**.pdf">
<map:generate src="{1}.dbx"/>
<map:transform type="xslt"
src="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
...........
</map:pipeline>
</map:pipelines>For general information about serializers, see Cocoon's documentation at http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html To ease adoption, we provide a sitemap example as
|
|||||
RenderX®, © 2005-2008 • Contact Us • Privacy Policy • Terms of Service • Site design by Dmitry Kirsanov Studio |
|||||