W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2003

Re: schema validation problem

From: George Cristian Bina <george@sync.ro>
Date: Tue, 9 Dec 2003 09:18:17 +0200
Message-ID: <004401c3be24$a003ce90$1300000a@spelling>
To: "Carl Marcum" <carl-m@precisiongage-tool.com>, <xmlschema-dev@w3.org>

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 GMT

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