Komodo User Guide

Debugging XSLT

New to XSLT?
Check out the XSLT Tutorial

You do not need to manually configure Komodo for XSLT debugging. Komodo is hard-coded to use the Xalan-C engine, an XSL processor for transforming XML documents into HTML, text, or other XML document types.

When you debug XSLT files with Komodo, you can simultaneously view the XSLT file, the input XML file, and the results of the transformation. If you assign a XML file to the XSLT program (by using the Choose File button, or by specifying the file name and path in the Input File field), Komodo will open a new horizontal Editor Pane beneath the XSLT Editor Pane, and display the XML file in it. You can set breakpoints in the XSLT file, the XML file, or both. During debugging, a yellow arrow on the breakpoint margin shows the current line of execution in both the XSLT and the XML file.

Note - To debug an XML file on a remote server,enter the full URL to the XML file in the Input File field (for example, http://www.yourdomain.com/yourfile.xml).

To debug an XSLT file:

  1. Open the XSLT file.
  2. At the bottom of the Editor Pane, below the Editor Pane, click Choose File and browse to the desired XML input file. Alternatively, enter the full path and file name in the Input File field. Note that you can have more than one XML file open for a given XSL file; use the Input File drop down list to toggle between XML files.
  3. Set breakpoints in the XML and XSLT files.
  4. Start the debugger. Press F5 or the Step In button.
  5. In the Debugging Options dialog, specify the XML document to transform. This field defaults to the first XML input file specified for the XSLT program.

Note - this release of Komodo does not support remote XSLT debugging (i.e., debugging an XSLT program that resides on a remote machine) or console XSLT debugging (i.e., debugging XSLT programs in a console window).

Top