You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/06/26 18:32:16 UTC

DO NOT REPLY [Bug 10256] New: - Problem with schema validation

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10256>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10256

Problem with schema validation

           Summary: Problem with schema validation
           Product: Xerces-J
           Version: 1.4.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Schema-Structures
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: jkavanagh@realcall.com


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?

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org