Saving the Stylesheet and Previewing the Result

This topic is part of a sequence that starts with Opening the XSLT Mapper.

To save the stylesheet and preview the result:
1. Click Save . Stylus Studio displays the Save As dialog box.
2. In the URL: field, type BooksToCatalog.xsl.
3. Click the Save button.

This saves the stylesheet that Stylus Studio has generated. It does not matter that you have not finished mapping all nodes.

4. In the upper left corner of the XSLT Mapper, click Preview Result .

Tip

 

When you create a stylesheet using the XSLT Mapper, Stylus Studio automatically creates a scenario for you, using the source document you specify as the source document for the scenario. Scenarios and their value in the application development process are described earlier in this chapter. See XSLT Scenarios.

Stylus Studio displays the result of processing books.xml with the stylesheet you created in the XSLT Mapper in the Preview window.

Figure 50. Result of Applying XSLT to books.xml

The result document uses the same schema as the target document, catalog.xml in this example. Because not all nodes have been mapped yet, the result document does not contain all nodes found in books.xml ( author and subject nodes, for example).

5. You can confirm that the result document is incomplete by viewing books.xml. Click Open XML From Scenario , which is at the top of the Mapper tab.

Stylus Studio displays the books.xml document in the Stylus Studio XML Editor.

6. Review the XML document, and then click the document tab for the BooksToCatalog.xsl stylesheet to re-display the XSLT Editor.

XQuery Mapper

Stylus Studio has the industry's only XQuery mapper, enabling you to develop sophisticated XML mappings consisting of queries and data transformation in an intuitive, visual manner.

XML Grid View

The XML Grid View is a visual interface for editing tablular data structures using an intuitive spreadsheet-like interface.

Retail Companies That Use Stylus Studio

Stores and XML data can get very crowded. That's why retail companies use Stylus Studio to simplify their data. With the power of Stylus Studio these top retail companies are at the front of the line when it comes to XML!

The XML Primer: Editing and Validating XML in Stylus Studio

The XML primer demonstrates editing and validating XML in Stylus Studio demonstrates XML editing tools and utilities to simplify working with XML documents. Learn how to automate XML editing operations and troubleshoot XML documents today!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member