Blame SOURCES/bz902407-pcmk-location_constraints_are_allowed_to_specify_a_role.patch

ed0026
commit 1bf33b4b3954cc7e8958d90c0dd02c1a108871d6
ed0026
Author: Andrew Beekhof <andrew@beekhof.net>
ed0026
Date:   Fri Aug 23 13:27:48 2013 +1000
ed0026
ed0026
    Fix: xml: Location constraints are allowed to specify a role
ed0026
ed0026
diff --git a/xml/constraints-1.1.rng b/xml/constraints-1.1.rng
ed0026
index e224600..425b54c 100644
ed0026
--- a/xml/constraints-1.1.rng
ed0026
+++ b/xml/constraints-1.1.rng
ed0026
@@ -20,13 +20,13 @@
ed0026
     <element name="rsc_location">
ed0026
       <attribute name="id"><data type="ID"/></attribute>
ed0026
       <attribute name="rsc"><data type="IDREF"/></attribute>
ed0026
+      <optional>
ed0026
+	<attribute name="role">
ed0026
+	  <ref name="attribute-roles"/>
ed0026
+	</attribute>
ed0026
+      </optional>
ed0026
       <choice>
ed0026
 	<group>
ed0026
-	  <optional>
ed0026
-	    <attribute name="role">
ed0026
-	      <ref name="attribute-roles"/>
ed0026
-	    </attribute>
ed0026
-	  </optional>
ed0026
 	  <choice>
ed0026
 	    <attribute name="domain"><data type="IDREF"/></attribute>
ed0026
 	    <group>
ed0026
diff --git a/xml/constraints-1.2.rng b/xml/constraints-1.2.rng
ed0026
index f3af61f..221140c 100644
ed0026
--- a/xml/constraints-1.2.rng
ed0026
+++ b/xml/constraints-1.2.rng
ed0026
@@ -20,6 +20,11 @@
ed0026
     <element name="rsc_location">
ed0026
       <attribute name="id"><data type="ID"/></attribute>
ed0026
       <attribute name="rsc"><data type="IDREF"/></attribute>
ed0026
+      <optional>
ed0026
+	<attribute name="role">
ed0026
+	  <ref name="attribute-roles"/>
ed0026
+	</attribute>
ed0026
+      </optional>
ed0026
       <choice>
ed0026
 	<group>
ed0026
 	  <externalRef href="score.rng"/>