Output Multiple PDF files

Here should go questions about transforming XML with XSLT and FOP.
sebigap
Posts: 1
Joined: Fri Mar 19, 2010 1:03 pm

Output Multiple PDF files

Post by sebigap »

Hi!

XML file looks like this:

<root>
<row filename="row1">
<cell1></cell1>
<cell2></cell2>
</row>
<row filename="row2">
<cell1></cell1>
<cell2></cell2>
</row>
.....
</root>

I'd like to create multiple PDF files for every "row" node. Filename = attribute.pdf

I'm able to create multiple .fo files using <xsl:result-document> and Oxygen but I have no idea how to transform the content of a single XML-File via XSL-FO into multiple PDF-Files.

Thank you sooo much for your help!

Sebastian
adrian
Posts: 2883
Joined: Tue May 17, 2005 4:01 pm

Re: Output Multiple PDF files

Post by adrian »

Hello,

I believe you can only do this in Oxygen in two steps.
You already made the first step 1 xml => multiple fo.
To make this easier you should output all the FOs in a separate folder(output).

The second step is a bit manual. In the Project view of Oxygen link(to external folder) the output folder for the FOs. Then right click on the linked output folder and configure a transformation scenario(you can simply choose the predefined FO PDF scenario). Afterwards you will only have to right click on the output folder and Apply Transformation Scenario.

Let me know if you need further help or information.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
adrian
Posts: 2883
Joined: Tue May 17, 2005 4:01 pm

Re: Output Multiple PDF files

Post by adrian »

Hi,

I spoke too soon. You can actually automate the whole thing and do the same step by step transformations in XProc.
Oxygen provides a few simple XProc samples: in <sampleProject>/xproc

You can read more about XProc here:
http://xproc.org/
http://www.ibm.com/developerworks/library/x-xproc/
http://www.w3.org/TR/xproc/

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply