Re: Problem with types derived from mixed complex types

Henry,

It seems that you have forgotten to add an erratum you mentioned in [1] to 
address the problem I reported in [2].
Without this erratum, the following schema is considered invalid because 
the spec simply ignores the "mixed" attribute of the 
complex type restr:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType name='base' mixed='true'>
            <xs:choice minOccurs='0' maxOccurs='unbounded'>
                  <xs:element name='e1' type='xs:string'/>
            </xs:choice>
            <xs:attribute name='a1'/>
      </xs:complexType>
      <!-- the intend of  this type  is to simply remove all the children 
-->
      <xs:complexType name='restr' mixed='true'>
            <xs:complexContent>
                  <xs:restriction base='base'>
                        <xs:attribute name='a1'/>
                  </xs:restriction>
            </xs:complexContent>
      </xs:complexType>
</xs:schema>

Best regards,
Achille.

[1] http://lists.w3.org/Archives/Public/xmlschema-dev/2003Jan/0029.html
[2] http://lists.w3.org/Archives/Public/xmlschema-dev/2003Jan/0028.html

-----------------------------------
Achille Fokoue
Scalable XML Infrastructure
IBM T.J. Watson Research Center

Received on Tuesday, 15 June 2004 17:36:44 UTC