W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 1997

HTML 4.0 Draft inconsistant

From: Martin Regan <martin@stheno.demon.co.uk>
Date: Tue, 02 Sep 1997 10:17:32 +0100
Message-ID: <340BD9AC.7090@stheno.demon.co.uk>
To: www-html-editor@w3.org
CC: martin@stheno.demon.co.uk
I always uses a SGML validator to check my pages against the relevent
DTD, so I was very surprised when the examples given in the HTML 4.0
documentation did not validate against the HTML 4.0 DTD supplied.  So
what gives?

The section I'm referring to about FRAMES.

In the example you give for alternative content you have the body
following the final frameset. If you run that example through a
validator against the HTML 4.0 DTD, it will flag an error as <BODY> is
not allowed there.

In the Documentation you say
(quote)
An HTML document with frames has a slightly different makeup than an
HTML document without frames. A standard document has one HEAD section
and one BODY. A document with frames has a HEAD, a FRAMESET, and an
optional BODY. 
(end quote)

but the DTD (and you refer to in your documentation says:
(quote)
<!ENTITY % html.content "HEAD, (FRAMESET|BODY)">
<!ELEMENT HTML O O (%html.content)>
(end quote)

Which clearly says that a HTML document contains a HEAD element,
followed by *either* a frameset or body, but *not* both.

If you go by the DTD, the layout of a frameset page with alternative
content would be:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
<HTML>
<HEAD> ... </HEAD>
<FRAMESET>
   <FRAME>
   <FRAME>
   <NOFRAMES>
      <BODY>
      ...
      </BODY>
   </NOFRAMES>
</FRAMESET>
</HTML>

Which I have validated successful against the HTML 4.0 draft DTD.  

So, is this, or is this not, correct?

Is the DTD correct, and the examples out of sync, or are the examples
wrong, and the DTD correct?
They can't both be correct, as they contradict each other!


I'd apprectate some clarification, if possible.

Regards,

Martin


-- 
Martin Regan                    | email: martin@stheno.demon.co.uk
"exigo spamos et dona ferentes" | www:   http://www.stheno.demon.co.uk/
                                 
PGP key at http://www.stheno.demon.co.uk/martin.asc
Received on Tuesday, 2 September 1997 08:22:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:42 GMT