Page 1 of 1

using xsl-fo stylesheet

Posted: Fri Jun 04, 2010 9:14 pm
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.

Re: using xsl-fo stylesheet

Posted: Mon Jun 07, 2010 10:13 am
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

Re: using xsl-fo stylesheet

Posted: Mon Jun 07, 2010 10:19 pm
by bjlockie
Thanks.

I was hoping there was an easier way to specify a stylesheet.

Re: using xsl-fo stylesheet

Posted: Tue Jun 08, 2010 8:17 am
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