FORM content in DTD
newtonjs@vnet.net (Stan Newton)
Date: Thu, 13 Oct 94 08:14:52 EDT
Message-id: <199410131212.AA22639@char.vnet.net>
Reply-To: newtonjs@vnet.net
Originator: html-wg@oclc.org
Sender: html-wg@oclc.org
Precedence: bulk
From: newtonjs@vnet.net (Stan Newton)
To: Multiple recipients of list <html-wg@oclc.org>
Subject: FORM content in DTD
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: HTML Working Group (Private)
I have reviewed the The HTML.DTD dated Sep 26 and it looks pretty clean. I
found one definition which I believe needs revision. The DTD defines FORM
content as follows:
<!ELEMENT FORM -- %body.content - (FORM)+(INPUT|SELECT|TEXTAREA)
I don't believe this works when the Recommended switch is ON.
In that case, the %body.content definition becomes
<!ENTITY % body.content "(%heading|%block|HR|ADDRESS)*"
which excludes %text.
As I understand it, %text is always required inside the FORM tag because
only the FORM tag allows INPUT, SELECT and TEXTAREA tags.
If I'm correct about this, I would suggest defining a %form.content group
which always matches the %body.content group definition when Recommended is
OFF, namely
<!ENTITY % body.content "(%heading|%text|%block|HR|ADDRESS)*"
Stan Newton
Newton Computing Solutions