-
Notifications
You must be signed in to change notification settings - Fork 11
/
mediaconch.xsd
169 lines (169 loc) · 8.03 KB
/
mediaconch.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://mediaarea.net/mediaconch"
xmlns="https://mediaarea.net/mediaconch" elementFormDefault="qualified"
version="0.2">
<xsd:element name="MediaConch" type="mediaconchType"/>
<xsd:complexType name="mediaconchType">
<xsd:annotation>
<xsd:documentation>The MediaConch element is the root-element of the MediaConch XML document.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="creatingApplication" type="creationType" minOccurs="0" maxOccurs="1" />
<xsd:element name="creatingLibrary" type="creationType" minOccurs="0" maxOccurs="1" />
<xsd:choice>
<xsd:sequence>
<xsd:element name="media" type="mediaType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:sequence>
<xsd:element name="implementationChecks" type="checksType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="policyChecks" type="checksType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="policy" type="policyType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="verbosity" />
<xsd:attribute name="version" />
</xsd:complexType>
<xsd:complexType name="checksType">
<xsd:annotation>
<xsd:documentation>The version attribute identifies the version of the implementation check.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
<xsd:element name="check" type="checkType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="pass_count" />
<xsd:attribute name="fail_count" />
<xsd:attribute name="checks_run" />
<xsd:attribute name="version" />
</xsd:complexType>
<xsd:complexType name="mediaType">
<xsd:annotation>
<xsd:documentation>The version attribute identifies the version of the implementation check.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="implementationChecks" type="checksType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="policyChecks" type="checksType" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="policy" type="policyType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="ref" />
</xsd:complexType>
<xsd:complexType name="checkType">
<xsd:annotation>
<xsd:documentation>The ref attribute identifies the path of the file from the root directory.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="context" type="contextType" minOccurs="0" maxOccurs="1" />
<xsd:element name="test" type="testType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="icid" />
<xsd:attribute name="name" />
<xsd:attribute name="version" />
<xsd:attribute name="pass_count" />
<xsd:attribute name="fail_count" />
<xsd:attribute name="tests_run" />
</xsd:complexType>
<xsd:complexType name="policyType">
<xsd:annotation>
<xsd:documentation>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="rules_run" />
<xsd:attribute name="pass_count" />
<xsd:attribute name="info_count" />
<xsd:attribute name="warn_count" />
<xsd:attribute name="fail_count" />
<xsd:attribute name="outcome" />
</xsd:complexType>
<xsd:complexType name="ruleType">
<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="scope" />
<xsd:attribute name="level" />
<xsd:attribute name="value" />
<xsd:attribute name="tracktype" />
<xsd:attribute name="occurrence" />
<xsd:attribute name="operator" />
<xsd:attribute name="xpath" />
<xsd:attribute name="requested" />
<xsd:attribute name="actual" />
<xsd:attribute name="outcome" />
</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:complexType name="contextType">
<xsd:annotation>
<xsd:documentation>The version attribute identifies the version of the implementation check. </xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:string" >
<xsd:attribute name="name" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="testType">
<xsd:annotation>
<xsd:documentation> The field attribute identifies the selected metadata field for policy checking. </xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="value" type="valueType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="tracktype" />
<xsd:attribute name="tracktypeorder" />
<xsd:attribute name="trackid" />
<xsd:attribute name="actual" />
<xsd:attribute name="outcome" />
<xsd:attribute name="reason" />
</xsd:complexType>
<xsd:complexType name="valueType">
<xsd:annotation>
<xsd:documentation>The reason attribute specifies a reason for a "failed" outcome check. </xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:string" >
<xsd:attribute name="name" />
<xsd:attribute name="formatid" />
<xsd:attribute name="offset" />
<xsd:attribute name="context" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="creationType">
<xsd:simpleContent>
<xsd:extension base="xsd:string" >
<xsd:attributeGroup ref="creationAttributeSet"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:attributeGroup name="creationAttributeSet">
<xsd:attribute name="version" type="xsd:string" use="required"/>
<xsd:attribute name="url" type="xsd:string"/>
<xsd:attribute name="build_date" type="xsd:string"/>
<xsd:attribute name="build_time" type="xsd:string"/>
<xsd:attribute name="compiler_ident" type="xsd:string"/>
</xsd:attributeGroup>
</xsd:schema>