Hi,
I have tried to generate some databinding for a schema that contains that
type:
 <xsd:simpleType name="CurrencyType">
   <xsd:restriction base="xsd:string">
     <xsd:pattern value="[a-zA-Z]{3}" />
   </xsd:restriction>
 </xsd:simpleType>
as an attribute:

 <xsd:complexType name="TransactionType">
   <xsd:attribute name="quantity" type="xsd:nonNegativeInteger"
use="required" />
   <xsd:attribute name="price" type="xsd:decimal" use="required" />
   <xsd:attribute name="currency" type="myProj:CurrencyType" use="optional"
/>
 </xsd:complexType>

The generated class type (TransactionType.java) does not contain any
currency field.
The field only appears when the type is used as an element.
Is that feature not supported yet? Will that be supported?
Thanks in advance,
Eric

Reply via email to