Hi,
I am trying to have use XSL:FOP through servlet and I was hoping to use
XML and XSLT to dynamically generate the XSL:FOP format file to be passed to
Driver for rendering as PDF.
The example which comes with distribution uses xmlFile and xslFile,
however I wanted to generate the XML
Here's how I do it:
ByteArrayOutputStream pdfOutput = new ByteArrayOutputStream();
try {
Driver driver = new Driver(new InputSource (new
StringReader(transformed)),
pdfOutput);
driver.setRenderer(Driver.RENDER_PDF);