On 13 Apr 2011, at 13:37, JOSE L MARTINEZ-AVIAL wrote: Hi Jose
> We've been using FOP for a while to generate PDFs. Basicallly we generated a > PDF for every one of our customers, so we have developed a procedure to > generate a XML file for each customer, and then we generate the PDF invoking > FOP with the XML and a templated. That's a long process, since we need to > create the XML and invoke FOP for each customer. > Is there any way a template can generated multiple PDF from a single file? As far as I know, you would definitely have to resort to a two-step approach. I see two possible routes: a) generate separate FOs for each customer: in XSLT 1.0 you will need an extension function for that, while with XSLT 2.0 you can use xsl:result-document to produce multiple result trees with a single stylesheet. Each of the FOs should then be processed with FOP separately. b) generate one FOP Intermediate Format(*) file, and process that output with a second stylesheet to separate the customer page-sets into individual IFs. Those can then each be fed to FOP, to arrive at roughly the same result as a). (*) see: http://xmlgraphics.apache.org/fop/1.0/intermediate.html Hope this helps! Regards Andreas --- --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org