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