XSLT Editor - XSLT Source Tab

The XSLT Source tab displays the entire stylesheet in the XSLT editor. You can edit the stylesheet in the same way you can edit any other XML document. The usual editing tools are available to you. As you type, Stylus Studio displays a pop-up menu from which you can select the item you want to specify.

To display the XSLT editor, open an XSLT stylesheet, or select File > New > XSLT Stylesheet from the Stylus Studio menu bar. At the bottom of the XSLT editor window, click the XSLT Source tab.


Create Scenario

To create a scenario, click Scenario Properties to the right of the Create Scenario field. You must define a scenario to be able to apply the stylesheet Stylus Studio is creating. After you create the first scenario, the name of the current scenario appears in this field.

Click the down arrow to select a previously defined scenario.


Indent XML Tags inserts tabs throughout the XSLT stylesheet if the stylesheet is well-formed XML. If it is not well formed, clicking this button does nothing.

Change Font changes the font of the text display in Stylus Studio. This change affects only the Stylus Studio display. Beyond personal preference, this is useful for localization. The fonts that are available are the fonts that can display the characters in your XML file.

Add a New Template creates a new template. Specify the match pattern in the Match field.

Delete the Template deletes the selected template.

Preview XSLT Result applies the stylesheet in the context of the current scenario.

Scenario Properties displays the Scenario Properties dialog box. Use this dialog box to define a new scenario, update the settings for a scenario, or view information about a scenario.

Open XML From Scenario opens the XML document specified as the source document in the current scenario. Stylus Studio displays the source document in the XML editor.

Display Preview Window toggles the display of the XSLT Preview window.

Source Tree toggles the display of the tree representation of the XML source document specified in the current scenario. Expand and collapse the tree as needed. Double-click a node to create a template that matches that node. Stylus Studio displays a check mark next to nodes that have matching templates.

Full Source mode displays the entire stylesheet.

Template mode displays the template you select. Click the down arrow in the upper right corner of the XSLT editing pane to display a list of templates.

For More Information

Working with Stylesheets

What Is XSLT?

Overview of the XSLT Mapper

Steps for Mapping XML to XML

Free Stylus Studio XML Training:
W3C Member