|
Home > Online Product Documentation > Table of Contents > Creating a New Sample Stylesheet Creating a New Sample StylesheetTo create a stylesheet to use in this tutorial, follow these instructions:
1. From the Stylus Studio menu bar, select
File
>
New
>
XSLT: Text Editor.
Stylus Studio displays a new untitled stylesheet and the Scenario Properties dialog box, and selects the text in the Scenario Name field.
2. In the
Scenario Properties dialog box, in the
Scenario Name field, type DynamicBookstoreScenario.
3. Click
Browse
Stylus Studio displays the Open dialog box.
4. Navigate to the Stylus Studio
examples\query directory.
5. Double-click
bookstore.xml. This is the XML document that the new stylesheet will operate on.
6. In the
Scenario Properties dialog box, click
OK.
This creates a scenario with the name
Stylus Studio displays the new stylesheet in the XSLT editor. A tree representation of the
The default stylesheet that Stylus Studio creates contains one template, which matches the root node.
7. In the XSLT editor tool bar, click
Preview Result
Stylus Studio displays the Save As dialog box so you can save the XSLT you are composing.
8. In the
URL: field, type bookstore.xsl and click
Save.
Stylus Studio applies the new stylesheet to
9. In the XSLT editor pane, click in the empty line that follows
<xsl:template match="/"> .
10. Type <x, which displays the Sense:X completion list.
11. In the completion list, scroll down and double-click
xsl:apply-templates.
12. Type />.
13. In the XSLT editor tool bar, click
Preview Result
bookstore.xml and none of the markup. This is because the
xsl:apply-templates instruction instantiates the default templates.
14. In the Stylus Studio tool bar, click
Save
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. |
Introduction to Convert to XML
Convert to XML is Stylus Studio's all-purpose utility for getting legacy data integration of all sorts into a custom XML format. This video provides an overview of the tool and walks you through a sample CSV to XML data transformation project.
Convert HTML to XML
Convert HTML-to-XML with a Document Wizard that quickly converts any HTML to standard XML with the click of a button! To get started, just click File, Document Wizards on the Stylus Studio menu.
Developer Resource Center: Learn XML and Stylus Studio
Learning XML is easy with Stylus Studio. Check out our free XML tutorials, XML whitepapers, online video demonstrations, XML examples and XML references and more.
XQuery Documentation Generator
Stylus Studio provides integrated support for xqDoc so you can generate XQuery documentation directly from the XQuery editor.