HTML DTDs, 2 minor bugs

Terry Allen <terry@ora.com>
Date: Sat, 24 Sep 94 19:22:25 EDT
Message-id: <199409242321.QAA25200@rock>
Reply-To: terry@ora.com
Originator: html-wg@oclc.org
Sender: html-wg@oclc.org
Precedence: bulk
From: Terry Allen <terry@ora.com>
To: Multiple recipients of list <html-wg@oclc.org>
Subject: HTML DTDs, 2 minor bugs
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: HTML Working Group (Private)

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:

<html><head>
<title>THE</title>
</head>
<body>
<p>This is a demo 
<p>Here's the content of this demo
<MENU compact>
<li><a href="#seyb">SGML</a>
<ul>
<li><a href="#seyb">SGML at Seybold San Francisco</a>
<li><a href="#sfaq">SGML FAQ</a>
</ul>
<li><a href="#dmarc">MARC</a>
</menu>

Any reason this shouldn't be allowed?

-- 
Terry Allen  (terry@ora.com)   Editor, Digital Media Group
O'Reilly & Associates, Inc.    Sebastopol, Calif., 95472