W3C home > Mailing lists > Public > www-html@w3.org > December 2001

Re: nested lists in xhtml-transitional

From: Chris Mannall <chris.mannall@hecubagames.com>
Date: Wed, 12 Dec 2001 09:27:03 -0000
Message-ID: <002701c182ef$294dbe40$b7f57bc1@johnwks>
To: <www-html@w3.org>
----- Original Message -----
From: "mike andrews" <mikerandrews@yahoo.com>
To: <www-html@w3.org>
Sent: Sunday, December 09, 2001 6:09 PM
Subject: nested lists in xhtml-transitional


> hi there - nested lists don't seem to be allowed the
> xhtml-transitional dtd. is that true? am i reading it right? see:
>
> http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd
>
> thanks - mike andrews

>From the DTD, ordered and unordered lists contain list items ....

<!ELEMENT ol (li)+>
<!ELEMENT ul (li)+>

... list items contain "Flow" content ...

<!ELEMENT li %Flow;>

... "Flow" content includes "block" content ....

<!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*">

... "block" content includes "lists" ...

<!ENTITY % block
    "p | %heading; | div | %lists; | %blocktext; | isindex |fieldset |
table">

... and "lists" includes ordered and unordered lists ...

<!ENTITY % lists "ul | ol | dl | menu | dir">

.... so yes, XHTML transitional does allow nested lists.


- Chris Mannall
Received on Wednesday, 12 December 2001 04:25:07 GMT

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