Creating Stylesheets

To create a stylesheet:
1. From the Stylus Studio menu bar, select File > New > XSLT: Text Editor.

Stylus Studio displays the Scenario Properties dialog box.

Alternative: Select File > New > XSLT: WYSIWYG. This automatically sets the output method to HTML, and displays the WYSIWYG HTML editor. See Creating Stylesheets That Generate HTML.

 

The WYSIWYG HTML editor is available only in Stylus Studio XML Professional Edition.

Alternative: Select File > New > XSLT: Mapper. See Chapter 5Creating XSLT Using the XSLT Mapper.

2. In the Scenario Name: field, type a name for the association between the new stylesheet and a particular XML source document. You might want to use the convention of specifying the name you want your result document to have. The result document is the document that will contain the result of applying the stylesheet you are about to create.
3. In the Source XML URL: field, type the name of an XML document or click Browse to navigate to a document. Select a document you want to apply the new stylesheet to. You are not limited to applying the new stylesheet to only this XML document. You can create other scenarios later and specify other XML documents to which you want to apply the same stylesheet.
4. Click OK. Stylus Studio displays an untitled stylesheet window. The default text in the new stylesheet appears in the left pane. The schema for the XML source document you specified in the scenario properties appears in the right pane.
5. To give the stylesheet a name, select File > Save.
6. Navigate to where you want to save the stylesheet.
7. In the URL: field, type the new stylesheet's name.
8. Click Save.

XML-to-HTML Mapper

Stylus Studio simplifies XML-to-HTML mapping through the industry's first and only XML to HTML mapping tool based on industry standard XSLT.

XSV - The XML Schema Validator

XSV is the official reference implementation for the XML Schema language and Stylus Studio is the only XML IDE to provide seamless integration with XSV - the W3C XML Schema Validator. Download Stylus Studio and XSV today.

Sybase

Sybase Adaptive Server Enterprise (ASE) is a powerful high-performance database for recording and retrieving business records. Learn how to develop XML applications for Sybase using Stylus Studio.

Learn XSLT

Free online video demonstrations for learning XSLT and how to design XSLT stylesheets to convert XML to HTML in publishing applications, or how to convert HTML to XML.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member