Hi Chris,

When you specify 'type="Descriptor"', it means that you want the type of
your element to be a simpleType or a complexType named Descriptor not an
element.
Just define a complexType for Descriptor and all will be fine.

Arnaud

> -----Original Message-----
> From: Chris Newland [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 2:29 PM
> 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

Reply via email to