|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Performance issue XSL:FO
Hi, I'm generating a PDF on the fly from my servlet. I use transformer to do XSL:FO translation: 1> StringReader xmlStream = new StringReader(xmlWriter.toString()); 2> Source src = new StreamSource(xmlStream); 3> Result res = new SAXResult(fop.getDefaultHandler()); 4> transformer.transform(src, res); However line#4 seems to be taking a lot of time to execute (around 40 seconds). When I run it using the FOP command line (with the same XML content), for instance: >> fop -xml myXml.xml -xsl myXsl.xsl -pdf outPDF.pdf It takes only about 3 seconds. - Can anybody tell me why it takes so much longer from my servlet? - Is there a way to improve the performance when run it from my servlet? By the way, I use FOP version 0.93. Thanks for your help. Thomas
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






