XS3P Stylesheet Overview

By default, Stylus Studio displays XML Schema on the Documentation tab using the XS3P stylesheet from the DSTC Project Titanium (http://titanium.dstc.edu.au/). Figure 313 shows how the purchaseOrder.xsd looks when displayed using this stylesheet.

The XS3P stylesheet contains

l A customizable title (the default title is XML Schema Documentation)
l A table of contents with hypertext links to sections in the documentation
l Information about the XML Schema's properties, such as its target namespace and any declared namespaces
l Global declarations and global definitions, if any
l A legend that describes the graphical conventions used in the XML Schema documentation. The legend uses a fictitious type declaration for example purposes.
l A glossary that defines terminology used in the XML Schema documentation.

This section covers the following topics:

XS3P Stylesheet Features

The XS3P stylesheet has several features that affect content and layout of XML Schema displayed on the Documentation tab. You can

l Create a printer-friendly version of the documentation by clicking the Printer-friendly Version check box.
When you click this check box, Stylus Studio
n Hides the Legend and Glossary sections
n Automatically expands all XML instance and schema component representations
n Removes the expand/collapse controls from the page

XS3P Stylesheet Settings

The XS3P stylesheet allows you to modify the following:

l Title - The default title is XML Schema Documentation, but you can change it to whatever you want by editing the Title field.
l Sort order - By default, Stylus Studio sorts information in the XML Schema in alphabetical order by type name. If you want to display information in document order, set the Sort by Component field to False.
l Whether or not you want Stylus Studio to search included and imported XML Schemas.
l If you want to incorporate instructions in the HTML, the Use JavaScript option makes it easy for you to add instructions such to display pop-up windows and hide information in the generated HTML document.
l Inclusion in the XML Schema documentation of
m Supertypes
m Subtypes
m Glossary
m Legend
m xsd namespace prefix
m Schema diagrams

You control these settings on the Documentation page of the Options dialog box.

 
Free Stylus Studio XML Training: