diff options
Diffstat (limited to 'schemas/packages.xsd')
-rw-r--r-- | schemas/packages.xsd | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/schemas/packages.xsd b/schemas/packages.xsd index 9f16a23c0..c29a85ecf 100644 --- a/schemas/packages.xsd +++ b/schemas/packages.xsd @@ -1,5 +1,5 @@ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en"> - + <xsd:annotation> <xsd:documentation> packages config schema for bcfg2 @@ -7,30 +7,27 @@ </xsd:documentation> </xsd:annotation> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" + schemaLocation="xml.xsd"/> + <xsd:simpleType name="sourceTypeEnum"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="yum"/> <xsd:enumeration value="apt"/> <xsd:enumeration value="pac"/> - <xsd:enumeration value="pulp"/> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="sourceType"> - <xsd:sequence minOccurs="0" maxOccurs="unbounded"> - <xsd:element name="Component" type="xsd:string" minOccurs="0" - maxOccurs="unbounded"/> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="Component" type="xsd:string"/> + <xsd:element name="Arch" type="xsd:string"/> + <xsd:element name="GPGKey" type="xsd:string"/> <xsd:choice> - <xsd:element name="Blacklist" type="xsd:string" minOccurs="0" - maxOccurs="unbounded"/> - <xsd:element name="Whitelist" type="xsd:string" minOccurs="0" - maxOccurs="unbounded"/> + <xsd:element name="Blacklist" type="xsd:string"/> + <xsd:element name="Whitelist" type="xsd:string"/> </xsd:choice> - <xsd:element name="Arch" type="xsd:string" minOccurs="1" - maxOccurs="unbounded"/> - <xsd:element name="GPGKey" type="xsd:string" minOccurs="0" - maxOccurs="unbounded"/> - </xsd:sequence> + </xsd:choice> <xsd:attribute type="xsd:boolean" name="recommended"/> <xsd:attribute type="sourceTypeEnum" name="type"/> <xsd:attribute type="xsd:string" name="pulp_id"/> @@ -51,14 +48,13 @@ </xsd:complexType> <xsd:complexType name="sourcesType"> - <xsd:sequence> - <xsd:choice minOccurs="1" maxOccurs="unbounded"> - <xsd:element name="Group" type="groupType"/> - <xsd:element name="Client" type="groupType"/> - <xsd:element name="Source" type="sourceType"/> - <xsd:element name="Sources" type="sourcesType"/> - </xsd:choice> - </xsd:sequence> + <xsd:choice minOccurs="1" maxOccurs="unbounded"> + <xsd:element name="Group" type="groupType"/> + <xsd:element name="Client" type="groupType"/> + <xsd:element name="Source" type="sourceType"/> + <xsd:element name="Sources" type="sourcesType"/> + </xsd:choice> + <xsd:attribute ref="xml:base"/> </xsd:complexType> <xsd:element name="Sources" type="sourcesType"/> |