Oh, by the way, with FOP, you can make these commands simpler. FOP assumes
that the first argument is an FO file and the second is a PDF output
target file. So, the following commands do the same thing:
fop -fo somefile.fo -pdf somefile.pdf
fop somefile.fo somefile.pdf
In a batch file, use:
call fop somefile.fo somefile.pdf
In other words, you only need the -fo, -pdf, and other switches if you do
something else.
While the Windows batch utility has nowhere near the capability of a real
scripting languge, you can get a lot done with it. I use elaborate batch
files to do a bunch of error checking, call other scripts to prepare
values for use in parameters, call Saxon to create the FO files, and then
call FOP to create PDF files.
Jay Bryant
Bryant Communication Services