Chris, You should 'define' ( like in C/C++ function declaration) your "Descriptor" before it's used as a part of another element
Put the following line, for example, before the 'Profile' definition <xsd:element name="descriptor" type="Descriptor"/> Regards, Gary -----Original Message----- From: Chris Newland [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 16, 2002 12:29 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] SourceGenerator produces incorrect parameter types? John, Sorry, that was a typo I made while trying to simplify my schema as an example, the real schema has a type definition for Descriptor but I still get the Type not found for element: Descriptor Type not found for element: FooDescriptor errors when I use the SourceGenerator: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.foo.com"> <!-- ============================================== --> <!-- ============================================== --> <element name="Profile"> <complexType> <sequence> <element name="Descriptor" type="Descriptor" maxOccurs="unbounded"/> <element name="FooDescriptor" type="Descriptor" maxOccurs="unbounded"/> </sequence> </complexType> </element> <!-- ============================================== --> <!-- ============================================== --> <element name="Descriptor"> <complexType> <sequence> <element name="entityID" type="string"/> <element name="profileLocation" type="string"/> </sequence> </complexType> </element> </schema> I'll have a dig around in the code for SourceGenerator and try to figure out what's wrong with my schema. Best Regards, Chris > -----Original Message----- > From: Weir, John [mailto:[EMAIL PROTECTED]] > Sent: 15 March 2002 07:37 > To: [EMAIL PROTECTED] > Subject: Re: [castor-dev] SourceGenerator produces incorrect parameter > types? > > > I don't see a type definition ( nor a reference to a type ) for Descriptor > in your Schema. I get similar errors and its usually because of a > change in > my schema. I would add a definition for Descriptor <snip> ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
