Let me try this myself. To be honest, descriptor(s) should be generated for the element 'HomeZip' for sure, but in element mode (of the code generator) no classes (and hence no descriptor) will be generated for the simple type definition 'Zip'.

Wewrner

Patrick Marchwiak wrote:
Is there a reason why the code generator may not be generating
validation for the minlength and maxlength facets of HomeZip?
It also appears that the "Zip" type and descriptor are not being
generated at all. I am using Castor 1.1.2.1.

An excerpt from my schema is below.

<xs:element name="HomeZip">
 <xs:complexType>
 <xs:simpleContent>
 <xs:extension base="Zip">
 <xs:attribute ref="abc"/>
 </xs:extension>
 </xs:simpleContent>
 </xs:complexType>
</xs:element>

and later ...

<xs:simpleType name="Zip">
 <xs:union memberTypes="Blank">
 <xs:simpleType>
 <xs:restriction base="xs:string">
 <xs:maxLength value="10"/>
 <xs:minLength value="5"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:union>
 </xs:simpleType>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to