Hi Robert,
I think you can safely ignore that warning, since the class 'statusType'
for the simpleType will be generated in a .types sub-package. The
warning message I guess is a tad too sensitive, I'll have to tweak that.
--Keith
[EMAIL PROTECTED] wrote:
>
> When I run the SourceGenerator against my schema, I am getting the following
> warning. Why is it generating this warning? Bug in my schema or bug in
> SourceGenerator?
>
> Warning: A class name generation conflict has occured between simpleType
> 'statusType' and element 'statusType'. Please use a Binding file to solve this
> problem.Continue anyway [not recommended] (y|n|?)
>
> <xsd:simpleType name="statusType">
> <xsd:restriction base="xsd:string">
> <xsd:enumeration value="INDEPENDENT"/>
> <xsd:enumeration value="DEPENDENT"/>
> </xsd:restriction>
> </xsd:simpleType>
>
> <xsd:complexType name="groupType" abstract="true">
> <xsd:complexContent>
> <xsd:extension base="objectType">
> <xsd:sequence>
> <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
> </xsd:sequence>
> <xsd:attribute name="department" type="xsd:IDREF" use="required" />
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
>
> <xsd:complexType name="specialGroupType">
> <xsd:complexContent>
> <xsd:extension base="groupType">
> <xsd:attribute name="status" type="statusType" use="required" />
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
>
> <xsd:complexType name="departmentType" abstract="true">
> <xsd:complexContent>
> <xsd:extension base="objectType">
> <xsd:sequence>
> <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
> </xsd:sequence>
> <xsd:attribute name="company" type="xsd:IDREF" use="required" />
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
>
> <xsd:complexType name="specialDepartmentType">
> <xsd:complexContent>
> <xsd:extension base="departmentType">
> <xsd:attribute name="status" type="statusType" use="required" />
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
>
> <xsd:complexType name="objectType" abstract="true">
> <xsd:attribute name="ID" type="xsd:ID" use="required" />
> </xsd:complexType>
>
> -----------------------------------------------------------
> 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