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

Re: Using Saxon 2.0 with FOP, XEP, Antenna House

Subject: Re: Using Saxon 2.0 with FOP, XEP, Antenna House
From: "Tony Graham" <tgraham@xxxxxxxxxx>
Date: Sat, 19 Oct 2013 15:44:42 +0100 (IST)
Re:  Using Saxon 2.0 with FOP
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

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.