[oXygen-user] Generate PDF from DocBook using Calabash and XProc in Oxygen with Antenna House

Frank Steimke fsteimke.hb at gmail.com
Thu Apr 6 02:20:10 CDT 2023


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20230406/f9da9fa7/attachment.htm>


More information about the oXygen-user mailing list