diff options
Diffstat (limited to 'libxml2/test/relaxng/tutor9_12.rng')
-rw-r--r-- | libxml2/test/relaxng/tutor9_12.rng | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libxml2/test/relaxng/tutor9_12.rng b/libxml2/test/relaxng/tutor9_12.rng new file mode 100644 index 0000000..be10b85 --- /dev/null +++ b/libxml2/test/relaxng/tutor9_12.rng @@ -0,0 +1,22 @@ +<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="emailAddress"> + <text/> + </element> + </define> + +</grammar> |