Reading the XHTML DTDs
The best way to learn how to write DTDs is to study existing documents. Because we'll be working with the DTDs for XHTML beginning in Chapter 16, "Combining Custom Modules with XHTML," going through them now is a good learning exercise. The XHTML 1.0 Strict DTD is the smallest of the three and can be found online at http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd.
The beginning of the DTD has some informational comments, including copyright information, revision dates, and public and system identifiers. After the revision date, a large set of entities are defined. These deal with character mnemonics, names imported from various RFCs, generic attributes, and entities created to represent groups of element names. The element ...
Get XHTML by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.