W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

Schema error or validation bug ?

From: Guillaume Rousse <rousse@ccr.jussieu.fr>
Date: Wed, 29 Aug 2001 18:53:31 +0200
To: xmlschema-dev@w3.org
Message-Id: <20010829165332.3AA2644E0@silbermann.snv.jussieu.fr>
The following construct make xerces complains:
<complexType name="fooType">
  <complexContent>
    <extension base="model:barType">
      <all>
        <element name="elmt1" type="string"/>
      </all>
    </extension>
  </complexContent>
</complexType>

<complexType name="barType">
  <complexContent>
    <extension base="model:fooType">
      <all>
        <element name="elmt2" type="string"/>
        <element name="elmt3" type="string"/>
      </all>
    </extension>
  </complexContent>
</complexType>

[Error] file.xml:6:4: Schema error: ComplexType 'barType': 
cos-all-limited.1.2:  An "all" model group that is part of a complex type 
definition must constitute the entire {content type} of the definition.

Does it means inheriting type with unordered elements is illegal, or is it a 
xerces bug ?
-- 
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://bohm.snv.jussieu.fr/~rousse/gpgkey.html
Received on Wednesday, 29 August 2001 12:54:59 GMT

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