-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathebutt_d.xsd
332 lines (332 loc) · 11.8 KB
/
ebutt_d.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tt="http://www.w3.org/ns/ttml"
xmlns:ebuttdt="urn:ebu:tt:datatypes" xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
xmlns:ebuttm="urn:ebu:tt:metadata" xmlns:ebutts="urn:ebu:tt:style"
targetNamespace="http://www.w3.org/ns/ttml">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:import namespace="http://www.w3.org/ns/ttml#styling" schemaLocation="styling.xsd"/>
<xs:import namespace="http://www.w3.org/ns/ttml#parameter" schemaLocation="parameter.xsd"/>
<xs:import namespace="urn:ebu:tt:metadata" schemaLocation="ebutt_metadata.xsd"/>
<xs:import namespace="urn:ebu:tt:style" schemaLocation="ebutt_styling.xsd"/>
<xs:import namespace="urn:ebu:tt:datatypes" schemaLocation="ebutt_datatypes.xsd"/>
<xs:import namespace="http://www.w3.org/ns/ttml#metadata" schemaLocation="metadata.xsd"/>
<xs:element name="tt">
<xs:annotation>
<xs:documentation>Root element of an EBU-TT-D XML document.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:head"/>
<xs:element ref="tt:body" minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="xml:space">
<xs:annotation>
<xs:documentation>Indicates the author’s intention of white space handling
within the content of the EBU-TT-D document.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="ttp:timeBase" use="required"/>
<xs:attribute ref="ttp:cellResolution"/>
<xs:attribute ref="xml:lang" use="required">
<xs:annotation>
<xs:documentation>The language for which the EBU-TT-D document is prepared. (STL
mapping: Language Code (LC))</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="head">
<xs:annotation>
<xs:documentation>Contains metadata as well as layout and styling information that are
referenced by the subtitle blocks in the body.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="ttm:copyright" minOccurs="0"/>
<xs:element ref="tt:metadata" minOccurs="0">
<xs:annotation>
<xs:documentation>Generic container for metadata information that applies to
the whole document.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="tt:styling"/>
<xs:element ref="tt:layout"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="metadata">
<xs:annotation>
<xs:documentation>Container for metadata information.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="styling">
<xs:annotation>
<xs:documentation>Container for styling information.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
<xs:element ref="tt:style" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="style">
<xs:annotation>
<xs:documentation>Set of style information.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="xml:id" use="required">
<xs:annotation>
<xs:documentation>ID of a tt:style element that is used by other elements for
reference.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="tts:direction"/>
<xs:attribute ref="tts:fontFamily"/>
<xs:attribute ref="tts:fontSize"/>
<xs:attribute ref="tts:lineHeight"/>
<xs:attribute ref="tts:textAlign"/>
<xs:attribute ref="tts:color"/>
<xs:attribute ref="tts:backgroundColor"/>
<xs:attribute ref="tts:fontStyle"/>
<xs:attribute ref="tts:fontWeight"/>
<xs:attribute ref="tts:textDecoration"/>
<xs:attribute ref="tts:unicodeBidi"/>
<xs:attribute ref="tts:wrapOption"/>
<xs:attribute ref="ebutts:multiRowAlign"/>
<xs:attribute ref="ebutts:linePadding"/>
</xs:complexType>
</xs:element>
<xs:element name="layout">
<xs:annotation>
<xs:documentation>Container element for layout information.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
<xs:element ref="tt:region" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="region">
<xs:annotation>
<xs:documentation>Defines a space or area for the display of subtitle
content.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="xml:id" use="required">
<xs:annotation>
<xs:documentation>ID of a region.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="tts:origin" use="required"/>
<xs:attribute ref="tts:extent" use="required">
<xs:annotation>
<xs:documentation>Width and height of a region area. Values in percentage shall
be relative to the width and height of the active
picture.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="style" type="xs:IDREFS">
<xs:annotation>
<xs:documentation>ID(s) of one or more style element(s).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="tts:displayAlign"/>
<xs:attribute ref="tts:padding">
<xs:annotation>
<xs:documentation>Padding (or inset) space on all sides of a region
area.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="tts:writingMode"/>
<xs:attribute ref="tts:showBackground"/>
<xs:attribute ref="tts:overflow"/>
</xs:complexType>
</xs:element>
<xs:element name="body">
<xs:annotation>
<xs:documentation>Container of the subtitle and the timing
information.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
<xs:element ref="tt:div" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="style" type="xs:IDREFS"/>
<xs:attribute ref="ttm:agent"/>
<xs:attribute ref="ttm:role"/>
</xs:complexType>
</xs:element>
<xs:element name="div">
<xs:annotation>
<xs:documentation>Logical container of textual content.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
<xs:choice maxOccurs="unbounded">
<xs:element ref="tt:p"/>
</xs:choice>
</xs:sequence>
<xs:attribute ref="xml:id">
<xs:annotation>
<xs:documentation>ID of a tt:div element that may be used by an external
application.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="region" type="xs:IDREF">
<xs:annotation>
<xs:documentation>Application of layout and style information through reference
of a region.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="style" type="xs:IDREFS">
<xs:annotation>
<xs:documentation>ID(s) of one or more style element(s). The style information
shall be applied to the enclosed content of the tt:div
element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="ttm:agent"/>
<xs:attribute ref="ttm:role"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
</xs:element>
<xs:element name="p">
<xs:annotation>
<xs:documentation>Logical paragraph.</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="tt:br"/>
<xs:element ref="tt:span"/>
</xs:choice>
</xs:sequence>
<xs:attribute ref="xml:id" use="required">
<xs:annotation>
<xs:documentation>Unique ID of a subtitle.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="xml:space">
<xs:annotation>
<xs:documentation>Indicates the author’s intention of white space handling
within the content of the tt:p element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="xml:lang">
<xs:annotation>
<xs:documentation>Language identifier that overwrites the language
identification of the enclosed subtitle content.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="region" type="xs:IDREF">
<xs:annotation>
<xs:documentation>Application of layout information through reference of a
region.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="style" type="xs:IDREFS">
<xs:annotation>
<xs:documentation>ID(s) of one or more style element(s). The style information
shall be applied to the enclosed content of the tt:p
element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="begin" type="ebuttdt:distributionMediaTimingType">
<xs:annotation>
<xs:documentation>Start point of a temporal interval associated with a tt:p
element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="end" type="ebuttdt:distributionMediaTimingType">
<xs:annotation>
<xs:documentation>End point of a temporal interval associated with a tt:p
element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="ttm:agent"/>
<xs:attribute ref="ttm:role"/>
</xs:complexType>
</xs:element>
<xs:element name="span">
<xs:annotation>
<xs:documentation>Inline element to allow the application of local style information,
annotation or metadata.</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="tt:br"/>
</xs:choice>
</xs:sequence>
<xs:attribute ref="xml:id">
<xs:annotation>
<xs:documentation>ID of a tt:span element that may be used by an external
application.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="xml:space">
<xs:annotation>
<xs:documentation>Indicates the authors’ intention of white space handling
within the content of the element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="xml:lang">
<xs:annotation>
<xs:documentation>Language identifier that overwrites the language
identification of the enclosed subtitle content.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="style" type="xs:IDREFS">
<xs:annotation>
<xs:documentation>ID(s) of one or more style element(s). The style information
shall be applied to the enclosed content of the tt:span
element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="begin" type="ebuttdt:distributionMediaTimingType">
<xs:annotation>
<xs:documentation>Start point of a temporal interval associated with the
element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="end" type="ebuttdt:distributionMediaTimingType">
<xs:annotation>
<xs:documentation>End point of a temporal interval associated with the
element.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="ttm:agent"/>
<xs:attribute ref="ttm:role"/>
</xs:complexType>
</xs:element>
<xs:element name="br">
<xs:annotation>
<xs:documentation>Forced line break.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="tt:metadata" minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="ttm:role"/>
</xs:complexType>
</xs:element>
</xs:schema>