aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/encoding/wchar/test.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx/tree/encoding/wchar/test.xsd')
-rw-r--r--tests/cxx/tree/encoding/wchar/test.xsd33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/cxx/tree/encoding/wchar/test.xsd b/tests/cxx/tree/encoding/wchar/test.xsd
new file mode 100644
index 0000000..0bf4bdd
--- /dev/null
+++ b/tests/cxx/tree/encoding/wchar/test.xsd
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">
+
+ <simpleType name="strenum">
+
+ <annotation>
+ <documentation>
+ Test enum. Valid values are:
+ abc
+ a&#x1FFF;&#xD7FF;c
+ &#x10000;&#x10FFFD;bc
+ ab&#x10000;&#x10FFFD;
+ </documentation>
+ </annotation>
+
+ <restriction base="string">
+ <enumeration value="abc"/>
+ <enumeration value="a&#x1FFF;&#xD7FF;c"/>
+ <enumeration value="&#x10000;&#x10FFFD;bc"/>
+ <enumeration value="ab&#x10000;&#x10FFFD;"/>
+ </restriction>
+ </simpleType>
+
+ <complexType name="type">
+ <sequence>
+ <element name="a" type="string" maxOccurs="unbounded"/>
+ <element name="b" type="t:strenum" maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <element name="root" type="t:type"/>
+
+</schema>