Posted: Mon Apr 23, 2018 1:36 am Post subject: Schema patterns
Newbie
Joined: 23 Apr 2018 Posts: 5
Hi
I've a XSD that defines an element to be of type xsd:decimal.
<xs:element minOccurs="0" maxOccurs="1" name="PieceWeight"><xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:pattern value="^\d{0,18}[,\.]\d{0,2}$|^$" />
</xs:restriction>
</xs:simpleType>
</xs:element>
I tried with value 1111111111111.10 and failed validation
The value "1111111111111.10" is not valid with respect to the pattern facet for type "#Anonymous".
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum