Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSD Element not restricting currency decimal to two places

3046502Jul 14 2016 — edited Jul 20 2016

Below XSD element not restricting decimal value to two places

<xsd:element name="Amount">

          <xsd:simpleType>

            <xsd:restriction base="xsd:decimal">

              <xsd:pattern value="[+-]?\d+\.\d{2}"/>

            </xsd:restriction>

          </xsd:simpleType>

        </xsd:element>

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2016
Added on Jul 14 2016
4 comments
1,534 views