users@jaxb.java.net

attribute restrictions not working

From: Malachi de AElfweald <malachi_at_EOTI.ORG>
Date: Fri, 28 Mar 2003 11:43:38 -0700

I have this attribute type setup:

 <xsd:simpleType name="encodingFormat">
  <xsd:restriction base="xsd:string">
   <xsd:enumeration value="text"/>
   <xsd:enumeration value="hexBinary"/>
   <xsd:enumeration value="base64Binary"/>
  </xsd:restriction>
 </xsd:simpleType>


Using the autogenerated classes, I can set the value of the attribute to anything.... doesn't restrict it at all....

any ideas?

Malachi