Using the FOP fox:border-radius extension

Post here questions and problems related to editing and publishing DITA content.
Rodrik
Posts: 30
Joined: Mon Jan 27, 2014 11:19 am

Using the FOP fox:border-radius extension

Post by Rodrik »

Is is possible with the version of FOP bundled with Oxygen 16 to use the fox:border-radius extension? This was something I raised on the Yahoo DITA list a while back but didn't get to a resolution.

I tried putting the following declaration into both my pr-domain-attr.xsl ovverride file and the pr-domain.xsl override file as follows:

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
And I added the following to the codeblock attribute set:

Code: Select all

<xsl:attribute name="fox:border-radius">20pt</xsl:attribute>
The transformation doesn't fail but the radius setting doesn't take effect even although the changes are reflected in the resulting topic.fo file:

Code: Select all

<fo:block xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" background-color="rgb(223,223,223)" end-indent="6pt + from-parent(end-indent)" font-size="0.9em" fox:border-radius="20pt"...>Hello world</fo:block>
Regards

Rodrik
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Using the FOP fox:border-radius extension

Post by adrian »

Hello Rodrik,

Note that rounded corners (fox:border-radius) is a FOP extension that is currently only available in the development (trunk) version of Apache FOP. Oxygen uses the stable version of Apache FOP, 1.1, which does not support this extension.
So, in short, no, it's not possible to use fox:border-radius with the version of FOP bundled with Oxygen v16.0.
If this extension is important for you, you could use the development (trunk) version of Apache FOP in Oxygen as an external FO processor.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Rodrik
Posts: 30
Joined: Mon Jan 27, 2014 11:19 am

Re: Using the FOP fox:border-radius extension

Post by Rodrik »

Thank you for your reply, Adrian.

It's very much a nice-to-have, so I can wait.

Rodrik
Post Reply