Show TOC Entering content frame

Procedure documentation Creating Breakpoints in XSLT Programs Locate the document in its SAP Library structure

Use

You use breakpoints to stop the execution of the XSL transformation at a certain point in the transformation program. The XSLT debugger, in this case, interrupts the transformation immediately before the breakpoint line, that is, before a specific statement is called.

Prerequisites

Breakpoints can only be created for the source code of the XSLT program, not for the XML document.

Note

Note that breakpoints can only be set for executable statements. Statements that cannot be executed include the following:

·           End tags (example: </table>)

·           Top-level statements (example: <xsl:template ... />). Top-level attributes are an exception.

Procedure

Creating Line Breakpoints

In the Transformation Editor, you can set a line breakpoint in change mode as well as in display mode. Proceed as follows:

1.       In Transaction SE80, select the XSLT program that you want to examine and then start the Transformation Editor.

2.       Place the cursor on the line in the source code where you want to set the breakpoint.

3.       Click the This graphic is explained in the accompanying text icon in the application toolbar.

In the XSLT debugger, proceed as follows to set a line breakpoint:

1.       Position the cursor on the line in the XSL source code display where you want to set a breakpoint.

2.       Double-click the selected line or click the icon This graphic is explained in the accompanying text in the application toolbar.

If the selected line only contains a non-executable statement, the breakpoint is automatically set in the next executable line. In this case, the system issues an appropriate message in the debugger message line. If the line already contains a breakpoint, the system deletes it.
The breakpoint line is always marked in yellow and the new line breakpoint is included inbreakpoint listsapurl_link_0006_0002_0005.

Creating Template Breakpoints

In debugging mode and in the transformation editor, you can stop the execution of the XML transformation at a particular template in an XSLT program.

To create a template breakpoint in the debugger:

1.       In debugging mode, click the switch button Breakpoints to get to the breakpoint viewsapurl_link_0006_0003_0005.

2.       Choose This graphic is explained in the accompanying text Breakpoint.

The system displays a dialog box in which you can specify the breakpoint.  

3.       Choose Template and enter the name of the required template in the input field.

This graphic is explained in the accompanying text

If you wish to create a line breakpoint at this point, choose Line and enter the appropriate line number in the input field.

4.       Choose Continue to confirm your entries.

If your entries were correct, the new breakpoint will be added to the breakpoint list. If you have created a template breakpoint, the new breakpoint is not highlighted in color, contrary to the case for line breakpoints.

Creating Program Breakpoints

Using program breakpoints, you can start the debugger already when the XSLT program is started.

To create program breakpoints for the current XSLT program in the Transformation Editor:

...

       1.      Choose the menu function Utilities ® Set/Delete Breakpoint.

       2.      Choose the option Program Breakpoint in the displayed dialog box.

       3.      Choose This graphic is explained in the accompanying text.

See also:

Saving Breakpoints

Deleting Breakpoints

 

 

Leaving content frame