W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

Re: Problem with types derived from mixed complex types

From: Achille Fokoue <achille@us.ibm.com>
Date: Tue, 15 Jun 2004 17:34:42 -0400
To: xmlschema-dev@w3.org, ht@cogsci.ed.ac.uk
Cc: Tait E Larson <telarson@us.ibm.com>
Message-ID: <OFE772854E.E1955EB0-ON85256EB4.00751822-85256EB4.0076889C@us.ibm.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT