Bug 10256 - Problem with schema validation
Summary: Problem with schema validation
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: Schema-Structures (show other bugs)
Version: 1.4.4
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-26 16:32 UTC by James Kavanagh
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Kavanagh 2002-06-26 16:32:15 UTC
I've authored a schema using XML Spy which I checked with IBM's SQC 2.0 also to 
ensure that it is valid.

However when attempting to validate an instance document against it using 
Xerces I get the following error:

Schema error: Anonymous complexType: ct-props-correct.3:  Recursive type 
definition.

The fragment that it reports there being an error with looks like this:

<xs:complexType name="integerType">
  <xs:sequence>
    <xs:element name="default" type="xs:integer" minOccurs="0"/>
    <xs:choice minOccurs="0">
	<xs:element name="range" maxOccurs="unbounded">
	  <xs:complexType>
	    <xs:sequence>
		<xs:element name="min" type="xs:integer"/>
		<xs:element name="max" type="xs:integer"/>
	    </xs:sequence>
	  </xs:complexType>
	</xs:element>
      <xs:element name="enum">
	  <xs:complexType>
	    <xs:sequence>
		<xs:element name="item" type="xs:integer" 
maxOccurs="unbounded"/>
	    </xs:sequence>
	  </xs:complexType>
	</xs:element>
	<xs:element name="patterns" type="patternsType"/>
    </xs:choice>
  </xs:sequence>
</xs:complexType>

Can anyone help me on this?