Re: Body start tag. (fwd)

Dave Raggett (dsr@w3.org)
Mon, 28 Jul 1997 09:13:35 -0400 ()


Date: Mon, 28 Jul 1997 09:13:35 -0400 ()
From: Dave Raggett <dsr@w3.org>
To: MegaZone <megazone@livingston.com>
cc: www-html@w3.org
Subject: Re: Body start tag. (fwd)
In-Reply-To: <199707260120.SAA09665@server.livingston.com>
Message-ID: <Pine.WNT.3.95.970728090923.-148885G-100000@holly>

On Fri, 25 Jul 1997, MegaZone wrote:

> But, is there a way in a DTD to say "if nothing specified,
> assume BODY"? 

SGML rules for omitting start tags are kind of weird. You
can do this if the element is required and its content is
not empty. In addition the DTD must declare the element to
permit omission of the start tag.

One would have though that the next token would be enough
to determine which element is present, but I believe the
SGML committee was concerned over inclusions and exclusions
and ended up with a more conservative rule.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2521 (office) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)