Editing XSL files

You can edit XSL files manually, using content assist, and automatically, using various XSL editor wizards. Editing your XSL file enables you to determine what kind of output is created when your XSL file is run.

Once you have created an XSL file, you can edit it in the XSL editor. You can also import XSL files you have created outside this product into the workbench and edit them in the XSL editor. To open an XSL file in the XSL editor, double-click it in the Navigator view, or right-click it and click Open With > XSL Editor.

Editing XSL files manually

You can edit your XSL files manually, changing the code as necessary. You can use content assist (select Ctrl + Space to invoke it) to help you edit the XSL file. When you invoke content assist, a list of available options for your XSL file will appear. Double-click the option you want to insert in the XSL file.

Editing your XSL files using XSL editor wizards

You can use several XSL editor wizards to edit your XSL file. All the XSL editor wizards can be accessed from the XSL drawer in the Snippets view :

When you have finished editing your file, you can validate it. For more information on using these wizards and validating your file, refer to the related tasks.

Setting breakpoints in your XSL file

To set a breakpoint in an XSL file, place the cursor in the line where you want the breakpoint to be, and click Toggle Breakpoints from the pop-up menu.  To remove it, select it and click Toggle Breakpoints again from the pop-up menu.

Related tasks
Adding <xsl:apply-templates> elements to XSL files
Adding <xsl:call-template> elements to XSL files
Adding HTML headers to XSL files
Adding <xsl:output> elements to XSL files
Adding HTML tables to XSL files
Adding HTML forms to XSL files
Adding <xsl:template> elements to XSL files
Adding <xsl:choose> elements to XSL files
Validating XSL files

Feedback