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=17425>. 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=17425 Schema using cyclic import fails validation Summary: Schema using cyclic import fails validation Product: Xerces-C++ Version: 2.2.0 Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Running "saxcount -n -f -s one.xml" will show this error: Error at file c:\temp\two.xsd, line 7, char 56 Message: Type not found in one:BookName The document one.xml uses one.xsd, that imports two.xsd; two.xsd imports one.xsd. Removing the definition <xs:complexType name="Book"> <xs:attribute name="name" type="one:BookName"/> </xs:complexType> from two.xsd will make validation succeed; the following one will also let validation succeed <xs:element name="testbook"> <xs:complexType> <xs:attribute name="name" type="one:BookName" /> </xs:complexType> </xs:element> So it looks like the validator is not delaying validation of global types when circular imports are done. Alberto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
