Working with the XSLT/XQuery Debugger

The following topics are present about how to follow XSLT/XQuery processing and detect errors in your stylesheets or XQuery documents:

 Steps in a typical debug process

To debug a stylesheet or XQuery document follow the procedure:

 
  1. Open the source XML document and the XSLT/XQuery document.

  2. If you are in the Editor perspective switch to the desired Debugger perspective (XSLT or XQuery) with one of the actions (here explained for XSLT):

    • Menu Perspective->Debugger or the toolbar button Debugger

    • Menu Document->XML Document->Debug scenario or the toolbar button Debug scenario

  3. Select the source XML document in the XML source selector of the Control toolbar In case of XQuery debugging if your XQuery document has no implicit source set the source selector value to NONE.

  4. Select the XSL/XQuery document in the XSL/XQuery selector of the Control toolbar.

  5. Set XSLT/XQuery parameters from the button available on the Control toolbar.

  6. Set one or more breakpoints.

  7. Step through the stylesheet using the buttons available on the Control toolbar: Step into, Step over, Step out, Run, Run to cursor, Run to end, Pause, Stop

  8. Examine the information in the Information Views to find the bug in the transformation process.