|
Home >Online Product Documentation >Table of Contents >Creating XML Schema from a DTD Creating XML Schema from a DTDStylus Studio has two document wizards you can use to create an XML Schema from a DTD. One uses a built-in processor; the other uses the Trang schema converter from Thai Open Source Software Center (www.thaiopensource.com). Using the Trang converter gives you more control over both the input file and output characteristics (such as whether or not you want to indent the XML Schema). Using the DTD to XML Schema Document WizardTo use the DTD to XML Schema wizard:
1. From the Stylus Studio menu bar, select File > Document Wizards.
The Document Wizards dialog box appears.
2. In the XML Editor tab, click DTD to XML Schema, and click OK.
The Convert DTD to XML Schema dialog box appears.
3. In the DTD URL field, type or select the absolute path for the DTD from which you want to create an XML Schema.
4. If you want to specify a target namespace for the resulting XML Schema, select the Use a Target Namespace check box and type a target namespace URL.
5. Click OK.
Stylus Studio displays the new XML Schema in the XML Schema Editor. Using the DTD to XML (Trang) Document WizardThe following table describes the fields in the DTD to XML (Trang) dialog box, which is displayed when you run the DTD to XML (Trang) document wizard. This document wizard was created using Stylus Studio Custom Document Wizard (see Custom Document Wizards for more information). To use the DTD to XML Schema (Trang) wizard:
1. From the Stylus Studio menu bar, select File > Document Wizards.
The Document Wizards dialog box appears.
2. In the XML Editor tab, click DTD to XML Schema (Trang) and click OK.
The DTD to XML Schema (Trang) dialog box appears.
3. Enter the absolute path of the DTD from which you want to create an XML Schema. The DTD must be encoded in UTF-8. You can type the file path, or use the browse button (which appears when you place the cursor in the Input file (required) field. This is the only required field.
4. Optionally, complete any of the remaining fields.
5. Click OK.
Stylus Studio displays the new XML Schema in the XML Schema Editor. |
XSL and XSLT Tools
XSLT tools in Stylus Studio let you easily edit, debug, design and profile XSLT stylesheets using a powerful and intuitive graphical user interface.
Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial
Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!
XML Schema Validator, DTD Validator
Stylus Studio lets you validate XML documents using integrated XML Schema or DTD validators. Use the Stylus Studio built-in validator, or any number of supported XML parsers and XML validators like MSXML SAX and DOM, Xerces, .NET, and more!
Canonicalize XML
Stylus Studio® features a handy XML canonicalizer among its many XML editing utilities, for quickly and easily converting any XML document into its canonical form (c14n), a widely-used W3C standard for normalizing XML files.

