]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: interleave domain name and uuid with other elements
authorJán Tomko <jtomko@redhat.com>
Thu, 17 Dec 2015 12:43:58 +0000 (13:43 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 5 Jan 2016 12:21:09 +0000 (13:21 +0100)
Allow <name> and <uuid> anywhere under <domain>, not just at the top:

error:XML document failed to validate against schema: Unable to validate
doc against /usr/share/libvirt/schemas/domain.rng
Expecting an element name, got nothing
Invalid sequence in interleave
Element domain failed to validate content

Introduced with the first RelaxNG schema in commit c642103.

https://bugzilla.redhat.com/show_bug.cgi?id=1292131

docs/schemas/domaincommon.rng

index eae12138fb3baf19450d614a669af37771f9ea89..7c47f60feb4f53093935eca27ae79ded15ed52dd 100644 (file)
@@ -30,8 +30,8 @@
   <define name="domain">
     <element name="domain">
       <ref name="hvs"/>
-      <ref name="ids"/>
       <interleave>
+        <ref name="ids"/>
         <optional>
           <ref name="title"/>
         </optional>