diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-01-21 02:14:51 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-01-21 02:14:51 +0000 |
commit | bfef1b1c41c96c55033e334fe833e030ced8c450 (patch) | |
tree | 879b35d8264431b3b5e3a061a8d992ac9b46902a /schemas/info.xsd | |
parent | 33016cd1d7deeb9799b7b788d2dfccb18673437d (diff) | |
download | bcfg2-bfef1b1c41c96c55033e334fe833e030ced8c450.tar.gz bcfg2-bfef1b1c41c96c55033e334fe833e030ced8c450.tar.bz2 bcfg2-bfef1b1c41c96c55033e334fe833e030ced8c450.zip |
Implement xml schema checks for info.xml files (from Sol Jerome) (Resolves Ticket #514) [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4269 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'schemas/info.xsd')
-rw-r--r-- | schemas/info.xsd | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/schemas/info.xsd b/schemas/info.xsd new file mode 100644 index 000000000..95d786ed9 --- /dev/null +++ b/schemas/info.xsd @@ -0,0 +1,35 @@ +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en"> + + <xsd:annotation> + <xsd:documentation> + info.xml schema for bcfg2 + </xsd:documentation> + </xsd:annotation> + + <xsd:include schemaLocation="atom.xsd"/> + + <xsd:complexType name='InfoType'> + <xsd:attribute name='owner' type='xsd:string'/> + <xsd:attribute name='group' type='xsd:string'/> + <xsd:attribute name='perms' type='xsd:string'/> + <xsd:attribute name='encoding' type='xsd:string'/> + <xsd:attribute name='paranoid' type='xsd:string'/> + </xsd:complexType> + + <xsd:complexType name='GroupType'> + <xsd:choice minOccurs='1' maxOccurs='1'> + <xsd:element name='Info' type='InfoType'/> + </xsd:choice> + <xsd:attribute type='xsd:string' name='name' use='required'/> + <xsd:attribute type='xsd:string' name='negate' /> + </xsd:complexType> + + <xsd:element name='FileInfo'> + <xsd:complexType> + <xsd:choice minOccurs='0' maxOccurs='unbounded'> + <xsd:element name='Group' type='GroupType'/> + <xsd:element name='Info' type='InfoType'/> + </xsd:choice> + </xsd:complexType> + </xsd:element> +</xsd:schema> |