summaryrefslogtreecommitdiffstats
path: root/libxml2/test/schemas/restriction0_0.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/schemas/restriction0_0.xsd')
-rw-r--r--libxml2/test/schemas/restriction0_0.xsd21
1 files changed, 21 insertions, 0 deletions
diff --git a/libxml2/test/schemas/restriction0_0.xsd b/libxml2/test/schemas/restriction0_0.xsd
new file mode 100644
index 0000000..6b35b9f
--- /dev/null
+++ b/libxml2/test/schemas/restriction0_0.xsd
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
+ <xs:complexType name="personName">
+ <xs:sequence>
+ <xs:element name="title" minOccurs="0"/>
+ <xs:element name="forename" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="surname"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="simpleName">
+ <xs:complexContent>
+ <xs:restriction base="personName">
+ <xs:sequence>
+ <xs:element name="forename" minOccurs="1" maxOccurs="1"/>
+ <xs:element name="surname"/>
+ </xs:sequence>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="who" type="simpleName"/>
+</xs:schema>