RE: XML declaration in XHTML causes problems

Dave J Woolley, at 13:32 +0100 on Fri, 30 Mar 2001, wrote:

    The example used XHTML 1.0 Strict.  HTML 4.01 strict
    requires a block level *element*, so I assume so does
    XHTML 1.0 strict.  <body></body> would violate the
    content model for HTML 4.01 strict.

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd:

    <!ELEMENT body %Block;>
    <!ENTITY % Block "(%block; | form | %misc;)*">

So, unless I'm mistaken, there must be zero or more children in a %Block.
Hence, a <body> may be empty.

I would see no reason for demanding there be children of <body>'s anyways.
However, on the flip side, lists (<ol> and friends) must be non-empty,
however (to my annoyance).

--
Frank Tobin		http://www.uiuc.edu/~ftobin/

Received on Friday, 30 March 2001 07:44:50 UTC