[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Creating multiple PDF files from a single XSL-FO

Subject: RE: Creating multiple PDF files from a single XSL-FO script
From: "Miller, Mark" <Mark.Miller@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Aug 2009 17:31:17 -0400
RE:  Creating multiple PDF files from a single XSL-FO
Mark,

> I gave up on trying to create multiple PDF files from my XSL
> script and split my index into 26 files. I tried to run a
> batch file with entries like:
>
>  fop -d -c fopConfiguration.xml -xml work\A.xml -xsl
> SLT\22Headingpdf.xsl  -pdf work\a.pdf  fop -d -c
> fopConfiguration.xml -xml work\B.xml -xsl
> SLT\22Headingpdf.xsl  -pdf work\b.pdf  fop -d -c
> fopConfiguration.xml -xml work\C.xml -xsl
> SLT\22Headingpdf.xsl  -pdf work\c.pdf  fop -d -c
> fopConfiguration.xml -xml work\D.xml -xsl
> SLT\22Headingpdf.xsl  -pdf work\d.pdf ...
>  fop -d -c fopConfiguration.xml -xml work\Z.xml -xsl
> SLT\22Headingpdf.xsl  -pdf work\z.pdf
>
> That is, running my XSLT script on the individual index files.
> The first entry works, and creates my first PDF file (a.pdf),
> but FOP  exits the batch file after running the first entry -
> the later lines are never run.
>
> So, two questions:
> (1) Can I prevent FOP from exiting the batch file?
> (2) Or, should I be asking this question on another list, and
> if so, which one?

I am doing exactly what you are trying to do.  The key is to start each
command in your batch file (assuming DOS batch file) with the call
command.  This prevents the external application from terminating your
batch file.  Here is an example of a line from my batch file:

call C:\temp\fop-0.95\fop.bat -xml
c:\temp\_plmReportingData\tpm\xml\tpmDump.xml -xsl
c:\temp\_plmReportingData\tpm\fo\tpmSIPTBlueReleased.xsl -pdf
c:\temp\_plmReportingData\tpm\pdf\tpmSIPT_BlueReleased.pdf

Hope this helps,


Mark J. Miller

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.