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

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

From: Jeni Tennison <jeni@jenitennison.com>
Date: Fri, 15 Nov 2002 18:47:51 +0000
Message-ID: <1091731873822.20021115184751@jenitennison.com>
To: xmlschema-dev@w3.org, Jeremy Vander Kam <jvanderkam@mail.arc.nasa.gov>

Hi Jeremy,

> I have the following schema:

Your schema looks non-deterministic to me. Your content model is:

  ((Coefficients, WeightEquation, Weight, WeightUpperLimit?,
    WeightLowerLimit?, ReferenceWeight?, CenterOfGravity?,
    MomentOfIntertia?, Mass?, MERReference?) |
   (Coefficients, Equation, EquationValue, Reference?))

The fact that "Coefficients" starts both sequences means that when it
encounters a <Coefficients> element, the validator can't work out
which of the sequences it should be using.

Try re-jigging your schema so that the content model is:

  (Coefficients,
   ((WeightEquation, Weight, WeightUpperLimit?, WeightLowerLimit?,
     ReferenceWeight?, CenterOfGravity?, MomentOfIntertia?, Mass?,
     MERReference?) |
    (Equation, EquationValue, Reference?)))
    
Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Friday, 15 November 2002 17:10:17 GMT

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