Document Wizards

To access the document wizards, from the Stylus Studio menu bar, select File > Document Wizards. There are three categories of document wizards:

XML Editor Document Wizards

In the XML Editor tab, the following wizards are available:

  • JSP 1.2/2.0 automatically creates a valid schema for a JSP page in XML format.
  • User-Defined Catalog lets you create a new catalog based on one or more existing catalogs and, optionally, save that catalog to the current Stylus Studio project.
  • ADO to XML generates an XML document from any ADO source.
  • XML Schema to XML generates an XML document from an XML Schema document.
  • DTD to XML Schema generates a sample XML Schema from a DTD.
  • DTD to XML generates an XML document from a DTD.
  • DTD to XML Schema (TRANG) generates a sample XML document from a DTD using the TRANG processor.
  • Text Catalog to XML Catalog converts a catalog in OASIS text format to XML format.
  • HTML to XML converts an HTML file to XML format.
  • XML to XML Schema converts an XML document to an XML Schema.
  • X12 to XML Schema converts and EDI X12 message type to an XML Schema.
  • EDIFACT to XML Schema converts an EDIFACT message type to an XML Schema.
  • IATA to XML Schema converts an IATA message type to an XML Schema.

Double-click the wizard you want to use (or click the wizard and then click the OK button). Stylus Studio displays a dialog box that prompts you for the information needed to complete the wizard.

XSLT Editor Document Wizards

To access the XSLT document wizard, from the Stylus Studio menu bar, select File > Document Wizards. In the Document Wizards dialog box, click the XSLT Editor tab.

The XSLT from HTML wizard generates an XSLT document. You can apply this stylesheet to an XML source document to generate an HTML file that looks like the HTML file you imported.

For example, suppose you want to generate a dynamic Web page that sells videos. You can design an HTML file that displays the information for one video. You then use this wizard to import the HTML file.With a few changes to the stylesheet that Stylus Studio generates, you can apply the stylesheet to an XML source document to display the information for multiple videos.

Java Document Wizards

To access the document wizards, from the Stylus Studio menu bar, select File > Document Wizards. Click the Java tab.

In the Java tab, the following wizards are available:

  • Servlet creates a simple servlet.
  • Console creates a simple console application.

Double-click the wizard you want to use. Stylus Studio displays a dialog box that prompts you for the information needed to generate the Java file.

For More Information

Chapter 2Editing and Querying XML

 
Free Stylus Studio XML Training: