summaryrefslogtreecommitdiffstats
path: root/xml/fencing-1.2.rng
diff options
context:
space:
mode:
Diffstat (limited to 'xml/fencing-1.2.rng')
-rw-r--r--xml/fencing-1.2.rng34
1 files changed, 34 insertions, 0 deletions
diff --git a/xml/fencing-1.2.rng b/xml/fencing-1.2.rng
new file mode 100644
index 0000000..4dc72d6
--- /dev/null
+++ b/xml/fencing-1.2.rng
@@ -0,0 +1,34 @@
+<?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>
+ </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>