More tests from section 9 of the tutorial, Daniel
diff --git a/result/relaxng/tutor9_6.rng b/result/relaxng/tutor9_6.rng
new file mode 100644
index 0000000..17e6492
--- /dev/null
+++ b/result/relaxng/tutor9_6.rng
@@ -0,0 +1,24 @@
+<grammar>
+
+ <start>
+ <element name="addressBook">
+ <zeroOrMore>
+ <element name="card">
+ <ref name="card.attlist"/>
+ </element>
+ </zeroOrMore>
+ </element>
+ </start>
+
+ <define name="card.attlist">
+ <group>
+ <attribute name="name">
+ <text/>
+ </attribute>
+ <attribute name="email">
+ <text/>
+ </attribute>
+ </group>
+ </define>
+
+</grammar>
diff --git a/result/relaxng/tutor9_6_1 b/result/relaxng/tutor9_6_1
new file mode 100644
index 0000000..15724e5
--- /dev/null
+++ b/result/relaxng/tutor9_6_1
@@ -0,0 +1 @@
+./test/relaxng/tutor9_6_1.xml validates
diff --git a/result/relaxng/tutor9_6_1.err b/result/relaxng/tutor9_6_1.err
new file mode 100644
index 0000000..fadac1a
--- /dev/null
+++ b/result/relaxng/tutor9_6_1.err
@@ -0,0 +1,4 @@
+xmlRelaxNGValidateAttribute(name): 0
+xmlRelaxNGValidateAttribute(email): 0
+xmlRelaxNGValidateDefinition(): validated card : 0
+xmlRelaxNGValidateDefinition(): validated addressBook : 0
diff --git a/result/relaxng/tutor9_6_2 b/result/relaxng/tutor9_6_2
new file mode 100644
index 0000000..6e8350f
--- /dev/null
+++ b/result/relaxng/tutor9_6_2
@@ -0,0 +1,2 @@
+Extra content for element addressBook
+./test/relaxng/tutor9_6_2.xml validation generated an internal error
diff --git a/result/relaxng/tutor9_6_2.err b/result/relaxng/tutor9_6_2.err
new file mode 100644
index 0000000..bc1478c
--- /dev/null
+++ b/result/relaxng/tutor9_6_2.err
@@ -0,0 +1,5 @@
+xmlRelaxNGValidateAttribute(name): 0
+xmlRelaxNGValidateAttribute(email): -1
+xmlRelaxNGValidateDefinition(): validated card : -1
+error detected at relaxng.c:4341
+xmlRelaxNGValidateDefinition(): validated addressBook : -1
diff --git a/result/relaxng/tutor9_6_3 b/result/relaxng/tutor9_6_3
new file mode 100644
index 0000000..a8baf25
--- /dev/null
+++ b/result/relaxng/tutor9_6_3
@@ -0,0 +1,2 @@
+Extra content for element addressBook
+./test/relaxng/tutor9_6_3.xml validation generated an internal error
diff --git a/result/relaxng/tutor9_6_3.err b/result/relaxng/tutor9_6_3.err
new file mode 100644
index 0000000..b9bac75
--- /dev/null
+++ b/result/relaxng/tutor9_6_3.err
@@ -0,0 +1,5 @@
+xmlRelaxNGValidateAttribute(name): 0
+xmlRelaxNGValidateAttribute(email): 0
+xmlRelaxNGValidateDefinition(): validated card : -1
+error detected at relaxng.c:4341
+xmlRelaxNGValidateDefinition(): validated addressBook : -1
diff --git a/test/relaxng/tutor9_6.rng b/test/relaxng/tutor9_6.rng
new file mode 100644
index 0000000..0730038
--- /dev/null
+++ b/test/relaxng/tutor9_6.rng
@@ -0,0 +1,24 @@
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+ <start>
+ <element name="addressBook">
+ <zeroOrMore>
+ <element name="card">
+ <ref name="card.attlist"/>
+ </element>
+ </zeroOrMore>
+ </element>
+ </start>
+
+ <define name="card.attlist">
+ <group>
+ <attribute name="name">
+ <text/>
+ </attribute>
+ <attribute name="email">
+ <text/>
+ </attribute>
+ </group>
+ </define>
+
+</grammar>
diff --git a/test/relaxng/tutor9_6_1.xml b/test/relaxng/tutor9_6_1.xml
new file mode 100644
index 0000000..275753b
--- /dev/null
+++ b/test/relaxng/tutor9_6_1.xml
@@ -0,0 +1,3 @@
+<addressBook>
+ <card name="foo" email="bar"/>
+</addressBook>
diff --git a/test/relaxng/tutor9_6_2.xml b/test/relaxng/tutor9_6_2.xml
new file mode 100644
index 0000000..1ff1d3c
--- /dev/null
+++ b/test/relaxng/tutor9_6_2.xml
@@ -0,0 +1,3 @@
+<addressBook>
+ <card name="foo"/>
+</addressBook>
diff --git a/test/relaxng/tutor9_6_3.xml b/test/relaxng/tutor9_6_3.xml
new file mode 100644
index 0000000..b70c5bf
--- /dev/null
+++ b/test/relaxng/tutor9_6_3.xml
@@ -0,0 +1,3 @@
+<addressBook>
+ <card name="foo" email="bar" error="extra"/>
+</addressBook>