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

XML Operations

Using XML Pipeline it's easy to visually specify a series of XML operations to apply on your XML data, including parsing, validating, converting and transforming, according to the needs of your business application.

XML Development Blogs

Blogging is the hottest fad on the Internet and Stylus Studio has jumped on the bandwagon. Bookmark these XML Blogs to keep up with all the latest XML buzz in the internet blogosphere. Includes RSS and Atom Feeds!

EDI to XML Mapping in Stylus Studio

Learn how to use Stylus Studio's EDI to XML mapping tools in Convert-to-XML, including loading an EDI file, inspecting application control codes, customizing XML output and other advanced EDI to XML mapping features.

Building Workflow Applications with XML

Learn how to design custom XML workflow applications - from modeling your data and information processes, to capturing input from users in XML, and finally, generating useful queries and reports from the XML data -- using XSLT & XQuery technologies.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member