]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
snapshot: schema: Split out snapshot disk driver definition
authorPeter Krempa <pkrempa@redhat.com>
Fri, 6 Dec 2013 14:10:52 +0000 (15:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Dec 2013 09:20:56 +0000 (10:20 +0100)
Extract the definition to a new type to allow avoiding of duplication.

docs/schemas/domainsnapshot.rng

index 7b46df1c1b646c67b28bfe5029a579137842e603..169fcfb1ddffdd6ced804a13f64bb5ceb57ecbd9 100644 (file)
             </attribute>
           </optional>
           <interleave>
-            <optional>
-              <element name='driver'>
-                <optional>
-                  <attribute name='type'>
-                    <ref name='storageFormat'/>
-                  </attribute>
-                </optional>
-                <empty/>
-              </element>
-            </optional>
+            <ref name='disksnapshotdriver'/>
             <optional>
               <element name='source'>
                 <optional>
     </element>
   </define>
 
+  <define name='disksnapshotdriver'>
+    <optional>
+      <element name='driver'>
+        <optional>
+          <attribute name='type'>
+            <ref name='storageFormat'/>
+          </attribute>
+        </optional>
+        <empty/>
+      </element>
+    </optional>
+  </define>
+
 </grammar>