]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Put network.rng contents inside <grammar> for uniformity with other RNGs
authorLaine Stump <laine@laine.org>
Thu, 11 Nov 2010 19:48:51 +0000 (14:48 -0500)
committerLaine Stump <laine@laine.org>
Fri, 12 Nov 2010 07:12:19 +0000 (02:12 -0500)
All the other RNG files in libvirt are enclosed within <grammar>. This
commit makes the syntactical changes necessary to make network.rng fit
that pattern. (This is the first step in adding some data type
definitions to network.rng for more exact validation of IP and MAC
addresses).

Formatting changes (indentation) will be done in a subsequent commit,
so that actual changes to the code won't be obscured by whitespace.

docs/schemas/network.rng

index 33994bc93884ac2d9db524bf421e0088a57bae9a..d898b77c8dbec8fd206b22950f053ccf1374da6f 100644 (file)
@@ -1,6 +1,13 @@
 <!-- A Relax NG schema for the libvirt network XML format -->
-<element name="network" xmlns="http://relaxng.org/ns/structure/1.0"
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
          datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+  <start>
+    <ref name="network"/>
+  </start>
+
+<define name="network">
+
+<element name="network">
   <interleave>
 
   <!-- The name of the network, used to refer to it through the API
   </optional>
   </interleave>
 </element>
+</define>
+</grammar>