Does Castor support restrictions in the definition of a simple type?

For Example:

<xsd:element name="number" type="xsd:double" minInclusive="-10.0"/>

or do I always have to have a restriction base?

:

<xsd:element name="number">
    <xsd:simpleType>
        <xsd:restriction base="xsd:double">
                <xsd:minInclusive value="-10">
        </xsd:restriction>
    </xsd:simpleType>
</xsd:element>

I have tried everything and cannot get this to work without a restriction
base, but surely a restriction can be in the definition of an element!


Lloyd

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

Reply via email to