We are facing problems while marshalling XSDs using Castor generated calsses 
having double types with pattern.
        <xsd:simpleType name="DollarAmtDataType">
                <xsd:annotation>
                        <xsd:documentation>Data Type for Dollar
Amount</xsd:documentation>
                </xsd:annotation>
                <xsd:restriction base="xsd:double">
                        <xsd:pattern value="[0-9]{1,15}\.[0-9]{2}"/>
                </xsd:restriction>
        </xsd:simpleType>

The double in the above case has a pattern expecting 2 digits after the
decimal point.

However castor while marshalling values like 4.00 gives out only 4.0 as the
value.

Does anyone have an idea if the <xsd:pattern>  has any significance, while
marshalling at all 
or not? 
If this information is not used at all, is ther any way to get this done
while still using 
Generated classes?

thanks
- prabhu

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

Reply via email to