using xsl-fo stylesheet

Here should go questions about transforming XML with XSLT and FOP.
bjlockie
Posts: 7
Joined: Fri Jun 04, 2010 8:41 pm

using xsl-fo stylesheet

Post by bjlockie »

I created an xsl-fo stylesheet to convert xml to pdf.
How do I configure a transformation to use it?

I tried changing
args.xsl
to my
xsl-fo.xslt
in the
DITA (PDF - Idiom FO Plugin)
but that didn't work.
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: using xsl-fo stylesheet

Post by Radu »

Hi,

Although the args.xsl parameter is documented by the DITA Open Toolkit documentation as a common parameter for all formats in reality it is only used by the XHTML-types and Legacy PDF transformations. So it is not used in any way for the IDIOM PDF transformation. I will contact the DITA developers list and make this issue known to them.
In the meantime, the build file used for the DITA IDIOM PDF transformation can be found in this location:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/build.xml
So you can modify it and specify your own XSL for the transformation.
The default XSL used for IDIOM PDF is this one:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/topic2fo_shell_1.0.xsl

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
bjlockie
Posts: 7
Joined: Fri Jun 04, 2010 8:41 pm

Re: using xsl-fo stylesheet

Post by bjlockie »

Thanks.

I was hoping there was an easier way to specify a stylesheet.
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: using xsl-fo stylesheet

Post by Radu »

Hi,

I added a bug for this on the DITA Open Toolkit issues list:
https://sourceforge.net/tracker/?func=d ... _id=132728

Their initial idea was to add a separate parameter for the IDIOM PDF customization in a future DITA Open Toolkit version.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply