W3C home > Mailing lists > Public > public-xhtml2@w3.org > September 2007

XHTML Basic 1.1 DTD declares hr but it cannot be included in anyelement (PR#10006)

From: <jaf@it.uc3m.es>
Date: Wed, 19 Sep 2007 10:53:40 -0500
Message-Id: <200709191553.l8JFrega022116@htmlwg.mn.aptest.com>
To: public-xhtml2@w3.org
CC: voyager-issues@mn.aptest.com

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1; FORMAT=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID: <Pine.LNX.4.62.0709151333131.6181@ariadna.it.uc3m.es>


I've found that the DTD of XHTML Basic 1.1 declares de hr element, but it=
doesn't appear in the content model of any element, and therefore it=20
cannot be used. A detailed explanation follows.

All the information bellow is based on the revision:
Revision:   $Id: xhtml-basic11.dtd,v 1.1 2007/07/20 15:00:12 jules Exp $

The XHTML DTD includes the "Presentation Module" which declares the=20
element "hr". See:


However, "hr" isn't in the content model of any element. For example, it=20
isn't in the content model of the element "body". The element "body" is=20
declared as:

(from http://www.w3.org/MarkUp/DTD/xhtml-struct-1.mod)

<!ENTITY % body.content
      "( %Block.mix; )+"
<!ELEMENT %body.qname;  %body.content; >

The entity Block.mix is declared as:

(from http://www.w3.org/MarkUp/DTD/xhtml-basic11-model-1.mod)

<!ENTITY % Block.mix
       | %List.class;
       | %Block.class;

You can check that "hr" is not declared in any of these entities as it=20

If it helps, the following web site maintained by me shows the information=
of the DTD in a more human-friednly way. All the information was=20
extracted automatically from the DTD available today (Sep 15 2007):



Jes=FAs Arias Fisteus
Universidad Carlos III de Madrid (Spain)

Received on Wednesday, 19 September 2007 15:55:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:30:28 UTC