summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd
diff options
context:
space:
mode:
authorKarim Pinter <karim.pinter@qt.io>2017-01-18 11:00:13 +0200
committerKarim Pinter <karim.pinter@qt.io>2017-01-20 09:40:12 +0000
commit82c5cc6532ac5d0323ecda94b6767e1fdaef2639 (patch)
tree116a67e467457c394c7b2d62ea168082332e7ea4 /tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd
parentb7f8783f25cf1ff0eadbab59701acd46bff58e9a (diff)
downloadqtxmlpatterns-82c5cc6532ac5d0323ecda94b6767e1fdaef2639.tar.gz
fractionDigits doesn't count the trailing 0s anymore
fractionDigits were counting also the trailing 0s, which is against the standard https://www.w3.org/TR/xmlschema-2/#rf-fractionDigits Task-number: QTBUG-58245 Change-Id: I9175d4870de82e25c4df2317394ccfba8048fb48 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd')
-rw-r--r--tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd b/tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd
new file mode 100644
index 0000000..b8f266a
--- /dev/null
+++ b/tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/FractionDigitsTest" xmlns:tns="http://www.example.org/FractionDigitsTest" elementFormDefault="qualified">
+ <element name="number" type="tns:NumberType" />
+ <complexType name="NumberType">
+ <sequence>
+ <element name="value">
+ <simpleType>
+ <restriction base="decimal">
+ <fractionDigits value="2"/>
+ </restriction>
+ </simpleType>
+ </element>
+ </sequence>
+ </complexType>
+</schema>