[libvirt] [PATCHv2] docs: schema: Add missing <interleave> element to input device

Lily Zhu lizhu at redhat.com
Thu Jun 14 10:26:51 UTC 2018


For the 2 optional sub-elements - <alias> and <address> of input device, make the
order of them interchangeable in the XML.

Signed-off-by: Lily Zhu <lizhu at redhat.com>
---
 docs/schemas/domaincommon.rng | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 1d06a5e..7c7f956 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -4309,12 +4309,14 @@
           </element>
         </group>
       </choice>
-      <optional>
-        <ref name="alias"/>
-      </optional>
-      <optional>
-        <ref name="address"/>
-      </optional>
+      <interleave>
+        <optional>
+          <ref name="alias"/>
+        </optional>
+        <optional>
+          <ref name="address"/>
+        </optional>
+      </interleave>
     </element>
   </define>
   <define name="hub">
-- 
1.8.3.1




More information about the libvir-list mailing list