summaryrefslogtreecommitdiffstats
path: root/schemas/base.xsd
diff options
context:
space:
mode:
authorHolger Weiß <holger@zedat.fu-berlin.de>2011-06-03 23:22:40 +0200
committerHolger Weiß <holger@zedat.fu-berlin.de>2011-06-03 23:22:40 +0200
commit1e7d3491604fbba1709bb03215b6c1783847b530 (patch)
tree4cd52ee1946db137516ee68513eb54f8a29826a2 /schemas/base.xsd
parent5a31e049ee342ec5874447796bc3978310306afb (diff)
downloadbcfg2-1e7d3491604fbba1709bb03215b6c1783847b530.tar.gz
bcfg2-1e7d3491604fbba1709bb03215b6c1783847b530.tar.bz2
bcfg2-1e7d3491604fbba1709bb03215b6c1783847b530.zip
Allow Bound entries and Client tags in Base Schema
Bound entries and Client tags may also be used in Base/*.xml files, so the XML Schema for Base files must permit these entries.
Diffstat (limited to 'schemas/base.xsd')
-rw-r--r--schemas/base.xsd22
1 files changed, 13 insertions, 9 deletions
diff --git a/schemas/base.xsd b/schemas/base.xsd
index 8eff0c69f..e8d677737 100644
--- a/schemas/base.xsd
+++ b/schemas/base.xsd
@@ -10,26 +10,30 @@
<xsd:include schemaLocation="atom.xsd"/>
<xsd:include schemaLocation="pathentry.xsd"/>
+ <xsd:include schemaLocation="rules.xsd"/>
- <xsd:complexType name='ContainerType'>
- <xsd:choice minOccurs='0' maxOccurs='unbounded'>
+ <xsd:group name='BaseEntries'>
+ <xsd:choice>
+ <xsd:element name='Group' type='ContainerType'/>
+ <xsd:element name='Client' type='ContainerType'/>
<xsd:element name='Package' type='StructureEntry'/>
<xsd:element name='Path' type='PathEntry'/>
<xsd:element name='Service' type='StructureEntry'/>
- <xsd:element name='Group' type='ContainerType'/>
+ <xsd:element name='BoundPackage' type='PackageType'/>
+ <xsd:element name='BoundPath' type='BoundPathEntry'/>
+ <xsd:element name='BoundService' type='ServiceType'/>
</xsd:choice>
+ </xsd:group>
+
+ <xsd:complexType name='ContainerType'>
+ <xsd:group ref='BaseEntries' minOccurs='0' maxOccurs='unbounded'/>
<xsd:attribute name='name' type='xsd:string'/>
<xsd:attribute name='negate' type='xsd:string'/>
</xsd:complexType>
<xsd:element name='Base'>
<xsd:complexType>
- <xsd:choice minOccurs='0' maxOccurs='unbounded'>
- <xsd:element name='Package' type='StructureEntry'/>
- <xsd:element name='Path' type='PathEntry'/>
- <xsd:element name='Service' type='StructureEntry'/>
- <xsd:element name='Group' type='ContainerType'/>
- </xsd:choice>
+ <xsd:group ref='BaseEntries' minOccurs='0' maxOccurs='unbounded'/>
</xsd:complexType>
</xsd:element>