Page 1 of 1

Using the FOP fox:border-radius extension

Posted: Mon Oct 06, 2014 2:57 pm
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

Re: Using the FOP fox:border-radius extension

Posted: Mon Oct 06, 2014 7:20 pm
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

Re: Using the FOP fox:border-radius extension

Posted: Tue Oct 07, 2014 11:42 am
by Rodrik
Thank you for your reply, Adrian.

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

Rodrik