Hi -
  I came across a problem for attribute names when I tried to generate the
source code from a schema like this:
 <xsd:element name="side">
        <xsd:complexType>
                <xsd:sequence/>
                <xsd:attribute name="value" use="required">
                        <xsd:simpleType>
                                <xsd:restriction base="xsd:NMTOKEN">
                                        <xsd:enumeration value="right"/>
                                        <xsd:enumeration value="left"/>
                                </xsd:restriction>
                        </xsd:simpleType>
                </xsd:attribute>
        </xsd:complexType>
</xsd:element>
<xsd:element name="horizontalDatum">
        <xsd:complexType>
                <xsd:sequence/>
                <xsd:attribute name="value">
                        <xsd:simpleType>
                                <xsd:restriction base="xsd:NMTOKEN">
                                        <xsd:enumeration value="wgs-84"/>
                                        <xsd:enumeration
value="wgs-84egm-96"/>
                                        <xsd:enumeration value="nad83"/>
                                        <xsd:enumeration value="nad27"/>
                                        <xsd:enumeration
value="reservedStandard"/>
                                </xsd:restriction>
                        </xsd:simpleType>
                </xsd:attribute>
        </xsd:complexType>
</xsd:element>

  In the generated types package, I only see one type class file
ValueType.java for the attribute definition in the acope of element
"horizontalDatum". 

  Can we have the same attribute name ("value" in this example) within
different element definition ("side" and 'horizontalDatum")? How to generate
different type classes for them?
  Any help is appreciated! 

  Frank

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

Reply via email to