This discussion is archived
2 Replies Latest reply: Nov 22, 2012 2:39 AM by rameshchandra RSS

Unable to restrict total digits for a field of "decimal" type in XML

rameshchandra Newbie
Currently Being Moderated
Hi

I have following requirement- A BPEL process which takes XML file as input and gives XML file as output using FTP adapter; with data transformation in-between.

For one of the field "std_value" (of type "decimal") on the target side , total no. of digits need to be restricted to 12 and fraction digits to 4.If more than 12 digits come from source , the interface should fail. I placed the following restriction in the target side XSD file for this field:

<xs:attribute name="std_value" use="optional">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="-1" />
<xs:totalDigits value="12"/>
<xs:fractionDigits value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>

When i test the transformation XSLT in jdev for more than 12 digits , it is clearly showing it as invalid. But on actual run after deploying it, it is violating this "totalDigits" restriction.
The BPEL is of 1.1 specification and SOA server is 11.1.1.6.0.

Appreciate the help!

Regards,
Achal

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points