Re: [xsl] Using Saxon 2.0 with FOP, XEP, Antenna House

Subject: Re: [xsl] Using Saxon 2.0 with FOP, XEP, Antenna House
From: "Tony Graham" <tgraham@xxxxxxxxxx>
Date: Sat, 19 Oct 2013 15:44:42 +0100 (IST)
On Fri, October 18, 2013 8:59 pm, Michael Kay wrote:
> On 18 Oct 2013, at 10:34, Jesper Tverskov wrote:
...
>> Also I have tested the loading of a directory and output to directory
>> feature at the command line in Saxon. It works well, but I don't
>> think, I can get a FO-processor to take over such an output directory
>> as input to the FO transformation from within the bat file.
>>
> Other possibilities are to organize the processing using XProc, xmlsh, or
> ant; or to write custom control logic in Java; or to write it in XSLT,
> with a stylesheet that uses the collection() function to process many
> input files.

Or you could turn things inside out and run the formatter as an extension
function inside the XSLT transformation and call it once for each of the
many files, hopefully without too much of a start-up cost each time.

We have an extension function [1] for running an FO processor within the
XSLT transformation for making decisions based on formatted sizes before
running the formatter 'for real' on the final result of the
transformation, and it wouldn't be very different to write the PDF output
to a file rather than returning an area tree.

Regards,


Tony Graham                                   tgraham@xxxxxxxxxx
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming
       Chair, Print and Page Layout Community Group @ W3C

[1] http://www.w3.org/community/ppl/wiki/FOPRunXSLTExt

Current Thread