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

xerces 2.2.0 DOM.Counter with validation error - xsd:choice and group references

From: Jeremy Vander Kam <jvanderkam@mail.arc.nasa.gov>
Date: Fri, 15 Nov 2002 11:27:19 -0500
Message-Id: <>
To: xmlschema-dev@w3.org


I have the following schema:

<xsd:complexType name="AEEAggregation">
                                 <xsd:element name="Coefficients" 
                                 <xsd:element name="WeightEquation" 
                                 <xsd:element name="Weight" type="AEEDouble"/>
                                 <xsd:element name="WeightUpperLimit" 
type="AEEDouble" minOccurs="0"/>
                                 <xsd:element name="WeightLowerLimit" 
type="AEEDouble" minOccurs="0"/>
                                 <xsd:element name="ReferenceWeight" 
type="AEEDouble" minOccurs="0"/>
                                 <xsd:element name="CenterOfGravity" 
type="AEEArray" minOccurs="0"/>
                                 <xsd:element name="MomentOfInertia" 
type="AEEArray" minOccurs="0"/>
                                 <xsd:element name="Mass" type="AEEDouble" 
                                 <xsd:element name="MERReference" 
type="AEESimpleVariable" minOccurs="0"/>
                                 <xsd:element name="Coefficients" 
                                 <xsd:element name="Equation" 
                                 <xsd:element name="EquationValue" 
                                 <xsd:element name="Reference" 
type="AEESimpleVariable" minOccurs="0"/>
                 <xsd:attribute name="name" use="required"/>

And the following XML where Aggregation is of the type AEEAggregation from 

<Aggregation name="massRatio">

I get the following validation error:

[Error] AEE_data_021115.xml:14440:129: cvc-complex-type.2.4.a: Invalid 
content starting with element 'Equation'. The content must match 

Now, it seems to me that my XML is valid based on the choice between the 
two sequences. In fact, if I reverse the order of the sequences in the 
schema document, I get the same error for all my Aggregation elements that 
implement the second sequence in the xsd:choice element. This behavior 
seems like a bug in the validation to me.

The validation done in XMLSpy (I don't know which parser they use) accepts 
things just fine with the exact same schema and xml.

Has anyone seen this type of behavior? Have any suggestions?

Received on Friday, 15 November 2002 11:30:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:07 UTC