John: Strange. I can't track down what Xerces is unhappy about.
I did run both schemas through the Schema Quality Checker and it says both are free from errors. Perhaps there's a bug in Xerces this has uncovered, but I don't know what it would be. Regards, Don Donald Smith ISOGEN International -----Original Message----- From: John Powell [mailto:[EMAIL PROTECTED] Sent: Thursday, September 27, 2001 9:54 AM To: Xerces-J-User Subject: Puzzling error revisited Dear XERCES user's list, I posted this question with no sample files a while ago because every time I tried to simplify and narrow down the problem, the problem went away. I hope the attached files are easy enough examples to debug. Two schemas, amb.xsd and abc.xsd, and an instance file test.xml are attached. When validation of the schema is performed using Xerces version 1.4.3, Xerces provides the following error message: [Error] test.xml:8:44: General Schema Error: Type : http://www.ara.com/abc, DescriptionType does not derive from the type http://www.ara.com/abc, #AnonType_No. This error message is surprising because the elements "No" and "DescriptionType" are totally unrelated and the error implies that "DescriptionType" should derive from the element "No." If one deletes the line <xsd:element name="Description" type="xsd:string" minOccurs="0"/> where Description is a subelement of element AM (see file AMB.xsd, line 14), the error goes away. Yet this element has nothing to do with elements DescriptionType or No. The parser seems to behave as if there was a memory override causing the error messaging system to produce a bizarre error. Can someone help me figure this out? Thanks - John Powell Applied Research Associates, Inc. NOTES: 1)To check the above, you will have to modify the full or relative path to schemas given in the files test.xml and abc.xsd to match the location of the files on your computer. 2)I also used XSV to validate the instance and XSV does not give any error. 3)IBM Schema Quality Checker reports not errors with the two Schema files. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
