When trying to generate code for your fragment given below, it looks
like you'll need to supply me with mre input, e.g. 'Blabk', etc. Or
otherwise reduce the XML schema (fragment) given to something that I can
use to generate code out of the box.
Werner
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