summaryrefslogtreecommitdiffstats
path: root/libxml2/test/schemas/decimal-2_1.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/schemas/decimal-2_1.xsd')
-rw-r--r--libxml2/test/schemas/decimal-2_1.xsd18
1 files changed, 18 insertions, 0 deletions
diff --git a/libxml2/test/schemas/decimal-2_1.xsd b/libxml2/test/schemas/decimal-2_1.xsd
new file mode 100644
index 0000000..cc71670
--- /dev/null
+++ b/libxml2/test/schemas/decimal-2_1.xsd
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:simpleType name="myDecimal">
+ <xsd:restriction base="xsd:decimal">
+ <xsd:minInclusive value="0"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:element name="foo">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="val" type="myDecimal" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+</xsd:schema>