summaryrefslogtreecommitdiffstats
path: root/schemas/info.xsd
blob: 37232ab238714d41fb21559421bcdac21e471e6d (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
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
  
  <xsd:annotation>
    <xsd:documentation>
      info.xml schema for bcfg2
    </xsd:documentation>
  </xsd:annotation>

  <xsd:include schemaLocation="atom.xsd"/>

  <xsd:complexType name='InfoType'>
    <xsd:attribute name='encoding' type='xsd:string'/>
    <xsd:attribute name='group' type='xsd:string'/>
    <xsd:attribute name='important' type='xsd:string'/>
    <xsd:attribute name='owner' type='xsd:string'/>
    <xsd:attribute name='perms' type='xsd:string'/>
    <xsd:attribute name='paranoid' type='xsd:boolean'/>
    <xsd:attribute name='sensitive' type='xsd:boolean'/>
  </xsd:complexType>

  <xsd:complexType name='GroupType'>
    <xsd:choice minOccurs='1' maxOccurs='1'>
      <xsd:element name='Info' type='InfoType'/>
      <xsd:element name='Group' type='GroupType' minOccurs='0'
                   maxOccurs='unbounded'/>
      <xsd:element name='Client' type='GroupType' minOccurs='0'
                   maxOccurs='unbounded'/>
      <xsd:element name='Path' type='GroupType' minOccurs='0'
                   maxOccurs='unbounded'/>
    </xsd:choice>
    <xsd:attribute type='xsd:string' name='name' use='required'/>
    <xsd:attribute type='xsd:boolean' name='negate' />
  </xsd:complexType>

  <xsd:element name='FileInfo'>
    <xsd:complexType>
      <xsd:choice minOccurs='0' maxOccurs='unbounded'>
        <xsd:element name='Group' type='GroupType'/>
        <xsd:element name='Client' type='GroupType'/>
        <xsd:element name='Path' type='GroupType'/>
        <xsd:element name='Info' type='InfoType'/>
      </xsd:choice>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>