spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column64

Documenting DTDs I: dtd2html

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

dtd2html

A similar documentation tool has existed in the SGML world for years, as part of the perlSGML package: dtd2html. dtd2html takes a DTD, plus an optional description file, and generates a set of HTML pages following the structure of the content model that the DTD describes. It is also capable of generating tree views and quick reference formats.

Download and install

dtd2html is part of the Perl package perlSGML. You can download it from there, unpack it in any directory and call dtd2html on any DTD. An installer script optionally copies everything to the "right" place should you so desire.

Running dtd2html on HTML4 transitional produces a set of HTML pages to browse. This can naturally only be a visualization of the content model's structure, but with the addition of a description file meaningful documentation is produced.

While it is a neat tool, things could be better:

Conclusion

While not all is great with dtd2html, it is so far one of the few documentation tools available for describing XML document types. I encourage you to use it, should you create DTDs for the rest of us to work with.

In the following installments, we will look at developing a documentation tool for XML document type definitions that should do away with the current limitations of dtd2html.

Hopefully this will lead to more documentation being produced in a standardized, concise format that is easy to consume for both man and machine.

Should you know about other tools I might have missed, as well as feature requests for such a tool, please let me know.


Produced by Michael Claßen

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

URL: http://www.webreference.com/xml/column64/2.html
Created: Sep 16, 2002
Revised: Sep 16, 2002