summaryrefslogtreecommitdiffstats
path: root/sudoers/netgroup.rng
blob: 24e017115c634c902fa3c51e3740b6858458b7a9 (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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
         xmlns:a="http://freeipa.org/xml/rng/ns/annotations/1.0">

  <a:doc> netgroup configuration</a:doc>

  <start ns="http://freeipa.org/xml/rng/netgroup/1.0">
    <element name="netgroup">
      <ref name="options"/>
      <ref name="anyElement"/>
    </element>

  </start>

  <define name="options">
    <zeroOrMore>
      <choice>
          <attribute name="groupnames">
            <text/>
          </attribute>
      </choice>
    </zeroOrMore>
  </define>
  <!--
       This allows anything in another namespace.
       The way nsName works requires that this be in each schema (grammar);
       it cannot be included.
  -->
  <define name="anyElement">
    <element>
      <anyName>
        <except>
          <nsName/>
          <nsName ns=""/>
        </except>
      </anyName>
      <zeroOrMore>
        <choice>
          <attribute>
            <anyName/>
          </attribute>
          <text/>
          <ref name="anyElement"/>
        </choice>
      </zeroOrMore>
    </element>
  </define>
</grammar>