summaryrefslogtreecommitdiffstats
path: root/schemas/bundle.xsd
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2011-04-08 13:29:12 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2011-04-08 13:29:12 -0400
commit3798e8c5c0544ce62ab2c8751ddb21bbd4726d1c (patch)
tree7e888a208d9f420c3398554340a2619ffebf5e5b /schemas/bundle.xsd
parent2e1a79fe401bea5b33551b9f94689524bf43cdca (diff)
downloadbcfg2-3798e8c5c0544ce62ab2c8751ddb21bbd4726d1c.tar.gz
bcfg2-3798e8c5c0544ce62ab2c8751ddb21bbd4726d1c.tar.bz2
bcfg2-3798e8c5c0544ce62ab2c8751ddb21bbd4726d1c.zip
A number of schema changes/fixes/updates:
* altsrc attr is not allowed on Service and Action tags * Removed duplicate definition of PackageType, fixed required attrs * Removed deprecated <Ignore> tags in BoundPackage Instances * Added Genshi schema, made Genshi bundles validate * Use builtin xs:boolean type where possible
Diffstat (limited to 'schemas/bundle.xsd')
-rw-r--r--schemas/bundle.xsd52
1 files changed, 37 insertions, 15 deletions
diff --git a/schemas/bundle.xsd b/schemas/bundle.xsd
index bf72915d8..1ea44c991 100644
--- a/schemas/bundle.xsd
+++ b/schemas/bundle.xsd
@@ -1,4 +1,5 @@
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:py="http://genshi.edgewall.org/" xml:lang="en">
<xsd:annotation>
<xsd:documentation>
@@ -7,6 +8,11 @@
</xsd:documentation>
</xsd:annotation>
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="xml.xsd"/>
+ <xsd:import namespace="http://genshi.edgewall.org/"
+ schemaLocation="genshi.xsd"/>
+
<xsd:include schemaLocation="atom.xsd"/>
<xsd:include schemaLocation="pathentry.xsd"/>
<xsd:include schemaLocation="rules.xsd"/>
@@ -87,6 +93,13 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
+ <xsd:element ref="py:def"/>
+ <xsd:element ref="py:match"/>
+ <xsd:element ref="py:choose"/>
+ <xsd:element ref="py:for"/>
+ <xsd:element ref="py:if"/>
+ <xsd:element ref="py:with"/>
+ <xsd:element ref="py:replace"/>
</xsd:choice>
<xsd:attribute type='xsd:string' name='name' use='required'>
<xsd:annotation>
@@ -102,23 +115,24 @@
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
+ <xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
<xsd:element name='Bundle'>
- <xsd:annotation>
- <xsd:documentation>
- A bundle describes a group of inter-dependent configuration
- entries, such as the combination of packages, configuration
- files, and service activations that comprise typical Unix
- daemons. Bundles are used to add groups of configuration
- entries to the inventory of client configurations, as
- opposed to describing particular versions of those
- entries. For example, a bundle could say that the
- configuration file ``/etc/passwd`` should be included in a
- configuration, but will not describe the particular version
- of ``/etc/passwd`` that a given client will receive.
- </xsd:documentation>
- </xsd:annotation>
+ <xsd:annotation>
+ <xsd:documentation>
+ A bundle describes a group of inter-dependent configuration
+ entries, such as the combination of packages, configuration
+ files, and service activations that comprise typical Unix
+ daemons. Bundles are used to add groups of configuration
+ entries to the inventory of client configurations, as opposed
+ to describing particular versions of those entries. For
+ example, a bundle could say that the configuration file
+ ``/etc/passwd`` should be included in a configuration, but
+ will not describe the particular version of ``/etc/passwd``
+ that a given client will receive.
+ </xsd:documentation>
+ </xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs='0' maxOccurs='unbounded'>
<xsd:element name='Package' type='StructureEntry'>
@@ -193,12 +207,20 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
+ <xsd:element ref="py:def"/>
+ <xsd:element ref="py:match"/>
+ <xsd:element ref="py:choose"/>
+ <xsd:element ref="py:for"/>
+ <xsd:element ref="py:if"/>
+ <xsd:element ref="py:with"/>
+ <xsd:element ref="py:replace"/>
</xsd:choice>
<xsd:attribute type='xsd:string' name='description' />
<xsd:attribute type='xsd:string' name='name'/>
<xsd:attribute type='xsd:string' name='version'/>
<xsd:attribute type='xsd:string' name='origin'/>
<xsd:attribute type='xsd:string' name='revision'/>
+ <xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>