M12N-S Comments

Attached are some comments on the XSD's defined by M12N-S

Regards



1. xhtml-attribs-1.xsd defines

   <xs:attributeGroup name="I18n.attrib">
     <xs:attributeGroup ref="BIDI"/>
     <xs:attribute ref="xml:lang"/>
   </xs:attributeGroup>

   The I118n.attrib seems to add the "dir" attribute by default.
   "dir" attribute must be part of xhtml-bdo-1.xsd and added only
   when this module is included.


2. xhtml-datatypes-1.xsd  defines
    <!-- a space-separated list of Uniform Resource Identifiers, see
[URI] -->
    <xs:simpleType name="URIs">
       <xs:list itemType="xs:string"/>
    </xs:simpleType>

    Can't this be defined this as list of "xs:anyURI" like

    <xs:simpleType name="URIs">
       <xs:list itemType="xs:anyURI"/>
    </xs:simpleType>

3. xhtml-datatypes-1.xsd defines
     <!-- space-separated list of link types -->
      <xs:simpleType name="LinkTypes">
         <xs:list itemType="xs:NMTOKEN"/>
      </xs:simpleType>

      Why not Use NMTOKENS like

      <xs:simpleType name="LinkTypes" type="xs:NMTOKENS">.


4. xhtml-struct-1.xsd defines

    <xs:complexType name="body.type" mixed="true">
      <xs:group ref="Block.mix" minOccurs="1" maxOccurs="unbounded"/>
      <xs:attributeGroup ref="body.attlist"/>
    </xs:complexType>

   <body> cannot be mixed content type.



5.  xhtml-list-1.xsd defines

  <xs:complexType name="dl.type" mixed="true">
    <xs:group ref="dl.content" minOccurs="1" maxOccurs="unbounded"/>
    <xs:attributeGroup ref="dl.attlist"/>
  </xs:complexType>

  <dl> cannot be mixed content type.


6. xhtml-model-1.xsd defines
     The Content model definitions (using <group>) contain occurance
     constraints like
       <xs:group name="HeadOpts.mix">
         <xs:choice minOccurs="0" maxOccurs="unbounded">
              ...
         </xs:choice>
       </xs:group>

       The above is illegal use of occurance constraints
       (the minOccurs/maxOccurs has no effect on a Content Model
definition)
      The above is used in the following content model definitions

          HeadOpts.mix, Edit.class, Script.class. Misc.class
          InlStruct.class, InlPhras.class, InlPres.class
          InlSpecial.class, InlForm.class, Inline.class,
          InlNoRuby.class, InlNoAnchor.class, InlNoAnchor.mix
          Inline.mix, Heading.class, List.class,BlkStruct.class,
          BlkPhras.class,BlkSpecial.class, Block.extra,
          Block.class, Block.mix, Flow.mix, FlowNoTable.mix

     Alternative way to do it would be have a content model definition
     like

        <xs:group name="HeadOpts.mix">
           <xs:sequence>
             <xs:choice minOccurs="0" maxOccurs="unbounded">
                  ...
             </xs:choice>
           </xs:sequence>
        </xs:group>



7. xhtml-model-1.xsd defines

   Content model of "InlNoRuby.class" is missing "InlStruct.class"



8. xhtml-model-1.xsd defines

   Content model of "InlNoAnchor.class" is missing "InlStruct.class"


9. xhtml-model-1.xsd defines
   Missing "FlowNoTable.mix" content model definition
   (FlowNoTable.mix is used in Basic tables


10. xhtml-inlstyle-1.xsd defines
    does not add "style" attribute to  element <br>


11. xhtml-param-1.xsd defines
    "valuetype" MUST NOT be required
    "valuetype  MUST have default="data"

12. xhtml-basic-table-1.xsd defines
    Attribute Groups "CellHAlign.attrib", "CellVAlign.attrib"
    "scope.attrib" all define the attribute "align"
    These must define "align", "valign" and "scope" attributes
    instead.

13. xhtml-basic-table-1.xsd defines
     Uses
      <xs:group name="tr.content">
        <xs:choice maxOccurs="unbounded">
            ..
        </xs:choice>
      </xs:group>

     Alternative

      <xs:group name="tr.content">
        <xs:sequence>
          <xs:choice maxOccurs="unbounded">
              ..
          </xs:choice>
        </xs:group>
      </xs:group>


14. xhtml-table-1.xsd
      Same as #13.
      also tfoot.content, thead.content, caption.content


15. xhtml-basic-form-1.xsd
    The first <xs:annotation> does not have a matching end tag

Received on Monday, 27 January 2003 22:18:00 UTC