Sandy, Thanks for your help. I have tried to reduce the problem to a size suitable for posting, but then the problem goes away. I have also validated successfully with XSV. I used the Xerces TreeViewer sample program to see if the "error" might get in the way of parsing the file and it did not. It may still be possible that my schema is unintentionally suggesting one of the other ways of derivation, but to be honest with you, I could not make sense out of the references to "Type Derivation OK" in the Structures spec. (my apologies to the authors of the spec). One clue, however, is that both times I get this error, the type that the validator thinks should be the base is "#AnonType_ZZZ" where ZZZ is one of the components of the extended type. Does this extra info help any?
John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: Re: Puzzling Validation Error Hi John, First of all, posting your schema file(s) would be helpful. Second, are you really sure that the two types have nothing to do with each other? Two types can be connected in many ways: - type derivation (the most obvious one) - xsi:type - substitutionGroup - types of matching particles Do a search for "Type Derivation OK" in the schema structure spec will help you get all the places that require one type to be derived from another one. Hope this helps, Sandy Gao Software Developer, IBM Canada (1-416) 448-3255 [EMAIL PROTECTED] "John Powell" <[EMAIL PROTECTED] To: "Xerces-J-User" <[EMAIL PROTECTED]> ra.com> cc: Subject: Puzzling Validation Error 09/14/2001 05:30 PM Please respond to xerces-j-user Dear Xerces Users, In trying to validate an instance based on a schema with a few uses of "xsd:extension" for deriving new datatypes from abstract complexTypes, I get a couple of errors reporting that " type ??? does not derive from the type ???" The two types listed in the error really have nothing to do with each other, so I can't really figure out why this error is occurring? If you have encountered such an error and were able to debug it, please send me some suggestions that might help. Thanks. John Powell --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
