summaryrefslogtreecommitdiffstats
path: root/xml/fencing-2.4.rng
blob: e01f2f41f4f5fa87421a54ff0bc77206c49a342c (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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0" 
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <start>
    <optional>
      <ref name="element-stonith"/>
    </optional>
  </start>

  <define name="element-stonith">
    <element name="fencing-topology">
      <zeroOrMore>
        <ref name="element-level"/>
      </zeroOrMore>
    </element>
  </define>
  
  <define name="element-level">
    <element name="fencing-level">
      <attribute name="id"><data type="ID"/></attribute>
      <choice>
        <attribute name="target"><text/></attribute>
        <attribute name="target-pattern"><text/></attribute>
        <group>
          <attribute name="target-attribute"><text/></attribute>
          <attribute name="target-value"><text/></attribute>
        </group>
      </choice>
      <attribute name="index"><data type="positiveInteger"/></attribute>
      <attribute name="devices">
        <data type="string">
          <param name="pattern">([a-zA-Z0-9_\.\-]+)(,[a-zA-Z0-9_\.\-]+)*</param>
        </data>
      </attribute>
    </element>
  </define>

</grammar>