HTML DTDs, 2 minor bugs

Terry Allen (terry@ora.com)
Sat, 24 Sep 94 19:22:25 EDT

Two bugs turned up in further testing.
____________________________________________________________

Under "Document Body" there's a slight error. Presently it's

<![ %HTML.Recommended [
<!ENTITY % body.content "(%heading|%block|HR|ADDRESS)*">
-- <h1>Heading</h1>
<p>Text ...
is preferred to
<h1>Heading</h1>
Text ...
-->
]]>

but the comment doesn't begin properly. To use the style of
the rest of the DTD, eliminate the > on the line that starts
with ENTITY:

<!ENTITY % body.content "(%heading|%block|HR|ADDRESS)*"
____________________________________________________________________

The definitions of DIR and MENU, which are not Recommended,
incorrectly exclude %block;, which has the effect of excluding
nested lists:

<!ELEMENT (OL|UL) - - (LI)+>
<!ELEMENT (DIR|MENU) - - (LI)+ -(%block)>

Yet the following works just fine with either DIR or MENU:

THE

This is a demo

Here's the content of this demo

  • SGML
  • MARC
  • Any reason this shouldn't be allowed? -- Terry Allen (terry@ora.com) Editor, Digital Media Group O'Reilly & Associates, Inc. Sebastopol, Calif., 95472