On 11/30/2011 04:03 AM, Theresa Jayne Forster wrote: > But then the big problem is when I transform the XSL / XML into PDF > it is taking forever to generate > > Creating PDF > > Creation of PDF took 106384 Miliseconds > > transformer.transform(src, res); > > Why is this taking so long and is there any way to get it working > faster?
Can you separate the timing into the XSLT processing and the FO processing? I realize your application may be streaming the events and not be so cleanly separated, but for testing purposes, those numbers would be very helpful. There are some pathological XSLT patterns that may be causing the lag, and which could be cleaned up; it may even be the case that substituting a different XSLT processor could give a performance boost. OTOH, if the problem is in the actual FOP code, there may be some patterns in your FO that could be cleaned up, or optimization opportunities within FOP. ~Chris -- Chris Maden, text nerd <URL: http://crism.maden.org/ > “Be wary of great leaders. Hope that there are many, many small leaders.” — Pete Seeger --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
