DTD2HTML

Intro

Outputs an HTML interpretation of the DTD. Comments within the DTD allow for documentation.

Download

dtd2html.pl

Format

<!-- foo: foo-element description
          attribute  - attribute description
          attribute2 - another attribute description
-->
<!ELEMENT foo CHILDREN>
<!ATTLIST foo
          attribute  TYPE  #REQUIRED
          attribute2 CDATA #IMPLIED>

other comments are treated as follows

<!-- single-line comments are headers -->
<!-- multi-line comments are put in 
     html paragraph tags -->

<!-- 
   preformatted text goes in comments 
   starting on a seprate line
-->

Comments? Bugs?

Post anything relating to this to the associated blog entry.


Steve Pomeroy
Last modified: Tue Jan 20 12:50:04 EST 2004