XML-XSLT-FO-PDF

Here should go questions about transforming XML with XSLT and FOP.
nena
Posts: 1
Joined: Sat Jun 16, 2012 1:30 pm

XML-XSLT-FO-PDF

Post by nena »

Hello,

Apologies if this topic has been covered already.

I created an xslt which transforms XML into FO xml via XSLT. Using Oxygen, I set up a transformation scenario which creates a .pdf file from this FO. What I am now trying to do is set up a batch which I can run from command line. This batch should :
1. Pick up all XML files it finds in a given folder.
2. Using my XSLT file, it should transform them into FOs
3. Using something (and this is what I don't know how to do), it should transform all of those FOs into PDFs.

I am very new to all this, so any ideas/pointers are highly appreciated.

Thank you
Best wishes,
Nena
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XML-XSLT-FO-PDF

Post by sorin_ristache »

Hello,

I think you should create an ANT script file taht runs your batch of transformations. You can use the xslt task for the XSLT transformation. Also you should install Apache FOP as an ANT task in the ANT installation where you run your batch transformation.

You can call the ANT script from Oxygen as an external tool.


Regards,
Sorin
Post Reply