Generating DTD Documentation

See Also 

You can automatically generate XHTML documentation for any DTDs that are mounted in the IDE. The documentation describes each of the element declarations in your DTD, including its declared attributes, element content model, and the elements by which it is referenced.

You can add additional information to an element declaration's description by inserting a DTDDoc comment before the element declaration in the DTD. DTDDoc comments have a normal comment tag with three minus characters (-) instead of two. You can format the DTDDoc comment's appearance by using any XHTML tags allowed by the <DIV> element, as shown in the following example:

<!--- 
<b>The root element:</b>
  <ul>
    <li>Contains one or more item elements.</li> 
    <li>Sets attributes for item elements.</li>
  </ul> 
--> 
<!ELEMENT root ANY>

To generate documentation for a DTD:

  1. Add DTDDoc comments to your DTD if necessary.
  2. Right-click the DTD node in the Filesystems window and choose Generate Documentation.
  3. Type a file name for the documentation file and click OK.
See Also
DTD Node
Creating a DTD
Working With XML Schemas
Generating a DOM Tree Scanner
Generating a SAX Document Handler
Creating a Cascading Style Sheet

Legal Notices