Problem with axf extension

Here should go questions about transforming XML with XSLT and FOP.
david-gopois69
Posts: 18
Joined: Fri Dec 15, 2017 6:13 pm

Problem with axf extension

Post by david-gopois69 »

Hello,
I have developped an XSL stylesheet to convert XML document in PDF with FOP. I want use axf extension to create PDF bookmarks. I add axf attributes (axf:outline-level, axf:outline-expand, axf:outline-title) to an "fo:block" tag but when I try to publish the XML document, I have an error.
The FOP error is:
ERROR - net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: Invalid property encountered on "fo:block": axf:outline-level (See position 994:-1)

In my stylesheet, I have added the namespace xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" and the XSL parameter <xsl:param name="axf.extensions" select="1"/>.

Can you help me ?
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem with axf extension

Post by Radu »

Hi,

AXF extensions are interpreted only by the commercial Antenna House PDF processor.
But you seem to be trying to create the PDF using the Apache FOP processor bundled with Oxygen, processor which does not know these Antenna-House specific extensions.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
david-gopois69
Posts: 18
Joined: Fri Dec 15, 2017 6:13 pm

Re: Problem with axf extension

Post by david-gopois69 »

Hi,
Thanks for your response.
But if I use the framewook Docbook and FOP conversion, the PDF bookmark are generated on the PDF output.
Have you an idea how the PDF bookmarks are generated for the Docbook template?
Regards
David
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Problem with axf extension

Post by Radu »

Hi David,

When publishing Docbook to PDF there are two parameters which can be set in the "Parameters" list:
"fop1.extensions" - when set to "1" will generate a bookmark tree which can be processed using Apache FOP.
"axf.extensions" - when set to "1" will generate a bookmark tree which can be processed only using Antenna House.

You can search in the Docbook XSLTs for places where these parameters are used.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
david-gopois69
Posts: 18
Joined: Fri Dec 15, 2017 6:13 pm

Re: Problem with axf extension

Post by david-gopois69 »

Hi Radu,
Thanks for your response.
I have found a solution with fop1.extension
Regards
David
Post Reply