summaryrefslogtreecommitdiffstats
path: root/libxml2/test/relaxng/tutor9_9.rng
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/relaxng/tutor9_9.rng')
-rw-r--r--libxml2/test/relaxng/tutor9_9.rng37
1 files changed, 37 insertions, 0 deletions
diff --git a/libxml2/test/relaxng/tutor9_9.rng b/libxml2/test/relaxng/tutor9_9.rng
new file mode 100644
index 0000000..9f2e5ea
--- /dev/null
+++ b/libxml2/test/relaxng/tutor9_9.rng
@@ -0,0 +1,37 @@
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+ <define name="inline">
+ <zeroOrMore>
+ <ref name="inline.class"/>
+ </zeroOrMore>
+ </define>
+
+ <define name="inline.class">
+ <choice>
+ <text/>
+ <element name="bold">
+ <ref name="inline"/>
+ </element>
+ <element name="italic">
+ <ref name="inline"/>
+ </element>
+ <element name="code">
+ <ref name="inline"/>
+ </element>
+ <element name="em">
+ <ref name="inline"/>
+ </element>
+ </choice>
+ </define>
+
+ <start>
+ <element name="doc">
+ <zeroOrMore>
+ <element name="p">
+ <ref name="inline"/>
+ </element>
+ </zeroOrMore>
+ </element>
+ </start>
+
+</grammar>