summaryrefslogtreecommitdiffstats
path: root/libxml2/test/relaxng/inline.rng
blob: 7b4095995587740ec4ec2142e25dab53f1a4bc4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <start>
    <ref name="inline"/>
  </start>

  <define name="inline">
    <zeroOrMore>
      <choice>
        <text/>
        <element name="code">
          <ref name="inline"/>
        </element>
        <element name="em">
          <ref name="inline"/>
        </element>
        <!-- etc -->
      </choice>
    </zeroOrMore>
  </define>
</grammar>