Using FOP in Servlet - *dynamically* generating XSL:FO using XML and XSLT

2001-09-04 Thread Sharan, Dharmendra
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

Re: Using FOP in Servlet - *dynamically* generating XSL:FO using XML and XSLT

2001-09-04 Thread Jim Hopp
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);