Generate PDF from DocBook using Calabash and XProc in Oxygen with Antenna House

Dear List, I need Help with an XProc Pipeline that should generate PDF From DocBook using AH Formatter in a Microsoft Windows 10 Environment. I am using a fresh Installation of Oxygen 24.1. What i have done so far / current status: - There is a XProc Pipeline which gets the DocBook File as Input, applies the DocBook 1 Stylesheets to generate FO, and applies xsl:formatter to generate PDF from XSL-FO. This Step calls the Apache FOP Processor shipped with Oxygen. It does generate a PDF, but images are not rendered (empty frames of the correct size within the PDF). - The primary result of the Pipeline is the XSL FO generated by the DocBook Stylesheets, so I am able to check the url für external-files in FO. They point to the images in my file system. I have tried many different ways to change this url, including relative paths instead of absolute paths. Nothing helped, the images are still missing. - Because of the missing images and other issues with Apache FOP (landscape Tables etc.) I have to switch to the Antenna House Formatter (v 7.2). - Oxygen Editor allows Integration of Antenna House. After doing so I can apply a Transformation Scenario to the XSL-FO generated by my XProc Pipeline. Works great, the Result is exactly what I need. PDF includes the Images with exactly the same input, on which Apache gave me empty frames. The only thing is, that i have to call this second Transformation scenario manually. It is not integrated in the Pipeline. - So the task seems to be simple: configure the xsl:formatter step in my XProc pipeline, so that Antenna House will be used instead of Apache FOP. But I did not find a way to achieve this. I do understand that - i have to configure xmlcalabah so that com.xmlcalabash.fo-processor system property gets the value com.xmlcalabash.util.FoAH. The best way would be a xmlcalabash configuration file, but how can I point from Oxygen to that config file? --- I was able to set the java System Property within the Oxygen Startup, and i can see the correct value in the Oxygen Help/About Info Box (that is, the system property com.xmlcalabash.fo-processor has the Value com.xmlcalabash.util.FoA), but the xsl-formatter Step doesn't care. It will still use Apache FOP. - I have to add the jar for the xmlcalabash1-print <https://github.com/ndw/xmlcalabash1-print> module to the claasspath. Maybe OXYGEN-INSTALL-DIR/xproc/engine? - I have to point to the directory where xmlcalabash can find the Antenna House jar files and the Licence File. How would I do that within Oxygen? Any help is greatly appreciated. Thanks in advance, Frank Steimke

On 06/04/2023 08:20, Frank Steimke wrote: ...
I do understand that
It will still use Apache FOP.| * I have to add the jar for the xmlcalabash1-print <https://github.com/ndw/xmlcalabash1-print> module to the claasspath. Maybe OXYGEN-INSTALL-DIR/xproc/engine?
The xmlcalabash 'p:xsl-formatter' page [1] indicates that you need that jar to use the step with any of the three supported XSL formatters. Are you sure that it's not already on your classpath?
* I have to point to the directory where xmlcalabash can find the Antenna House jar files and the Licence File. How would I do that within Oxygen?
You can set the AHF72_32_LIC_PATH or AHF72_64_LIC_PATH, as appropriate. See https://www.antenna.co.jp/AHF/help/en/ahf-env.html and think '72' where you see '73'. Regards, Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@antenna.co.jp [1] https://xmlcalabash.com/docs/reference/p-xsl-formatter.html
participants (2)
-
Frank Steimke
-
Tony Graham