W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2002

'all' within 'complexContent' -- which parser is correct?

From: Evgeny Sologubov <Eugals@mail.ru>
Date: Wed, 30 Oct 2002 08:54:28 -0500 (EST)
Message-ID: <4627334885.20021030165657@mail.ru>
To: xmlschema-dev@w3.org




Hi!

Here is a schema:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="BaseParent">
    <xs:sequence>
      <xs:element name="child1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="parent">
    <xs:complexType>
      <xs:complexContent>
        <xs:extension base = "BaseParent">

          <!-- XERCES's SAXParser reports error here-->
          <xs:all>
            <xs:element name="child2"/>
          </xs:all>
          
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
</xs:schema>

XMLSpy5 and MSXML4 loaded it successfully but
XERCES-C++ failed with error: "An 'all' model group that's part of
a complex type definition must constitute the entire content type of
the definition" :-(

Who's right?

thanks in advance.
Received on Wednesday, 30 October 2002 13:30:52 GMT

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