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


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:element name="child1"/>
  <xs:element name="parent">
        <xs:extension base = "BaseParent">

          <!-- XERCES's SAXParser reports error here-->
            <xs:element name="child2"/>

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:58 UTC