The following topics are present about how to follow XSLT/XQuery processing and detect errors in your stylesheets or XQuery documents:
To debug a stylesheet or XQuery document follow the procedure:
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
→ or the toolbar buttonMenu
→ → or the toolbar button . This action initializes the Debugger perspective with the parameters of the transformation scenario. Any modification applied to the scenario parameters (the transformer engine, the XSLT parameters, the transformer extensions, etc) will be saved back in the scenario when exiting from the Debugger perspective.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.
Select the XSL/XQuery document in the XSL/XQuery selector of the Control toolbar.
Set XSLT/XQuery parameters from the button available on the Control toolbar.
Step through the stylesheet using the buttons available on the Control toolbar:
Examine the information in the Information Views to find the bug in the transformation process.