XEP Servlet Connector is a web application built around RenderX XEP XSL FO (XSLFO) formatter. It transforms XML documents into PDF or PostScript.
Before installing XEP Servlet Connector, the following components must be installed:
XEP 3.7 or higher;
Sun JDK 1.2.2 or higher;
Ant 1.5 or higher;
Servlet container compatible with Servlet 2.2 API (http://java.sun.com/products/servlet/download.html); we tested the connector with Jakarta Tomcat 5.x.
com/
the source code;
web/
configuration files and sample HTML form;
build.xml
Ant build file for the servlet.
Before compiling, define the following Ant properties:
xep.dir
XEP installation path;
servlet.interface.jar
path to the jar file providing the servlet interface;
build.dir (optional)
folder to put compiled classes and war.
Run Ant to build the servlet archive.
XEP Servlet Container supports the following parameters:
XEPServlet? (xml=<source>&xsl=<stylesheet>|fo=<source>) [&format=(pdf|PostScript)] {&(|xsl_|pdf_|ps_)<name>=<value>}
xml, xsl
Source XML and transformartion stylesheet.
fo
XSL FO (XSLFO) document.
format
The output format — PDF and PostScript are supported, the default format is PDF.
<name>=<value>
Options for XEP (no prefix), PDF generator (prefixed with pdf_), PostScript generator (prefixed with ps_) and XSL transformation parameters (prefixed with xsl_). Valid options are described in RenderX XEP documentation.