summaryrefslogtreecommitdiff
blob: 215e30c5a2d9fdb8f4a063e8934d332c4845589f (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Gentoo Layman overlays.xml Relax NG schema 1.0

  Copyright 1999-2009 Gentoo Foundation
  Distributed under the terms of the GNU General Public License v2 or later
-->
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0"
    xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <start>
    <element name="layman">
      <zeroOrMore>
        <element name="overlay">
          <attribute name="contact">
            <text/>
          </attribute>
          <attribute name="name">
            <text/>
          </attribute>
          <optional>
            <attribute name="priority" a:defaultValue="50">
              <data type="integer"/>
            </attribute>
          </optional>
          <attribute name="src">
            <data type="anyURI"/>
          </attribute>
          <optional>
            <attribute name="status" a:defaultValue="unofficial">
              <choice>
                <value>official</value>
                <value>unofficial</value>
              </choice>
            </attribute>
          </optional>
          <attribute name="type">
            <choice>
              <value>bzr</value>
              <value>darcs</value>
              <value>git</value>
              <value>mercurial</value>
              <value>rsync</value>
              <value>svn</value>
              <value>tar</value>
            </choice>
          </attribute>
          <optional>
            <attribute name="format">
              <choice>
                <value>bz2</value>
                <value>gz</value>
              </choice>
            </attribute>
          </optional>
          <optional>
            <attribute name="subpath">
              <text/>
            </attribute>
          </optional>
          <optional>
            <attribute name="category">
              <text/>
            </attribute>
          </optional>
          <interleave>
            <optional>
              <element name="link">
                <data type="anyURI"/>
              </element>
            </optional>
            <element name="description">
              <text/>
            </element>
          </interleave>
        </element>
      </zeroOrMore>
    </element>
  </start>
</grammar>