[libvirt] [PATCH] schema: Move timer element inside clock

Jiri Denemark jdenemar at redhat.com
Mon Nov 8 11:31:23 UTC 2010


Both conf/domain_conf.c and domain XML documentation have <timer>
elements inside /domain/clock. Change domain.rng schema to be consistent
with them.
---
 docs/schemas/domain.rng |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index aaf9667..5a8576c 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -348,9 +348,6 @@
     </interleave>
   </define>
   <define name="clock">
-    <zeroOrMore>
-      <ref name="timer"/>
-    </zeroOrMore>
     <optional>
       <element name="clock">
         <choice>
@@ -381,7 +378,9 @@
             </optional>
           </group>
         </choice>
-        <empty/>
+        <zeroOrMore>
+          <ref name="timer"/>
+        </zeroOrMore>
       </element>
     </optional>
   </define>
-- 
1.7.3.2




More information about the libvir-list mailing list