summaryrefslogtreecommitdiffstats
path: root/schemas/packages.xsd
blob: 1a8469ed68491f8acd1b9eec142209249438e05d (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
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
  
  <xsd:annotation>
    <xsd:documentation>
      packages config schema for bcfg2
      Narayan Desai, Argonne National Laboratory
    </xsd:documentation>
  </xsd:annotation>

  <xsd:complexType name='SourceType'>
    <xsd:sequence>
      <xsd:element name="Group" type="xsd:string" minOccurs='1' 
                   maxOccurs='unbounded'/>
      <xsd:element name="URL" type="xsd:string" minOccurs='0' 
                   maxOccurs='1'/>
      <xsd:element name="Recommended" type="xsd:string" minOccurs='0' 
                   maxOccurs='1'/>
      <xsd:element name="RawURL" type="xsd:string" minOccurs='0' 
                   maxOccurs='1'/>
      <xsd:element name="Version" type="xsd:string" minOccurs='0'
                   maxOccurs='1'/>
      <xsd:element name="Component" type="xsd:string" minOccurs='0'
                   maxOccurs='unbounded'/>
      <xsd:choice>
        <xsd:element name="Blacklist" type="xsd:string" minOccurs='0'
                     maxOccurs='unbounded'/>
        <xsd:element name="Whitelist" type="xsd:string" minOccurs='0'
                     maxOccurs='unbounded'/>
      </xsd:choice>
      <xsd:element name="Arch" type="xsd:string"  minOccurs='1'
                   maxOccurs='unbounded'/>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:complexType name='SourcesType'>
    <xsd:sequence>
      <xsd:element name='Config' minOccurs='0' maxOccurs='1'>
        <xsd:complexType>
        <xsd:attribute type='xsd:string' name='resolver' />
        <xsd:attribute type='xsd:string' name='metadata' />
        </xsd:complexType>
      </xsd:element>

      <xsd:choice minOccurs='1' maxOccurs='unbounded'>
        <xsd:element name='APTSource' type='SourceType'/>
        <xsd:element name='YUMSource' type='SourceType'/>
        <xsd:element name='Sources' type='SourcesType'/>
      </xsd:choice>
    </xsd:sequence>
  </xsd:complexType>

  <xsd:element name='Sources' type='SourcesType'/>
</xsd:schema>