|
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, select the
Use a Target Namespace check box and type a target namespace.
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 documet 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. |
Scientific, Photo & Control Equipment
Scientific, photo & control equipment companies hear clicks and beeps all day. But, when it comes to data integration it needs to be done in a flash, that's why they use Stylus Studio. Come see which top companies are seeing XML in a brand new light!
XHTML Tools
Powerful XHTML Tools for converting HTML to XHTML, validating XHTML, transforming XML to XHTML, editing JSP, creating XML driven Websites and more.
WSDL Editor
WSDL Editor featuring a graphical WSDL viewer, syntax help, Java Web Service code generation and more. Simplify Web Services development with Stylus Studio's Web Service Description Language (WSDL) Editor today!
Publishing & Printing
It is really hard to get things to look pretty, especially XML. That's why these publishing & printing companies use Stylus Studio to make a Mona Lisa out of data integration. Check out these top companies that are "stunning" with Stylus Studio!