Home >Online Product Documentation >Table of Contents >Creating a New Sample Stylesheet
Stylus Studio displays a new untitled stylesheet and the Scenario Properties dialog box, and selects the text in the Scenario Name field.
Stylus Studio displays the Open dialog box.
examples\query
This creates a scenario with the name DynamicBookstoreScenario. This scenario associates the bookstore.xml document with the new stylesheet. If you want to apply the new stylesheet to other XML documents, you must create a new scenario or change the name of the XML document in this scenario.
DynamicBookstoreScenario
bookstore.xml
Stylus Studio displays the new stylesheet in the XSLT editor. A tree representation of the bookstore.xml document appears to the right.
The default stylesheet that Stylus Studio creates contains one template, which matches the root node.
Stylus Studio displays the Save As dialog box so you can save the XSLT you are composing.
Stylus Studio applies the new stylesheet to bookstore.xml and displays the result in the Preview window. The result, displayed in the Preview window, has no contents because the template that matches the root node is empty.
Stylus Studio displays the Save As dialog box.
This time, the Preview window contains all text in bookstore.xml and none of the markup. This is because the xsl:apply-templates instruction instantiates the default templates.
xsl:apply-templates
To create a Web page, you need to add HTML markup that displays the information the way you want. To make it easier to do that, you need to understand how the text is already being copied to the result document.