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/02/18 18:21:33 UTC

DO NOT REPLY [Bug 6528] New: - Schema validation: erroneous "circular definitions detected"?

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=6528>.
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=6528

Schema validation: erroneous "circular definitions detected"?

           Summary: Schema validation: erroneous "circular definitions
                    detected"?
           Product: Xerces2-J
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Major
          Priority: Other
         Component: XML Schema datatypes
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: avogt@skillsonline.de


I invoked 
java dom.Counter -s my.xml

and got two error messages,
[Error] my.xml:5:3: st-props-correct.2: circular definitions detected for type '
:myModelGroup'.
[Error] my.xml:5:3: st-props-correct.2: circular definitions detected for type '
:myModelGroup'.
which I don't understand.

The messages did NOT occur with Xerces 1.4.4's dom.DOMCount application.

############ contents of my.xml file ############
<?xml version="1.0"?>
<dummy
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="my.xsd"
/> 

############# contents of my.xsd file ############
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema 
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<!-- 
    This file contains sample code from
    http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/
    section 3.7
    
Tags containing "..." and the references
to someThing and anotherThing have been removed. At the bottom,
the dummy element has been added.

-->

        <xs:group name="myModelGroup">
        
         <xs:sequence>
        
         </xs:sequence>
        
        </xs:group>
        
        
        
        <xs:complexType name="trivial">
        
         <xs:group ref="myModelGroup"/>
        
        </xs:complexType>
        
        
        
        <xs:complexType name="moreSo">
        
         <xs:choice>
        
          <xs:group ref="myModelGroup"/>
        
         </xs:choice>
        
        </xs:complexType>
        
        <xs:element name="dummy"/>

</xs:schema>

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