Page 1 of 1

Problem with axf extension

Posted: Tue Jan 09, 2018 11:04 am
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 ?

Re: Problem with axf extension

Posted: Tue Jan 09, 2018 11:46 am
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

Re: Problem with axf extension

Posted: Tue Jan 09, 2018 1:04 pm
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

Re: Problem with axf extension

Posted: Tue Jan 09, 2018 1:23 pm
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

Re: Problem with axf extension

Posted: Tue Jan 09, 2018 5:56 pm
by david-gopois69
Hi Radu,
Thanks for your response.
I have found a solution with fop1.extension
Regards
David