XSLT and XQuery Preview Window

 

XQuery support is available only in Stylus Studio XML Professional Edition.

Stylus Studio displays the result of applying a XSLT stylesheet or XQuery in the Preview window. If you apply a stylesheet or XQuery and the Preview window is not visible, select View > Preview from the Stylus Studio menu bar.

The Preview window displays a tab at the bottom for each scenario in which you have applied a stylesheet or XQuery. Click the tab to view the most recent result for that scenario.

To determine the XSLT or XQuery instructions that generated a particular part of the output, click the output for which you want this information. Stylus Studio displays the Backmap Stack window. See Backmap Stack.

Buttons

Refresh Result applies the stylesheet or XQuery in the context of the scenario whose name appears in the scenario name field.

Preview in Tree displays a tree representation of the XML results of a stylesheet or XQuery. A stylesheet or XQuery must generate XML for you to be able to view this option. You can click in this tree and then backmap to the part of the stylesheet XQuery that generated the node you clicked.

Preview in Browser displays the result as it would appear in a a Web browser. For XSLT, if you click in the result document, Stylus Studio displays the Backmap Stack window, which lists the XSLT instructions that generated the text or image you clicked. Stylus Studio also flags the line in the stylesheet that contains the first instruction in the Backmap Stack window.

Show Profiling Data displays the Stylus Studio Profiler report. The Profiler report includes overview, call tree, node summary, and event log statistics. You can backmap from the profiling report to the line of XSLT or XQuery associated with the statistic. Settings for this report are displayed on the Profiling Options page of the Scenario Properties dialog box for XSLT and XQuery.

Preview Text displays the raw text of the result. This is typically HTML, but it can also be XML or text. For XSLT, if you click in the result document, Stylus Studio displays the Backmap Stack window, which lists the XSLT instructions that generated the text you clicked. Stylus Studio also flags the line in the stylesheet that contains the first instruction in the Backmap Stack window. You can select and copy text in the Preview Text view.

Export Preview allows you to save the result in a file. It displays the Save As dialog box.

For More Information

Working with a Sample Result Document

Backmap Stack

 
Free Stylus Studio XML Training: