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

XHTML 1.0 in XML Schema: table definition

From: Richard Rathmann <Richard.Rathmann@noaa.gov>
Date: Wed, 11 Sep 2002 23:18:18 +0900 (JST)
Message-Id: <20020911.231818.41636343.mimasa@w3.org>
To: www-html-editor@w3.org

I was just giving the strict schema a quick look-over and noticed what
seems to be an error in the definition for <table>.  According to the
schema a <table> element can have <tr> children when it also has a
<thead> and/or <tfoot> child.  I could be wrong, but I thought that
<tbody> elements were required to wrap any <tr> elements when mixed with
<thead> or <tfoot>.  If I'm right in my logic, shouldn't the schema
definition be as follows:

  <xs:element name="table">
        <xs:element minOccurs="0" ref="caption"/>
          <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/>
          <xs:element minOccurs="0" maxOccurs="unbounded"
            <xs:element minOccurs="0" ref="thead"/>
            <xs:element minOccurs="0" ref="tfoot"/>
            <xs:element maxOccurs="unbounded" ref="tbody"/>
          <xs:element maxOccurs="unbounded" ref="tr"/>
      <xs:attributeGroup ref="attrs"/>
      <xs:attribute name="summary" type="Text"/>
      <xs:attribute name="width" type="Length"/>
      <xs:attribute name="border" type="Pixels"/>
      <xs:attribute name="frame" type="TFrame"/>
      <xs:attribute name="rules" type="TRules"/>
      <xs:attribute name="cellspacing" type="Length"/>
      <xs:attribute name="cellpadding" type="Length"/>

Richard E. Rathmann
TPMC Web Designer/Programmer
NOAA Coastal Services Center
2234 S Hobson Avenue
Charleston, SC  29405-2413
(843) 740-1314 (phone)
(843) 740-1315 (fax)
Received on Wednesday, 11 September 2002 10:18:21 UTC

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