summaryrefslogtreecommitdiffstats
path: root/libxml2/test/relaxng/tutor8_2.rng
blob: 495968e8a594ce0ef2afe5f369ffdb79268e272d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
  <start>
    <ref name="head"/>
  </start>
  <define name="head">
    <element name="head">
      <interleave>
        <ref name="title"/>
        <optional>
          <ref name="base"/>
        </optional>
        <zeroOrMore>
          <ref name="style"/>
        </zeroOrMore>
        <zeroOrMore>
          <ref name="script"/>
        </zeroOrMore>
        <zeroOrMore>
          <ref name="link"/>
        </zeroOrMore>
        <zeroOrMore>
          <ref name="meta"/>
        </zeroOrMore>
      </interleave>
    </element>
  </define>
  <define name="title">
    <element name="title">
      <text/>
    </element>
  </define>
  <define name="base">
    <element name="base">
      <text/>
    </element>
  </define>
  <define name="style">
    <element name="style">
      <text/>
    </element>
  </define>
  <define name="script">
    <element name="script">
      <text/>
    </element>
  </define>
  <define name="meta">
    <element name="meta">
      <text/>
    </element>
  </define>
  <define name="link">
    <element name="link">
      <text/>
    </element>
  </define>
</grammar>