HTML 2.0 DTD

Christopher R. Maden (crm@ebt.com)
Fri, 7 Jul 95 16:44:40 EDT

Last minute notes on the latest revision of the HTML 2.0 DTD:
$Id: html.dtd,v 1.28 1995/06/16 18:54:22 connolly Exp $

The content model for <head> uses an inclusion exception:

<!ELEMENT HEAD O O (%head.content) +(META|LINK)>

This generally a good idea, allowing <meta> and <link> elements to
float within the <head> amongst the other ordered elements. However,
the current model for <title>:

<!ELEMENT TITLE - - (#PCDATA)*>

would then allow <meta> and <link> to occur *within* the <title>.
This was probably not what was intended. An exclusion exception would
fix this:

<!ELEMENT TITLE - - (#PCDATA) -(META|LINK)>

Note that the asterisk in the content model isn't necessary - #PCDATA
is any amount of parsed character data, and zero or more occurences of
any amount is still any amount.

-Chris

-- 
Christopher R. Maden                Electronic Book Technologies, Inc.
Applications Consultant             One Richmond Square
crm@ebt.com                         Providence, Rhode Island 02906 USA
+1-401-421-9550 (voice)             +1-401-521-2030 (fax)