summaryrefslogtreecommitdiffstats
path: root/libxml2/test/relaxng/tutor4_2.rng
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/relaxng/tutor4_2.rng')
-rw-r--r--libxml2/test/relaxng/tutor4_2.rng34
1 files changed, 34 insertions, 0 deletions
diff --git a/libxml2/test/relaxng/tutor4_2.rng b/libxml2/test/relaxng/tutor4_2.rng
new file mode 100644
index 0000000..644b06e
--- /dev/null
+++ b/libxml2/test/relaxng/tutor4_2.rng
@@ -0,0 +1,34 @@
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+ <start>
+ <ref name="AddressBook"/>
+ </start>
+
+ <define name="AddressBook">
+ <element name="addressBook">
+ <zeroOrMore>
+ <ref name="Card"/>
+ </zeroOrMore>
+ </element>
+ </define>
+
+ <define name="Card">
+ <element name="card">
+ <ref name="Name"/>
+ <ref name="Email"/>
+ </element>
+ </define>
+
+ <define name="Name">
+ <element name="name">
+ <text/>
+ </element>
+ </define>
+
+ <define name="Email">
+ <element name="email">
+ <text/>
+ </element>
+ </define>
+
+</grammar>