Fieldset content model in XHTML 1.0 Schema

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