Hi everyone,
I wonder if someone can point me in the right direction.
I am using a schema whose elements use the attribute name "type" on more
than one occasion.
here is an exceprt from the that schema:
...
        <xsd:element name="credit_type">
                <xsd:complexType>
                        <xsd:simpleContent>
                                <xsd:extension base="xsd:string">
                                        <xsd:attribute name="type"
default="individual">
                                                <xsd:simpleType>
                                                        <xsd:restriction
base="xsd:NMTOKEN">
        
<xsd:enumeration value="individual"/>
        
<xsd:enumeration value="joint"/>
                                                        </xsd:restriction>
                                                </xsd:simpleType>
                                        </xsd:attribute>
                                </xsd:extension>
                        </xsd:simpleContent>
                </xsd:complexType>
        </xsd:element>
        <xsd:element name="app_type">
                <xsd:complexType>
                        <xsd:simpleContent>
                                <xsd:extension base="xsd:string">
                                        <xsd:attribute name="type"
default="personal">
                                                <xsd:simpleType>
                                                        <xsd:restriction
base="xsd:NMTOKEN">
        
<xsd:enumeration value="personal"/>
        
<xsd:enumeration value="business"/>
                                                        </xsd:restriction>
                                                </xsd:simpleType>
                                        </xsd:attribute>
                                </xsd:extension>
                        </xsd:simpleContent>
                </xsd:complexType>
        </xsd:element>
...

The problem  is that sourcegenerator only creates a single TypeType class,
which is based on the first "type" attribute in the "credit_type"
element, which then restricts the type values to ("individual","joint")

As a result  the Unarshalling framework throws an exception, when it
processes the attribute "type" for "app_type" element. As in the Schema, the
app_type element's type attribute can have
"personal" and "business" values.


        java.lang.IllegalArgumentException: 'personal' is not a valid
TypeType at types.TypeType.valueOf(TypeType.java:116)

any clues how I can resolve this ?

thanks,
sal

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to