summaryrefslogtreecommitdiff
path: root/tests/cxx/parser/validation/restriction/test-003.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx/parser/validation/restriction/test-003.xml')
-rw-r--r--tests/cxx/parser/validation/restriction/test-003.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cxx/parser/validation/restriction/test-003.xml b/tests/cxx/parser/validation/restriction/test-003.xml
new file mode 100644
index 0000000..49f18c7
--- /dev/null
+++ b/tests/cxx/parser/validation/restriction/test-003.xml
@@ -0,0 +1,16 @@
+<t:root xmlns:t="test"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="test test.xsd">
+
+ <!-- valid base but not restriction: sequence maxOccurs="1" -->
+ <restriction-a z="z">
+ <a>a</a>
+ <b>b</b>
+ <c>c</c>
+
+ <a>a</a>
+ <b>b</b>
+ <c>c</c>
+ </restriction-a>
+
+</t:root>