summaryrefslogtreecommitdiffstats
path: root/xml/api/ticket-2.35.rng
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:39:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:39:29 +0000
commitb41961d74fe7ff2d4d4abaca92454e87c561e49f (patch)
treeb34e3826a7b649dafdbd05081140c990c96d736d /xml/api/ticket-2.35.rng
parentReleasing progress-linux version 2.1.7-1~progress7.99u1. (diff)
downloadpacemaker-b41961d74fe7ff2d4d4abaca92454e87c561e49f.tar.xz
pacemaker-b41961d74fe7ff2d4d4abaca92454e87c561e49f.zip
Merging upstream version 2.1.8~rc1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--xml/api/ticket-2.35.rng68
1 files changed, 68 insertions, 0 deletions
diff --git a/xml/api/ticket-2.35.rng b/xml/api/ticket-2.35.rng
new file mode 100644
index 0000000..017ef38
--- /dev/null
+++ b/xml/api/ticket-2.35.rng
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+ <include href="../constraints-3.9.rng">
+ <start>
+ <ref name="element-ticket"/>
+ </start>
+
+ <!-- This redefines the constraints element from constraints-X.X.rng
+ so it can only contain the element-rsc_ticket element. This allows
+ us to restrict it so only those kinds of constraints are allowed
+ in ticket XML.
+ -->
+ <define name="element-constraints">
+ <element name="constraints">
+ <zeroOrMore>
+ <ref name="element-rsc_ticket"/>
+ </zeroOrMore>
+ </element>
+ </define>
+ </include>
+
+ <define name="element-ticket">
+ <element name="ticket">
+ <attribute name="id"> <text /> </attribute>
+ <optional>
+ <attribute name="status">
+ <choice>
+ <value>granted</value>
+ <value>revoked</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="standby"> <data type="boolean" /> </attribute>
+ </optional>
+ <optional>
+ <attribute name="last-granted"> <text /> </attribute>
+ </optional>
+ <optional>
+ <element name="attribute">
+ <attribute name="name"> <text /> </attribute>
+ <attribute name="value"> <text /> </attribute>
+ </element>
+ </optional>
+ <zeroOrMore>
+ <attribute>
+ <anyName>
+ <except>
+ <name>attribute</name>
+ <name>constraints</name>
+ <name>id</name>
+ <name>last-granted</name>
+ <name>standby</name>
+ <name>status</name>
+ </except>
+ </anyName>
+ <text />
+ </attribute>
+ </zeroOrMore>
+ <optional>
+ <ref name="element-constraints" />
+ </optional>
+ </element>
+ </define>
+
+</grammar>