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 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 at DITA-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 stylesheets topic2fo_shell_xep.xsl or topic2fo_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
localewith the valueen_GBand the parametercustomizationDir.urlto 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.