...

View Full Version : HTML 4.01 DTD error?



BYS2
05-10-2006, 01:30 AM
there is something i cannot make sense of in the DTD for the HTML 4.01 specs (all three doctypes).

For the head element, the dtd is as follows:


<!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
<!ENTITY % head.content "TITLE & BASE?">

<!ELEMENT HEAD O O (%head.content; ) +(%head.misc; ) -- document head -->
<!ATTLIST HEAD
%i18n; -- lang, dir --
profile %URI; #IMPLIED -- named dictionary of meta info --
>

the part that does not seem to make sense is this:


<!ELEMENT HEAD O O (%head.content; ) +(%head.misc; ) -- document head -->

shouldn't there be an '+' (addition) symbol after the '(%head.misc; )' parameter entity? %head.misc is defined as "SCRIPT|STYLE|META|LINK|OBJECT" and i am sure that we can have multiple scripts, styles, metas etc. elements in the head.

thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum