Re: schema validation problem

Hi Carl,

Your schema document is not well formed, see:

  <xs:choice maxOccurs="unbounded">
   <xs:element ref="Part" minOccurs="0" maxOccurs="unbounded"/>
   <xs:element ref="k1998" minOccurs="0" maxOccurs="unbounded"/>
   <xs:element ref="Characteristic" minOccurs="0" maxOccurs="unbounded"/>
   <xs:element ref="VariableCharacteristic" minOccurs="0" on>   <-----HERE
   </xs:simpleType>
  </xs:attribute>

Here it is a tip about Xerces error messages. When you are validating a
schema or an XML document against a schema the error messages contain in
general a code like the one you quote:
> "derivation-ok-restriction.2.1.2"
If you use the text part "derivation-ok-restriction" and add it as an anchor
to the XML Schema Part1: Structures URL you will get the explanation of the
reported problem, for instance in your case you get the URL:
http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction
There look for the 2.1.2 clause.

Hope that helps,
 George
-------------------------------------------------------------
George Cristian Bina mailto:george@oxygenxml.com
<oXygen/> XML Editor - http://www.oxygenxml.com/

Received on Tuesday, 9 December 2003 02:16:08 UTC