1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3 <xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="xsi.xsd"/>
4 <xs:element name="roles">
5 <xs:complexType>
6 <xs:choice minOccurs="0" maxOccurs="unbounded">
7 <xs:element ref="user"/>
8 <xs:element ref="role"/>
9 </xs:choice>
10 <xs:attribute ref="xsi:noNamespaceSchemaLocation" use="required"/>
11 </xs:complexType>
12 </xs:element>
13 <xs:element name="user">
14 <xs:complexType>
15 <xs:all>
16 <xs:element minOccurs="0" ref="username"/>
17 <xs:element minOccurs="0" ref="name"/>
18 <xs:element minOccurs="0" ref="email"/>
19 </xs:all>
20 </xs:complexType>
21 </xs:element>
22 <xs:element name="username" type="xs:string"/>
23 <xs:element name="name" type="xs:string"/>
24 <xs:element name="email" type="xs:string"/>
25 <xs:element name="role">
26 <xs:complexType>
27 <xs:choice minOccurs="0" maxOccurs="unbounded">
28 <xs:element ref="username"/>
29 <xs:element ref="name"/>
30 <xs:element ref="description"/>
31 <xs:element ref="members"/>
32 <xs:element ref="daemon-notification"/>
33 <xs:element ref="job-notification"/>
34 <xs:element ref="event-notification"/>
35 <xs:element ref="report-notification"/>
36 </xs:choice>
37 </xs:complexType>
38 </xs:element>
39 <xs:element name="description" type="xs:string"/>
40 <xs:element name="members">
41 <xs:complexType>
42 <xs:choice minOccurs="0" maxOccurs="unbounded">
43 <xs:element ref="username"/>
44 <xs:element ref="email"/>
45 </xs:choice>
46 </xs:complexType>
47 </xs:element>
48 <xs:element name="daemon-notification" type="xs:boolean"/>
49 <xs:element name="job-notification" type="xs:string"/>
50 <xs:element name="event-notification" type="xs:string"/>
51 <xs:element name="report-notification" type="xs:string"/>
52</xs:schema>