diff options
Diffstat (limited to 'xml/api/options-2.34.rng')
-rw-r--r-- | xml/api/options-2.34.rng | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/xml/api/options-2.34.rng b/xml/api/options-2.34.rng new file mode 100644 index 0000000..94d3aad --- /dev/null +++ b/xml/api/options-2.34.rng @@ -0,0 +1,37 @@ +<?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 to include percentage and time --> + <define name="atomic-types" combine="choice"> + <choice> + <value>percentage</value> + <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> |