Page 1 of 1

Output Multiple PDF files

Posted: Fri Mar 19, 2010 3:21 pm
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

Re: Output Multiple PDF files

Posted: Mon Mar 22, 2010 11:54 am
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

Re: Output Multiple PDF files

Posted: Mon Mar 22, 2010 12:13 pm
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