Debugging PDF Transformations
To debug a DITA PDF transformation scenario using the XSLT Debugger follow these steps:
- Open the
Preferences dialog box , go to , click Add, and select the file located at
DITA_OT_DIR\plugins\org.dita.pdf2\cfg\catalog.xml
. - Open the map in the DITA Maps Manager and create a DITA Map PDF transformation scenario.
- Edit the scenario, go to the Parameters tab and change the value of the clean.temp parameter to no.
- Run the transformation scenario.
- Open the stage1.xml file located in the temporary directory and format and indent it.
- Create a transformation scenario for this XML file by associating the
topic2fo_shell_fop.xsl
stylesheet located atDITA_OT_DIR\plugins\org.dita.pdf2\xsl\fo\topic2fo_shell_fop.xsl
. If you are specifically using the RenderX XEP or Antenna House FO processors to build the PDF output, you should use the XSL stylesheetstopic2fo_shell_xep.xsl
ortopic2fo_shell_axf.xsl
located in the same folder. - In the transformation scenario edit the XSLT Processor combo box choose the Saxon EE XSLT processor (the same processor used when the DITA OT transformation is executed).
- In the transformation scenario edit the Parameters list and set the parameter
locale with the value en_GB and the parameter
customizationDir.url to point either to your customization directory
or to the default DITA OT customization directory. Its value should have a URL syntax
like
this:
file://c:/path/to/DITA_OT_DIR/plugins/org.dita.pdf2/cfg
. - Debug the transformation scenario.