Move the overrides into a single file so that later patches can add
another top level element 'inactiveDomain' used in snapshots.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/conf/schemas/domain.rng | 12 +-----------
src/conf/schemas/domainoverrides.rng | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 11 deletions(-)
create mode 100644 src/conf/schemas/domainoverrides.rng
diff --git a/src/conf/schemas/domain.rng b/src/conf/schemas/domain.rng
index b93bbed959..adc4386a27 100644
--- a/src/conf/schemas/domain.rng
+++ b/src/conf/schemas/domain.rng
@@ -6,16 +6,6 @@
<ref name="domain"/>
</start>
- <include href="domaincommon.rng"/>
-
- <define name="storageStartupPolicy" combine="choice">
- <!-- overrides the no-op version in storagecommon.rng -->
- <ref name="startupPolicy"/>
- </define>
-
- <define name="storageSourceExtra" combine="choice">
- <!-- overrides the no-op version in storagecommon.rng -->
- <ref name="diskspec"/>
- </define>
+ <include href="domainoverrides.rng"/>
</grammar>
diff --git a/src/conf/schemas/domainoverrides.rng b/src/conf/schemas/domainoverrides.rng
new file mode 100644
index 0000000000..13b18a28ea
--- /dev/null
+++ b/src/conf/schemas/domainoverrides.rng
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<grammar
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+ <!-- Overrides for the no-op versions of storage elements for use with domain XMLs.
-->
+ <include href="domaincommon.rng"/>
+
+ <define name="storageStartupPolicy" combine="choice">
+ <!-- overrides the no-op version in storagecommon.rng -->
+ <ref name="startupPolicy"/>
+ </define>
+
+ <define name="storageSourceExtra" combine="choice">
+ <!-- overrides the no-op version in storagecommon.rng -->
+ <ref name="diskspec"/>
+ </define>
+
+</grammar>
--
2.37.1