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

Fieldset content model in XHTML 1.0 Schema

From: Masahide Kanzaki <post@kanzaki.com>
Date: Wed, 04 Sep 2002 14:10:50 +0900 (JST)
Message-Id: <20020904.141050.25474198.mimasa@w3.org>
To: www-html-editor@w3.org

I wonder if the legend element in fieldset should be optional
(minOccurs=0). Obviously, the content model of fieldset in XHTML 1.0 DTD
defines it be optional, as shown:

(#PCDATA | legend | %block; | form | %inline; | %misc;)*

This model is different from that of HTML4 where legend is required. Also,
the comment in the DTD as well as the documentation in XML schema says:

>  Only one legend element should occur in the content
>  and if present should only be preceded by whitespace.

Since there is a phrase "if present", it seems quite clear that legend
element is made optional intentionally, rather than just because of the
incapability of DTD mechanism.

Although the editor notes "this content model is different from the XHTML
1.0 DTD", this change makes many valid documents (in terms of DTD) invalid
against this schema, which is definitely unacceptable.

I respect the introduction of order constraint (xs:sequence) in this
content model, which is well in accordance with DTD comment. Please
reconsider the minOccurs of the legend element.

Thank you.
Received on Wednesday, 4 September 2002 01:10:58 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:47 UTC