-
Notifications
You must be signed in to change notification settings - Fork 2
/
content.xsd
832 lines (832 loc) · 28.3 KB
/
content.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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 4.2.0, July 2016. Find the latest release on https://github.com/june-ab/public-schedule4 -->
<!-- Public Schedule is an open standard for interchanging TV metadata, broadcasts and rights. -->
<!-- Public Schedule is free to use for all. Originally developed by SVT, TV4 and TeliaSonera. -->
<!-- Now in development by broadcasters and distributors who are members of the Public Schedule group. -->
<!-- Want to participate? Contact [email protected] -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://common.tv.se/content/v4_2_0"
targetNamespace="http://common.tv.se/content/v4_2_0" elementFormDefault="qualified"
attributeFormDefault="unqualified" version="1.0">
<xs:element name="content" type="contentType">
<xs:annotation>
<xs:documentation>Root element for content object</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="contentType">
<xs:sequence>
<xs:element name="contentId" type="xs:string">
<xs:annotation>
<xs:documentation>unique id for content, should include provider name
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="seriesId" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>id for series, not unique</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="seasonNumber" type="xs:long" minOccurs="0">
<xs:annotation>
<xs:documentation>the season number
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="episodeNumber" type="xs:long" minOccurs="0">
<xs:annotation>
<xs:documentation>episode number for the content
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="numberOfEpisodes" type="xs:long"
minOccurs="0">
<xs:annotation>
<xs:documentation>if the content belongs to a serie, this is the
total number of episodes in that serie.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="productionYear" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[1-2][0-9][0-9][0-9]" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="countryOfOriginList" type="countryListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>list of production countries. Use language codes
in IS0 3166-1-alpha-2
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="titleList" type="titleListType">
<xs:annotation>
<xs:documentation>Title list for content. At least one occurrence
with the language used in the market/country displaying the
content.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="genericTitleList" type="genericTitleListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Generic title list for content.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="descriptionList" type="descriptionListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>List of descriptions
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="sport" type="sportType" minOccurs="0">
<xs:annotation>
<xs:documentation>For content describing sport material
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="genreList" type="genreListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Genre, the content belongs to. Check with the
partners about valid genres.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dvbGenre" type="dvbGenreType" minOccurs="0">
<xs:annotation>
<xs:documentation>dvb genres, two numbers between 0-15
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="keywordList" type="keywordListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>list of keywords for the content, should be
single words, and consistent within each provider
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="creditList" type="creditListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>list of actors, producers etc. should be
consistent within each provider
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ratingList" type="ratingListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>list of content rating
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="imageList" type="imageListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>list of content related images
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="mediaReferenceList" type="mediaReferenceListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>list of media references
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="categoryList" type="categoryListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>Category path expression</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="regionalContent" type="xs:boolean"
minOccurs="0">
<xs:annotation>
<xs:documentation>true indicates regional content
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="parentalRating" minOccurs="0">
<xs:annotation>
<xs:documentation>Parental rating 0-18y</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:long">
<xs:minInclusive value="0" />
<xs:maxInclusive value="18" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="externalReferenceList" type="externalReferenceListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>List of externalReference
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="customPropertyList" type="customPropertyListType" minOccurs="0">
<xs:annotation>
<xs:documentation>List of custom properties
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="timestamp" type="xs:dateTime" use="required">
<xs:annotation>
<xs:documentation>Timestamp when document is created
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="titleListType">
<xs:sequence>
<xs:element name="title" type="originalTitleType"
maxOccurs="unbounded" />
<xs:element name="titleId" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="genericTitleListType">
<xs:sequence>
<xs:element name="title" type="genericTitleType" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="genericTitleType">
<xs:simpleContent>
<xs:extension base="simpleTitleType">
<xs:attribute name="type" type="contextType" default="content"></xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="descriptionListType">
<xs:sequence>
<xs:element name="description" type="descriptionType"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="keywordListType">
<xs:sequence>
<xs:element name="keyword" type="keywordType" minOccurs="0"
maxOccurs="50" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="keywordType">
<xs:simpleContent>
<xs:extension base="textType">
<xs:attribute name="priority" type="xs:long">
<xs:annotation>
<xs:documentation>lower priority number means higher importance
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="genreListType">
<xs:sequence>
<xs:element name="genre" type="genreType" minOccurs="1"
maxOccurs="50" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="genreType">
<xs:sequence>
<xs:element name="mainGenre" type="xs:string" minOccurs="1"/>
<xs:element name="subGenreList" type="subGenreListType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="priority" type="xs:long">
<xs:annotation>
<xs:documentation>lower priority number means higher importance
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="language" type="xs:language">
<xs:annotation>
<xs:documentation>code in ISO 639-2</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="contextType" />
</xs:complexType>
<xs:complexType name="subGenreListType">
<xs:sequence>
<xs:element name="subGenre" type="subGenreType" minOccurs="1"
maxOccurs="50"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="subGenreType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="priority" type="xs:long">
<xs:annotation>
<xs:documentation>lower priority number means higher importance
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="simpleTitleType">
<xs:simpleContent>
<xs:restriction base="simpleTextType">
<xs:maxLength value="100" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="titleType">
<xs:simpleContent>
<xs:restriction base="textType">
<xs:maxLength value="300" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="originalTitleType">
<xs:simpleContent>
<xs:extension base="titleType">
<xs:attribute name="original" type="xs:boolean">
<xs:annotation>
<xs:documentation>Marks a title as the original title
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="descriptionType">
<xs:simpleContent>
<xs:extension base="descriptionTextType">
<xs:attribute name="length" type="descriptionLengthType"
use="optional">
<xs:annotation>
<xs:documentation>Description / synopsis of program
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="descriptionTextType">
<xs:simpleContent>
<xs:restriction base="textType">
<xs:maxLength value="3000" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="textType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="language" type="xs:language">
<xs:annotation>
<xs:documentation>code in ISO 639-2</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="contextType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="descriptionLengthType">
<xs:annotation>
<xs:documentation>length (and content) of the description
e.g, tiny
may be 1-25 characters, short 26-140, medium 141-240, long
241-999,
extended > 1000
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="tiny" />
<xs:enumeration value="short" />
<xs:enumeration value="medium" />
<xs:enumeration value="long" />
<xs:enumeration value="extended" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="contextType">
<xs:annotation>
<xs:documentation>type of entity the metadata is refered to, content if
it is the content entity itself, series or season if the metadata
refers to series or season
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="content" />
<xs:enumeration value="series" />
<xs:enumeration value="season" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="countryListType">
<xs:sequence>
<xs:element name="country" type="xs:string" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>code in ISO 3166-1-alpha-2</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="dvbGenreType">
<xs:sequence>
<xs:element name="nibble1" type="dvbGenreNibbleType" nillable="true" minOccurs="1"/>
<xs:element name="nibble2" type="dvbGenreNibbleType" nillable="true" minOccurs="1"/>
<xs:element name="userByte" type="userByteType" nillable="true" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="dvbGenreNibbleType">
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="15" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="userByteType">
<xs:restriction base="xs:int">
<xs:minInclusive value="0" />
<xs:maxInclusive value="9999" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ratingListType">
<xs:sequence>
<xs:element name="rating" type="ratingType" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="ratingType">
<xs:sequence>
<xs:element name="value" type="xs:float" minOccurs="1" nillable="true"/>
<xs:element name="source" type="xs:string" minOccurs="1"/>
</xs:sequence>
<xs:attribute name="type" type="contextType" default="content"></xs:attribute>
</xs:complexType>
<xs:complexType name="creditListType">
<xs:sequence>
<xs:element name="credit" type="creditType" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="creditType">
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="rolename" type="xs:string" minOccurs="0" />
<xs:element name="function">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="director" />
<xs:enumeration value="actor" />
<xs:enumeration value="guest" />
<xs:enumeration value="host" />
<xs:enumeration value="artist" />
<xs:enumeration value="narrator" />
<xs:enumeration value="commentator" />
<xs:enumeration value="other" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
<xs:attribute name="type" type="contextType" default="content"></xs:attribute>
</xs:complexType>
<xs:complexType name="imageRefType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="orientation">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="landscape" />
<xs:enumeration value="portrait" />
<xs:enumeration value="square" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="width">
<xs:simpleType>
<xs:restriction base="xs:int">
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="height">
<xs:simpleType>
<xs:restriction base="xs:int">
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="unit">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="px"></xs:enumeration>
<xs:enumeration value="cm"></xs:enumeration>
<xs:enumeration value="mm"></xs:enumeration>
<xs:enumeration value="in"></xs:enumeration>
<xs:enumeration value="pt"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="priority" type="xs:long">
<xs:annotation>
<xs:documentation>lower priority number means higher importance
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="purpose">
<xs:simpleType>
<xs:annotation>
<xs:documentation>Specification of what type of image
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="poster"></xs:enumeration>
<xs:enumeration value="promotion"></xs:enumeration>
<xs:enumeration value="press"></xs:enumeration>
<xs:enumeration value="logo"></xs:enumeration>
<xs:enumeration value="sportsCategory"></xs:enumeration>
<xs:enumeration value="sportsLeague"></xs:enumeration>
<xs:enumeration value="sportsHomeTeam"></xs:enumeration>
<xs:enumeration value="sportsAwayTeam"></xs:enumeration>
<xs:enumeration value="sportsStadium"></xs:enumeration>
<xs:enumeration value="other"></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="language" type="xs:language">
<xs:annotation>
<xs:documentation>code in ISO 639-2</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="checkSumType" type="checkSumTypeType" />
<xs:attribute name="checkSumValue" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="imageType">
<xs:sequence>
<xs:element name="imageRef" type="imageRefType" />
<xs:element name="captionList" type="captionListType"
minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Text describing the image (what the image symbolizes)
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="copyRightList" type="copyRightsListType"
minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Information of copy rights belonging to the image
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="type" type="contextType" default="content"></xs:attribute>
</xs:complexType>
<xs:complexType name="imageListType">
<xs:sequence>
<xs:element name="image" type="imageType" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="captionListType">
<xs:sequence>
<xs:element name="caption" type="langType" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="copyRightsListType">
<xs:sequence>
<xs:element name="copyRight" type="langType" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="langType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="language" type="xs:language">
<xs:annotation>
<xs:documentation>code in ISO 639-2</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="mediaReferenceListType">
<xs:sequence>
<xs:element name="reference" type="mediaReferenceType"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="mediaReferenceType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="contextType">
</xs:attribute>
<xs:attribute name="priority" type="xs:int">
<xs:annotation>
<xs:documentation>lower priority number means higher importance
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="categoryListType">
<xs:sequence>
<xs:element name="category" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="treeNode" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>element in a category tree</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="order" type="xs:long">
<xs:annotation>
<xs:documentation>position in category tree
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="language" type="xs:language">
<xs:annotation>
<xs:documentation>code in ISO 639-2</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="priority" type="xs:long">
<xs:annotation>
<xs:documentation>importance of category, lower priority number
means higher importance
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="pattern" type="xs:string">
<xs:annotation>
<xs:documentation>pattern name, describes type of tree.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sportType">
<xs:sequence>
<xs:element name="sportsCategory" type="sportsCategoryType"
minOccurs="0" />
<xs:element name="leagueOrCompetitionList" type="leagueOrCompetitionListType"
minOccurs="0" />
<xs:element name="roundOrEpisodeList" type="roundOrEpisodeListType"
minOccurs="0" />
<xs:element name="homeTeamList" type="teamListType" minOccurs="0" />
<xs:element name="awayTeamList" type="teamListType" minOccurs="0" />
<xs:element name="venueList" type="venueListType" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="sportsCategoryType">
<xs:simpleContent>
<xs:restriction base="simpleTextType">
<xs:maxLength value="40" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="leagueOrCompetitionListType">
<xs:sequence>
<xs:element name="leagueOrCompetition" type="leagueOrCompetitionType"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="leagueOrCompetitionType">
<xs:simpleContent>
<xs:restriction base="simpleTextType">
<xs:maxLength value="40" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="roundOrEpisodeListType">
<xs:sequence>
<xs:element name="roundOrEpisode" type="roundOrEpisodeType"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="roundOrEpisodeType">
<xs:simpleContent>
<xs:restriction base="simpleTextType">
<xs:maxLength value="40" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="teamListType">
<xs:sequence>
<xs:element name="team" type="teamType" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="teamType">
<xs:simpleContent>
<xs:restriction base="simpleTextType">
<xs:maxLength value="40" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="venueListType">
<xs:sequence>
<xs:element name="venue" type="venueType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="venueType">
<xs:sequence>
<xs:element name="country" type="countryType" minOccurs="0" />
<xs:element name="city" type="cityType" minOccurs="0" />
<xs:element name="stadium" type="stadiumType" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="countryType">
<xs:sequence>
<xs:element name="name" type="nameType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="cityType">
<xs:sequence>
<xs:element name="name" type="nameType" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="stadiumType">
<xs:sequence>
<xs:element name="name" type="nameType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="nameType">
<xs:simpleContent>
<xs:restriction base="simpleTextType">
<xs:maxLength value="40" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="simpleTextType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="language" type="xs:language">
<xs:annotation>
<xs:documentation>code in ISO 639-2</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="contentListType">
<xs:sequence>
<xs:element name="content" type="contentType" minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>content for this event, optional. if not set
contentIdRef must be set
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="externalReferenceListType">
<xs:sequence>
<xs:element name="externalReference" type="externalReferenceType"
minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>list of external resources that can used to
connect/boost the content data with.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="externalReferenceType">
<xs:sequence>
<xs:element name="provider" type="xs:string" minOccurs="1"
maxOccurs="1">
<xs:annotation>
<xs:documentation>Who is the provider for the extend data that can
be used for this content. For example score24.com or
IMDB.com
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="id" type="xs:string" minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:documentation>Data identifier to map this content to in the
external provider/partners data
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="uri" type="xs:string" minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:documentation>Resource to use to reach the data at the
provider
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="type" type="contextType" />
</xs:complexType>
<xs:complexType name="checkSumType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="checkSumTypeType"></xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="checkSumTypeType">
<xs:annotation>
<xs:documentation>Different type of checksums
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="md5sum" />
<xs:enumeration value="sha1" />
<xs:enumeration value="other" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="customPropertyListType">
<xs:sequence>
<xs:element name="customProperty" type="customPropertyType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
custom properties, defined as sets of key-value pairs
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="customPropertyType">
<xs:sequence>
<xs:element name="propertyValue" type="propertyValueType" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="key" type="xs:string" use="required"></xs:attribute>
</xs:complexType>
<xs:complexType name="propertyValueType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="language" type="xs:language">
<xs:annotation>
<xs:documentation>code in ISO 639-2</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="order" type="xs:int">
<xs:annotation>
<xs:documentation>
unique order where are there are a number of values for the same key, 0 is the first one (highest priority)
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="contextType" default="content">
<xs:annotation>
<xs:documentation>
different values for key depending on series/season/content level
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>