-
Notifications
You must be signed in to change notification settings - Fork 11
/
mediapolicy.xsd
47 lines (47 loc) · 2.04 KB
/
mediapolicy.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
version="0.1">
<xsd:element name="policy" type="policyType"/>
<xsd:complexType name="policyType">
<xsd:annotation>
<xsd:documentation>The root element of the document and also container of other policy elements and/or rule elements.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="tag" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="policy" type="policyType" />
<xsd:element name="rule" type="ruleType" />
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="name" />
<xsd:attribute name="type" />
<xsd:attribute name="level" />
<xsd:attribute name="version" />
</xsd:complexType>
<xsd:complexType name="ruleType" mixed="true">
<xsd:annotation>
<xsd:documentation>Contains a single test of policy</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="source" type="sourceType" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
<xsd:attribute name="name" />
<xsd:attribute name="occurrence" />
<xsd:attribute name="operator" />
<xsd:attribute name="scope" />
<xsd:attribute name="tracktype" />
<xsd:attribute name="level" />
<xsd:attribute name="value" />
</xsd:complexType>
<xsd:complexType name="sourceType">
<xsd:annotation>
<xsd:documentation>Specifies a field as the source for comparison</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="occurrence" />
<xsd:attribute name="scope" />
<xsd:attribute name="tracktype" />
<xsd:attribute name="value" />
</xsd:complexType>
</xsd:schema>