Debugging XSLT called from Java

If you are debugging Java™ that calls an XSL transformation, you can step from the Java code into the XSL transformation by completing the steps in this page.
  1. Set a breakpoint on the line in the Java that calls the XSL transformation (this is the line that invokes the transform() method on the Transformer object). Alternatively, step to this line.
  2. When the line is reached, issue a step into. This will cause the debugger to stop in the first template rule of the XSL transformation. Both the XSLT and Java stack frames will be displayed in the Debug view. The top XSLT stack frame will be selected and you can inspect the Java source and variables.
  3. If you want, inspect the XSLT source and variables. Or, click on the Java stack frame that called the XSL transformation and, if you want, inspect the Java source and variables. You can then step in the XSL transformation and use typical XSL transformation debugging features (as if you were debugging a standalone XSL transformation). You can also step into and debug Java extension calls as described in Debugging Java extensions called from XSL transformations.
  4. To return to the calling Java method, issue a step return from the first template rule.

An alternative method for debugging an XSL transformation called from Java is to set a breakpoint in the XSLT stylesheet or the XML input document and then run to the breakpoint.

To debug Java that calls XSL, you use the Java and mixed language debug launch configuration or launch shortcut. For information about this type of mixed language debugging, see the Java and mixed language debugging section of the help (to reach this section of the help, click this link and then select the Show in Table of Contents button (Show in Table of Contents button).

Related concepts
XSLT debugger
Related tasks
Debugging Java extensions called from XSL transformations
Debugging Java extensions called from XSL transformations
Using step-by-step debugging when debugging XSLT

Feedback