summaryrefslogtreecommitdiffstats
path: root/xml/api/options-2.36.rng
blob: 280e3984b255301103c5ff143f59f2fdfa698924 (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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

    <!--
     Pacemaker outputs option lists in an OCF-like XML format, but there are
     differences that break validation against the unaltered schema.
     -->

    <include href="ocf-ra-1.1.rng">
        <!--
         The OCF RA 1.1 schema requires an actions element. Pacemaker option
         lists don't include an actions element.
         -->
        <define name="element-actions">
            <empty />
        </define>
    </include>

    <!-- Extend the allowed types (see Pacemaker Explained for details) -->
    <define name="atomic-types" combine="choice">
        <choice>
            <value>duration</value>
            <value>epoch_time</value>
            <value>nonnegative_integer</value>
            <value>percentage</value>
            <value>port</value>
            <value>score</value>
            <value>timeout</value>
            <value>version</value>

            <!-- @COMPAT Deprecated -->
            <value>time</value>
        </choice>
    </define>

    <!-- Pacemaker options have additional parameter attributes -->
    <define name="parameter-attributes" combine="interleave">
        <!-- Parameter is for advanced use only -->
        <attribute name="advanced" />

        <!-- Parameter's value is Pacemaker-generated, not user-configured -->
        <attribute name="generated" />
    </define>

</grammar>