Using the Transformation Scenario - Which XSL file for PDF

Here should go questions about transforming XML with XSLT and FOP.
leubanks
Posts: 1
Joined: Tue Aug 24, 2010 3:33 pm

Using the Transformation Scenario - Which XSL file for PDF

Post by leubanks »

I can transform the file to a PDF, but I cannot figure out which XSL file is being used to create that PDF. I want to modify the XSL to format the document with company font, colors, etc.

Any ideas on which XSL file is being used for this and where it is located? Is there another way to modify the XSL and save it as a different version and still apply it to my Transformation Scenario?


Thanks!
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: Using the Transformation Scenario - Which XSL file for PDF

Post by Radu »

Dear Lee,

To make things more clear, you are wanting to customize a DITA to PDF transformation.
Oxygen uses the DITA Open Toolkit to publish DITA Maps to various output formats.

My suggestion to you is to start reading this very good PDF from Scriptorium explaining how customizations work:
http://www.scriptorium.com/whitepapers/ ... tweaks.pdf

For example you can locate part of the parameters which can be customized in the DITA OT PDF transformation in files like this one (specific for each locale):
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\demo\fo\cfg\common\vars\en_US.xml

In order to make your customizations without modifying the DITA Open Toolkit file there is a directory OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/Customization with a readme file explaining how customizations can be added to it.

Another suggestion for you is to join the DITA Users list which is a place where a lot of DITA professionals can share with you customization techniques:
http://tech.groups.yahoo.com/group/dita-users/

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
alendoxy
Posts: 5
Joined: Fri May 06, 2011 12:08 pm

Re: Using the Transformation Scenario - Which XSL file for PDF

Post by alendoxy »

Hi Radu, I have the same problem (I think :) ) I would like to customize my docbook 5 document transformation. These suggestions are also for me?
thank a lot
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: Using the Transformation Scenario - Which XSL file for PDF

Post by Radu »

Hi,

In Oxygen the Docbook XSLT stylesheets for PDF transformation are found here:
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/fo

There is a Chapter in the Docbook User Guide dealing with customizations:
http://www.sagehill.net/docbookxsl/CustomizingPart.html

Also if you edit a Docbook to PDF transformation scenario in Oxygen and you click the Parameters tab you can change a lot of default parameter values.

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