XML technologies / XML / XML in a Nutshell / Document type definitions (DTDs) / Finding standard DTDs

(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)

DTDs and validity matter most when exchanging data with others, since they let you verify that you send what the recipient expects and vice versa. Naturally, this works best when both parties agree on the DTD and vocabulary they will use. Many standard DTDs exist for different professions and fields, with new ones appearing daily. Using an established DTD and vocabulary is often better than creating your own. However, there is no recognized central repository for these documents or links to them. The most extensive list of DTDs on the Web is probably Robin Cover’s list of XML applications.

The W3C is one of the most prolific producers of standard XML DTDs. It has converted almost all its work to XML, including SVG, the Platform for Internet Content Selection (PICS), the Resource Description Framework (RDF), the Mathematical Markup Language (MathML) and even HTML itself. DTDs for these XML applications are generally published as appendices to the specifications for those applications.

XML is not just for the Web, however, and far more happens outside the W3C than within it. In any field, its industry standards body is generally a good place to find DTDs for that area. For example, the American Institute of Certified Public Accountants published a DTD for the Extensible Financial Reporting Markup Language (XFRML). The Object Management Group (OMG) released a DTD for describing Unified Modeling Language (UML) diagrams in XML. The Society of Automotive Engineers published XML applications for vehicle emissions information required by the U.S. Clean Air Act of 1990. In any industry that uses information technology extensively, one or more official or unofficial groups are very likely already developing DTDs for parts of that industry.

  

 

 

 

back to top