libxml2 2.9.1 clean sources
[tomato.git] / release / src / router / libxml2 / test / relaxng / tutor9_4.rng
blobd3b7e8ef569e69368a3c47f5b2e1f98546814e6f
1 <grammar xmlns="http://relaxng.org/ns/structure/1.0">
2   <start>
3     <element name="data">
4       <interleave>
5         <text/>
6         <ref name="inline.class"/>
7       </interleave>
8     </element>
9   </start>
11   <define name="inline.class">
12     <choice>
13       <element name="bold">
14         <ref name="inline"/>
15       </element>
16       <element name="italic">
17         <ref name="inline"/>
18       </element>
19     </choice>
20   </define>
22   <define name="inline">
23     <zeroOrMore>
24       <choice>
25         <text/>
26         <element name="code">
27           <ref name="inline"/>
28         </element>
29         <element name="em">
30           <ref name="inline"/>
31         </element>
32         <!-- etc -->
33       </choice>
34     </zeroOrMore>
35   </define>
36 </grammar>