diff options
Diffstat (limited to 'xml/fencing-2.4.rng')
-rw-r--r-- | xml/fencing-2.4.rng | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/xml/fencing-2.4.rng b/xml/fencing-2.4.rng new file mode 100644 index 0000000..e01f2f4 --- /dev/null +++ b/xml/fencing-2.4.rng @@ -0,0 +1,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> |