sitemap_generator_ftbpro 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +35 -0
- data/MIT-LICENSE +20 -0
- data/README.md +1139 -0
- data/Rakefile +43 -0
- data/VERSION +1 -0
- data/lib/capistrano/sitemap_generator.rb +1 -0
- data/lib/capistrano/tasks/sitemap_generator.cap +36 -0
- data/lib/sitemap_generator/adapters/file_adapter.rb +43 -0
- data/lib/sitemap_generator/adapters/fog_adapter.rb +28 -0
- data/lib/sitemap_generator/adapters/s3_adapter.rb +41 -0
- data/lib/sitemap_generator/adapters/wave_adapter.rb +21 -0
- data/lib/sitemap_generator/adapters.rb +0 -0
- data/lib/sitemap_generator/application.rb +49 -0
- data/lib/sitemap_generator/builder/sitemap_file.rb +171 -0
- data/lib/sitemap_generator/builder/sitemap_index_file.rb +149 -0
- data/lib/sitemap_generator/builder/sitemap_index_url.rb +28 -0
- data/lib/sitemap_generator/builder/sitemap_url.rb +250 -0
- data/lib/sitemap_generator/builder.rb +8 -0
- data/lib/sitemap_generator/core_ext/big_decimal.rb +45 -0
- data/lib/sitemap_generator/core_ext/numeric.rb +48 -0
- data/lib/sitemap_generator/core_ext.rb +3 -0
- data/lib/sitemap_generator/helpers/number_helper.rb +237 -0
- data/lib/sitemap_generator/interpreter.rb +80 -0
- data/lib/sitemap_generator/link_set.rb +665 -0
- data/lib/sitemap_generator/railtie.rb +7 -0
- data/lib/sitemap_generator/sitemap_location.rb +192 -0
- data/lib/sitemap_generator/sitemap_namer.rb +75 -0
- data/lib/sitemap_generator/tasks.rb +53 -0
- data/lib/sitemap_generator/templates.rb +41 -0
- data/lib/sitemap_generator/utilities.rb +181 -0
- data/lib/sitemap_generator.rb +82 -0
- data/lib/tasks/sitemap_generator_tasks.rake +1 -0
- data/rails/install.rb +2 -0
- data/rails/uninstall.rb +2 -0
- data/spec/blueprint.rb +15 -0
- data/spec/files/sitemap.create.rb +12 -0
- data/spec/files/sitemap.groups.rb +49 -0
- data/spec/sitemap_generator/adapters/s3_adapter_spec.rb +23 -0
- data/spec/sitemap_generator/alternate_sitemap_spec.rb +79 -0
- data/spec/sitemap_generator/application_spec.rb +69 -0
- data/spec/sitemap_generator/builder/sitemap_file_spec.rb +110 -0
- data/spec/sitemap_generator/builder/sitemap_index_file_spec.rb +124 -0
- data/spec/sitemap_generator/builder/sitemap_index_url_spec.rb +28 -0
- data/spec/sitemap_generator/builder/sitemap_url_spec.rb +186 -0
- data/spec/sitemap_generator/core_ext/bigdecimal_spec.rb +20 -0
- data/spec/sitemap_generator/core_ext/numeric_spec.rb +43 -0
- data/spec/sitemap_generator/file_adaptor_spec.rb +20 -0
- data/spec/sitemap_generator/geo_sitemap_spec.rb +30 -0
- data/spec/sitemap_generator/helpers/number_helper_spec.rb +196 -0
- data/spec/sitemap_generator/interpreter_spec.rb +90 -0
- data/spec/sitemap_generator/link_set_spec.rb +864 -0
- data/spec/sitemap_generator/mobile_sitemap_spec.rb +27 -0
- data/spec/sitemap_generator/news_sitemap_spec.rb +42 -0
- data/spec/sitemap_generator/pagemap_sitemap_spec.rb +57 -0
- data/spec/sitemap_generator/sitemap_generator_spec.rb +582 -0
- data/spec/sitemap_generator/sitemap_groups_spec.rb +144 -0
- data/spec/sitemap_generator/sitemap_location_spec.rb +210 -0
- data/spec/sitemap_generator/sitemap_namer_spec.rb +96 -0
- data/spec/sitemap_generator/templates_spec.rb +24 -0
- data/spec/sitemap_generator/utilities/existence_spec.rb +26 -0
- data/spec/sitemap_generator/utilities/hash_spec.rb +57 -0
- data/spec/sitemap_generator/utilities/rounding_spec.rb +31 -0
- data/spec/sitemap_generator/utilities_spec.rb +101 -0
- data/spec/sitemap_generator/video_sitemap_spec.rb +117 -0
- data/spec/spec_helper.rb +24 -0
- data/spec/support/file_macros.rb +39 -0
- data/spec/support/schemas/siteindex.xsd +73 -0
- data/spec/support/schemas/sitemap-geo.xsd +41 -0
- data/spec/support/schemas/sitemap-mobile.xsd +32 -0
- data/spec/support/schemas/sitemap-news.xsd +159 -0
- data/spec/support/schemas/sitemap-pagemap.xsd +97 -0
- data/spec/support/schemas/sitemap-video.xsd +643 -0
- data/spec/support/schemas/sitemap.xsd +115 -0
- data/spec/support/xml_macros.rb +67 -0
- data/templates/sitemap.rb +27 -0
- metadata +226 -0
@@ -0,0 +1,643 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsd:schema
|
3
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
4
|
+
targetNamespace="http://www.google.com/schemas/sitemap-video/1.1"
|
5
|
+
xmlns="http://www.google.com/schemas/sitemap-video/1.1"
|
6
|
+
elementFormDefault="qualified">
|
7
|
+
|
8
|
+
<xsd:annotation>
|
9
|
+
<xsd:documentation>
|
10
|
+
XML Schema for the Video Sitemap extension. This schema defines the
|
11
|
+
Video-specific elements only; the core Sitemap elements are defined
|
12
|
+
separately.
|
13
|
+
|
14
|
+
Help Center documentation for the Video Sitemap extension:
|
15
|
+
|
16
|
+
http://www.google.com/support/webmasters/bin/topic.py?topic=10079
|
17
|
+
|
18
|
+
Copyright 2010 Google Inc. All Rights Reserved.
|
19
|
+
</xsd:documentation>
|
20
|
+
</xsd:annotation>
|
21
|
+
|
22
|
+
<xsd:simpleType name="tYesNo">
|
23
|
+
<xsd:annotation>
|
24
|
+
<xsd:documentation>
|
25
|
+
A value that can be yes or no. Permitted cases are all-lowercase (yes/no),
|
26
|
+
all-uppercase (YES/NO) or starting with capital (Yes/No).
|
27
|
+
</xsd:documentation>
|
28
|
+
</xsd:annotation>
|
29
|
+
<xsd:restriction base="xsd:string">
|
30
|
+
<xsd:enumeration value="yes"/>
|
31
|
+
<xsd:enumeration value="Yes"/>
|
32
|
+
<xsd:enumeration value="YES"/>
|
33
|
+
<xsd:enumeration value="no"/>
|
34
|
+
<xsd:enumeration value="No"/>
|
35
|
+
<xsd:enumeration value="NO"/>
|
36
|
+
</xsd:restriction>
|
37
|
+
</xsd:simpleType>
|
38
|
+
|
39
|
+
<xsd:simpleType name="tCountryList">
|
40
|
+
<xsd:annotation>
|
41
|
+
<xsd:documentation>
|
42
|
+
Space-separated country codes in ISO 3166 format.
|
43
|
+
|
44
|
+
Country codes:
|
45
|
+
http://www.iso.org/iso/english_country_names_and_code_elements
|
46
|
+
</xsd:documentation>
|
47
|
+
</xsd:annotation>
|
48
|
+
<xsd:restriction base="xsd:string">
|
49
|
+
<xsd:pattern value="([A-Z]{2}( +[A-Z]{2})*)?"/>
|
50
|
+
</xsd:restriction>
|
51
|
+
</xsd:simpleType>
|
52
|
+
|
53
|
+
<xsd:simpleType name="tPlatformList">
|
54
|
+
<xsd:annotation>
|
55
|
+
<xsd:documentation>
|
56
|
+
Space-separated platform names.
|
57
|
+
|
58
|
+
Platform names:
|
59
|
+
web - desktop and laptop browsers.
|
60
|
+
mobile - mobile devices such as phones and tablets.
|
61
|
+
tv - tv platforms such as GoogleTV.
|
62
|
+
</xsd:documentation>
|
63
|
+
</xsd:annotation>
|
64
|
+
<xsd:restriction base="xsd:string">
|
65
|
+
<xsd:pattern value="((web|mobile|tv)( (web|mobile|tv))*)?"/>
|
66
|
+
</xsd:restriction>
|
67
|
+
</xsd:simpleType>
|
68
|
+
|
69
|
+
<xsd:element name="video">
|
70
|
+
<xsd:complexType>
|
71
|
+
<xsd:sequence>
|
72
|
+
<xsd:element name="thumbnail_loc" type="xsd:anyURI">
|
73
|
+
<xsd:annotation>
|
74
|
+
<xsd:documentation>
|
75
|
+
A URL pointing to the URL for the video thumbnail image file. We can
|
76
|
+
accept most image sizes/types but recommend your thumbnails are at
|
77
|
+
least 120x90 pixels in .jpg, .png, or. gif formats.
|
78
|
+
</xsd:documentation>
|
79
|
+
</xsd:annotation>
|
80
|
+
</xsd:element>
|
81
|
+
|
82
|
+
<xsd:element name="title">
|
83
|
+
<xsd:annotation>
|
84
|
+
<xsd:documentation>
|
85
|
+
The title of the video.
|
86
|
+
</xsd:documentation>
|
87
|
+
</xsd:annotation>
|
88
|
+
<xsd:simpleType>
|
89
|
+
<xsd:restriction base="xsd:string">
|
90
|
+
<xsd:maxLength value="100"/>
|
91
|
+
</xsd:restriction>
|
92
|
+
</xsd:simpleType>
|
93
|
+
</xsd:element>
|
94
|
+
|
95
|
+
<xsd:element name="description">
|
96
|
+
<xsd:annotation>
|
97
|
+
<xsd:documentation>
|
98
|
+
The description of the video.
|
99
|
+
</xsd:documentation>
|
100
|
+
</xsd:annotation>
|
101
|
+
<xsd:simpleType>
|
102
|
+
<xsd:restriction base="xsd:string">
|
103
|
+
<xsd:maxLength value="2048"/>
|
104
|
+
</xsd:restriction>
|
105
|
+
</xsd:simpleType>
|
106
|
+
</xsd:element>
|
107
|
+
|
108
|
+
<xsd:element name="content_loc" minOccurs="0" type="xsd:anyURI">
|
109
|
+
<xsd:annotation>
|
110
|
+
<xsd:documentation>
|
111
|
+
At least one of <video:player_loc> and
|
112
|
+
<video:content_loc> is required.
|
113
|
+
|
114
|
+
This should be a .mpg, .mpeg, .mp4, .m4v, .mov, .wmv, .asf, .avi,
|
115
|
+
.ra, .ram, .rm, .flv, or other video file format, and can be omitted
|
116
|
+
if <video:player_loc> is specified. However, because Google
|
117
|
+
needs to be able to check that the Flash object is actually a player
|
118
|
+
for video (as opposed to some other use of Flash, e.g. games and
|
119
|
+
animations), it's helpful to provide both.
|
120
|
+
</xsd:documentation>
|
121
|
+
</xsd:annotation>
|
122
|
+
</xsd:element>
|
123
|
+
|
124
|
+
<xsd:element name="player_loc" minOccurs="0">
|
125
|
+
<xsd:annotation>
|
126
|
+
<xsd:documentation>
|
127
|
+
At least one of <video:player_loc> and
|
128
|
+
<video:content_loc> is required.
|
129
|
+
|
130
|
+
A URL pointing to a Flash player for a specific video. In general,
|
131
|
+
this is the information in the src element of an <embed> tag
|
132
|
+
and should not be the same as the content of the <loc> tag.
|
133
|
+
Since each video is uniquely identified by its content URL (the
|
134
|
+
location of the actual video file) or, if a content URL is not
|
135
|
+
present, a player URL (a URL pointing to a player for the video),
|
136
|
+
you must include either the <video:player_loc> or
|
137
|
+
<video:content_loc> tags. If these tags are omitted and we
|
138
|
+
can't find this information, we'll be unable to index your video.
|
139
|
+
</xsd:documentation>
|
140
|
+
</xsd:annotation>
|
141
|
+
<xsd:complexType>
|
142
|
+
<xsd:simpleContent>
|
143
|
+
<xsd:extension base="xsd:anyURI">
|
144
|
+
<xsd:attribute name="allow_embed" type="tYesNo">
|
145
|
+
<xsd:annotation>
|
146
|
+
<xsd:documentation>
|
147
|
+
Attribute allow_embed specifies whether Google can embed the
|
148
|
+
video in search results. Allowed values are "Yes" or "No".
|
149
|
+
The default value is "Yes".
|
150
|
+
</xsd:documentation>
|
151
|
+
</xsd:annotation>
|
152
|
+
</xsd:attribute>
|
153
|
+
<xsd:attribute name="autoplay" type="xsd:string">
|
154
|
+
<xsd:annotation>
|
155
|
+
<xsd:documentation>
|
156
|
+
User-defined string that Google may append (if appropriate)
|
157
|
+
to the flashvars parameter to enable autoplay of the video.
|
158
|
+
</xsd:documentation>
|
159
|
+
</xsd:annotation>
|
160
|
+
</xsd:attribute>
|
161
|
+
</xsd:extension>
|
162
|
+
</xsd:simpleContent>
|
163
|
+
</xsd:complexType>
|
164
|
+
</xsd:element>
|
165
|
+
|
166
|
+
<xsd:element name="duration" minOccurs="0">
|
167
|
+
<xsd:annotation>
|
168
|
+
<xsd:documentation>
|
169
|
+
The duration of the video in seconds.
|
170
|
+
</xsd:documentation>
|
171
|
+
</xsd:annotation>
|
172
|
+
<xsd:simpleType>
|
173
|
+
<xsd:restriction base="xsd:nonNegativeInteger">
|
174
|
+
<xsd:maxInclusive value="28800"/>
|
175
|
+
</xsd:restriction>
|
176
|
+
</xsd:simpleType>
|
177
|
+
</xsd:element>
|
178
|
+
|
179
|
+
<xsd:element name="expiration_date" minOccurs="0">
|
180
|
+
<xsd:annotation>
|
181
|
+
<xsd:documentation>
|
182
|
+
The date after which the video will no longer be available, in
|
183
|
+
W3C format. Acceptable values are complete date (YYYY-MM-DD) and
|
184
|
+
complete date plus hours, minutes and seconds, and timezone
|
185
|
+
(YYYY-MM-DDThh:mm:ss+TZD). For example, 2007-07-16T19:20:30+08:00.
|
186
|
+
Don't supply this information if your video does not expire.
|
187
|
+
</xsd:documentation>
|
188
|
+
</xsd:annotation>
|
189
|
+
<xsd:simpleType>
|
190
|
+
<xsd:union>
|
191
|
+
<xsd:simpleType>
|
192
|
+
<xsd:restriction base="xsd:date"/>
|
193
|
+
</xsd:simpleType>
|
194
|
+
<xsd:simpleType>
|
195
|
+
<xsd:restriction base="xsd:dateTime"/>
|
196
|
+
</xsd:simpleType>
|
197
|
+
</xsd:union>
|
198
|
+
</xsd:simpleType>
|
199
|
+
</xsd:element>
|
200
|
+
|
201
|
+
<xsd:element name="rating" minOccurs="0">
|
202
|
+
<xsd:annotation>
|
203
|
+
<xsd:documentation>
|
204
|
+
The rating of the video.
|
205
|
+
</xsd:documentation>
|
206
|
+
</xsd:annotation>
|
207
|
+
<xsd:simpleType>
|
208
|
+
<xsd:restriction base="xsd:decimal">
|
209
|
+
<xsd:minInclusive value="0"/>
|
210
|
+
<xsd:maxInclusive value="5"/>
|
211
|
+
</xsd:restriction>
|
212
|
+
</xsd:simpleType>
|
213
|
+
</xsd:element>
|
214
|
+
|
215
|
+
<xsd:element name="content_segment_loc"
|
216
|
+
minOccurs="0"
|
217
|
+
maxOccurs="unbounded">
|
218
|
+
<xsd:annotation>
|
219
|
+
<xsd:documentation>
|
220
|
+
Use <video:content_segment_loc> only in conjunction with
|
221
|
+
<video:player_loc>.
|
222
|
+
|
223
|
+
If you publish your video as a series of raw videos (for example, if
|
224
|
+
you submit a full movie as a continuous series of shorter clips),
|
225
|
+
you can use the <video:content_segment_loc> to supply us with
|
226
|
+
a series of URLs, in the order in which they should be concatenated
|
227
|
+
to recreate the video in its entirety. Each URL should point to a
|
228
|
+
.mpg, .mpeg, .mp4, .m4v, .mov, .wmv, .asf, .avi, .ra, .ram, .rm,
|
229
|
+
.flv, or other video file format. It should not point to any Flash
|
230
|
+
content.
|
231
|
+
</xsd:documentation>
|
232
|
+
</xsd:annotation>
|
233
|
+
<xsd:complexType>
|
234
|
+
<xsd:simpleContent>
|
235
|
+
<xsd:extension base="xsd:anyURI">
|
236
|
+
<xsd:attribute name="duration">
|
237
|
+
<xsd:annotation>
|
238
|
+
<xsd:documentation>
|
239
|
+
The duration of the clip in seconds.
|
240
|
+
</xsd:documentation>
|
241
|
+
</xsd:annotation>
|
242
|
+
<xsd:simpleType>
|
243
|
+
<xsd:restriction base="xsd:nonNegativeInteger">
|
244
|
+
<xsd:maxInclusive value="28800"/>
|
245
|
+
</xsd:restriction>
|
246
|
+
</xsd:simpleType>
|
247
|
+
</xsd:attribute>
|
248
|
+
</xsd:extension>
|
249
|
+
</xsd:simpleContent>
|
250
|
+
</xsd:complexType>
|
251
|
+
</xsd:element>
|
252
|
+
|
253
|
+
<xsd:element name="view_count"
|
254
|
+
minOccurs="0"
|
255
|
+
type="xsd:nonNegativeInteger">
|
256
|
+
<xsd:annotation>
|
257
|
+
<xsd:documentation>
|
258
|
+
The number of times the video has been viewed.
|
259
|
+
</xsd:documentation>
|
260
|
+
</xsd:annotation>
|
261
|
+
</xsd:element>
|
262
|
+
|
263
|
+
<xsd:element name="publication_date" minOccurs="0">
|
264
|
+
<xsd:annotation>
|
265
|
+
<xsd:documentation>
|
266
|
+
The date the video was first published, in W3C format. Acceptable
|
267
|
+
values are complete date (YYYY-MM-DD) and complete date plus hours,
|
268
|
+
minutes and seconds, and timezone (YYYY-MM-DDThh:mm:ss+TZD).
|
269
|
+
For example, 2007-07-16T19:20:30+08:00.
|
270
|
+
</xsd:documentation>
|
271
|
+
</xsd:annotation>
|
272
|
+
<xsd:simpleType>
|
273
|
+
<xsd:union>
|
274
|
+
<xsd:simpleType>
|
275
|
+
<xsd:restriction base="xsd:date"/>
|
276
|
+
</xsd:simpleType>
|
277
|
+
<xsd:simpleType>
|
278
|
+
<xsd:restriction base="xsd:dateTime"/>
|
279
|
+
</xsd:simpleType>
|
280
|
+
</xsd:union>
|
281
|
+
</xsd:simpleType>
|
282
|
+
</xsd:element>
|
283
|
+
|
284
|
+
<xsd:element name="tag" type="xsd:string" minOccurs="0" maxOccurs="32">
|
285
|
+
<xsd:annotation>
|
286
|
+
<xsd:documentation>
|
287
|
+
A tag associated with the video. Tags are generally very short
|
288
|
+
descriptions of key concepts associated with a video or piece of
|
289
|
+
content. A single video could have several tags, although it might
|
290
|
+
belong to only one category. For example, a video about grilling
|
291
|
+
food may belong in the Grilling category, but could be tagged
|
292
|
+
"steak", "meat", "summer", and "outdoor". Create a new
|
293
|
+
<video:tag> element for each tag associated with a video.
|
294
|
+
</xsd:documentation>
|
295
|
+
</xsd:annotation>
|
296
|
+
</xsd:element>
|
297
|
+
|
298
|
+
<xsd:element name="category" minOccurs="0">
|
299
|
+
<xsd:annotation>
|
300
|
+
<xsd:documentation>
|
301
|
+
The video's category - for example, cooking. In general, categories
|
302
|
+
are broad groupings of content by subject. For example, a site about
|
303
|
+
cooking could have categories for Broiling, Baking, and Grilling.
|
304
|
+
</xsd:documentation>
|
305
|
+
</xsd:annotation>
|
306
|
+
<xsd:simpleType>
|
307
|
+
<xsd:restriction base="xsd:string">
|
308
|
+
<xsd:maxLength value="256"/>
|
309
|
+
</xsd:restriction>
|
310
|
+
</xsd:simpleType>
|
311
|
+
</xsd:element>
|
312
|
+
|
313
|
+
<xsd:element name="family_friendly" minOccurs="0" type="tYesNo">
|
314
|
+
<xsd:annotation>
|
315
|
+
<xsd:documentation>
|
316
|
+
Whether the video is suitable for viewing by children. No if the
|
317
|
+
video should be available only to users with SafeSearch turned off.
|
318
|
+
</xsd:documentation>
|
319
|
+
</xsd:annotation>
|
320
|
+
</xsd:element>
|
321
|
+
|
322
|
+
<xsd:element name="restriction" minOccurs="0">
|
323
|
+
<xsd:annotation>
|
324
|
+
<xsd:documentation>
|
325
|
+
A list of countries where the video may or may not be played.
|
326
|
+
If there is no <video:restriction> tag, it is assumed that
|
327
|
+
the video can be played in all territories.
|
328
|
+
</xsd:documentation>
|
329
|
+
</xsd:annotation>
|
330
|
+
<xsd:complexType>
|
331
|
+
<xsd:simpleContent>
|
332
|
+
<xsd:extension base="tCountryList">
|
333
|
+
<xsd:attribute name="relationship" use="required">
|
334
|
+
<xsd:annotation>
|
335
|
+
<xsd:documentation>
|
336
|
+
Attribute "relationship" specifies whether the video is
|
337
|
+
restricted or permitted for the specified countries.
|
338
|
+
</xsd:documentation>
|
339
|
+
</xsd:annotation>
|
340
|
+
<xsd:simpleType>
|
341
|
+
<xsd:restriction base="xsd:string">
|
342
|
+
<xsd:enumeration value="allow"/>
|
343
|
+
<xsd:enumeration value="deny"/>
|
344
|
+
</xsd:restriction>
|
345
|
+
</xsd:simpleType>
|
346
|
+
</xsd:attribute>
|
347
|
+
</xsd:extension>
|
348
|
+
</xsd:simpleContent>
|
349
|
+
</xsd:complexType>
|
350
|
+
</xsd:element>
|
351
|
+
|
352
|
+
<xsd:element name="gallery_loc" minOccurs="0">
|
353
|
+
<xsd:annotation>
|
354
|
+
<xsd:documentation>
|
355
|
+
A link to the gallery (collection of videos) in which this video
|
356
|
+
appears.
|
357
|
+
</xsd:documentation>
|
358
|
+
</xsd:annotation>
|
359
|
+
<xsd:complexType>
|
360
|
+
<xsd:simpleContent>
|
361
|
+
<xsd:extension base="xsd:anyURI">
|
362
|
+
<xsd:attribute name="title" type="xsd:string">
|
363
|
+
<xsd:annotation>
|
364
|
+
<xsd:documentation>
|
365
|
+
The title of the gallery.
|
366
|
+
</xsd:documentation>
|
367
|
+
</xsd:annotation>
|
368
|
+
</xsd:attribute>
|
369
|
+
</xsd:extension>
|
370
|
+
</xsd:simpleContent>
|
371
|
+
</xsd:complexType>
|
372
|
+
</xsd:element>
|
373
|
+
|
374
|
+
<xsd:element name="price" minOccurs="0" maxOccurs="unbounded">
|
375
|
+
<xsd:annotation>
|
376
|
+
<xsd:documentation>
|
377
|
+
The price to download or view the video. More than one
|
378
|
+
<video:price> element can be listed (for example, in order to
|
379
|
+
specify various currencies). The price value must either be a
|
380
|
+
non-negative decimal or be empty. If a price value is specified, the
|
381
|
+
currency attribute is required. If no price value is specified, the
|
382
|
+
type attribute must be valid and present. The resolution attribute
|
383
|
+
is optional.
|
384
|
+
</xsd:documentation>
|
385
|
+
</xsd:annotation>
|
386
|
+
<xsd:complexType>
|
387
|
+
<xsd:simpleContent>
|
388
|
+
<xsd:extension base="xsd:string">
|
389
|
+
<xsd:attribute name="currency">
|
390
|
+
<xsd:annotation>
|
391
|
+
<xsd:documentation>
|
392
|
+
The currency in ISO 4217 format. This attribute is required
|
393
|
+
if a value is given for price.
|
394
|
+
</xsd:documentation>
|
395
|
+
</xsd:annotation>
|
396
|
+
<xsd:simpleType>
|
397
|
+
<xsd:restriction base="xsd:string">
|
398
|
+
<xsd:pattern value="[A-Z]{3}"/>
|
399
|
+
</xsd:restriction>
|
400
|
+
</xsd:simpleType>
|
401
|
+
</xsd:attribute>
|
402
|
+
<xsd:attribute name="type">
|
403
|
+
<xsd:annotation>
|
404
|
+
<xsd:documentation>
|
405
|
+
The type (purchase or rent) of price. This value is required
|
406
|
+
if there is no value given for price.
|
407
|
+
</xsd:documentation>
|
408
|
+
</xsd:annotation>
|
409
|
+
<xsd:simpleType>
|
410
|
+
<xsd:restriction base="xsd:string">
|
411
|
+
<xsd:enumeration value="purchase"/>
|
412
|
+
<xsd:enumeration value="PURCHASE"/>
|
413
|
+
<xsd:enumeration value="rent"/>
|
414
|
+
<xsd:enumeration value="RENT"/>
|
415
|
+
</xsd:restriction>
|
416
|
+
</xsd:simpleType>
|
417
|
+
</xsd:attribute>
|
418
|
+
<xsd:attribute name="resolution">
|
419
|
+
<xsd:annotation>
|
420
|
+
<xsd:documentation>
|
421
|
+
The resolution of the video at this price (SD or HD).
|
422
|
+
</xsd:documentation>
|
423
|
+
</xsd:annotation>
|
424
|
+
<xsd:simpleType>
|
425
|
+
<xsd:restriction base="xsd:string">
|
426
|
+
<xsd:enumeration value="sd"/>
|
427
|
+
<xsd:enumeration value="SD"/>
|
428
|
+
<xsd:enumeration value="hd"/>
|
429
|
+
<xsd:enumeration value="HD"/>
|
430
|
+
</xsd:restriction>
|
431
|
+
</xsd:simpleType>
|
432
|
+
</xsd:attribute>
|
433
|
+
</xsd:extension>
|
434
|
+
</xsd:simpleContent>
|
435
|
+
</xsd:complexType>
|
436
|
+
</xsd:element>
|
437
|
+
|
438
|
+
<xsd:element name="requires_subscription" minOccurs="0" type="tYesNo">
|
439
|
+
<xsd:annotation>
|
440
|
+
<xsd:documentation>
|
441
|
+
Indicates whether a subscription (either paid or free) is required
|
442
|
+
to view the video.
|
443
|
+
</xsd:documentation>
|
444
|
+
</xsd:annotation>
|
445
|
+
</xsd:element>
|
446
|
+
|
447
|
+
<xsd:element name="uploader" minOccurs="0">
|
448
|
+
<xsd:annotation>
|
449
|
+
<xsd:documentation>
|
450
|
+
A name or handle of the video’s uploader.
|
451
|
+
</xsd:documentation>
|
452
|
+
</xsd:annotation>
|
453
|
+
<xsd:complexType>
|
454
|
+
<xsd:simpleContent>
|
455
|
+
<xsd:extension base="xsd:string">
|
456
|
+
<xsd:attribute name="info" type="xsd:anyURI">
|
457
|
+
<xsd:annotation>
|
458
|
+
<xsd:documentation>
|
459
|
+
The URL of a webpage with additional information about this
|
460
|
+
uploader. This URL must be on the same domain as the
|
461
|
+
<loc> tag.
|
462
|
+
</xsd:documentation>
|
463
|
+
</xsd:annotation>
|
464
|
+
</xsd:attribute>
|
465
|
+
</xsd:extension>
|
466
|
+
</xsd:simpleContent>
|
467
|
+
</xsd:complexType>
|
468
|
+
</xsd:element>
|
469
|
+
|
470
|
+
<xsd:element name="tvshow" minOccurs="0">
|
471
|
+
<xsd:annotation>
|
472
|
+
<xsd:documentation>
|
473
|
+
Encloses all information about a single TV video.
|
474
|
+
</xsd:documentation>
|
475
|
+
</xsd:annotation>
|
476
|
+
<xsd:complexType>
|
477
|
+
<xsd:sequence>
|
478
|
+
<xsd:element name="show_title" type="xsd:string">
|
479
|
+
<xsd:annotation>
|
480
|
+
<xsd:documentation>
|
481
|
+
The title of the TV show. This should be the same for all
|
482
|
+
episodes from the same series.
|
483
|
+
</xsd:documentation>
|
484
|
+
</xsd:annotation>
|
485
|
+
</xsd:element>
|
486
|
+
<xsd:element name="video_type">
|
487
|
+
<xsd:annotation>
|
488
|
+
<xsd:documentation>
|
489
|
+
Describes the relationship of the video to the specified
|
490
|
+
TV show/episode.
|
491
|
+
</xsd:documentation>
|
492
|
+
</xsd:annotation>
|
493
|
+
<xsd:simpleType>
|
494
|
+
<xsd:restriction base="xsd:string">
|
495
|
+
<!-- Complete episode -->
|
496
|
+
<xsd:enumeration value="full"/>
|
497
|
+
<!-- Episode promo -->
|
498
|
+
<xsd:enumeration value="preview"/>
|
499
|
+
<!-- Episode clip -->
|
500
|
+
<xsd:enumeration value="clip"/>
|
501
|
+
<!-- Interview -->
|
502
|
+
<xsd:enumeration value="interview"/>
|
503
|
+
<!-- News related to the content -->
|
504
|
+
<xsd:enumeration value="news"/>
|
505
|
+
<!-- If none of the above options accurately describe
|
506
|
+
the relationship -->
|
507
|
+
<xsd:enumeration value="other"/>
|
508
|
+
</xsd:restriction>
|
509
|
+
</xsd:simpleType>
|
510
|
+
</xsd:element>
|
511
|
+
<xsd:element name="episode_title" type="xsd:string" minOccurs="0">
|
512
|
+
<xsd:annotation>
|
513
|
+
<xsd:documentation>
|
514
|
+
The title of the episode—for example, "Flesh and Bone" is the
|
515
|
+
title of the Season 1, Episode 8 episode of Battlestar
|
516
|
+
Galactica. This tag is not necessary if the video is not
|
517
|
+
related to a specific episode (for example, if it's a trailer
|
518
|
+
for an entire series or season).
|
519
|
+
</xsd:documentation>
|
520
|
+
</xsd:annotation>
|
521
|
+
</xsd:element>
|
522
|
+
<xsd:element name="season_number" minOccurs="0">
|
523
|
+
<xsd:annotation>
|
524
|
+
<xsd:documentation>
|
525
|
+
Only for shows with a per-season schedule.
|
526
|
+
</xsd:documentation>
|
527
|
+
</xsd:annotation>
|
528
|
+
<xsd:simpleType>
|
529
|
+
<xsd:restriction base="xsd:integer">
|
530
|
+
<xsd:minInclusive value="1"/>
|
531
|
+
</xsd:restriction>
|
532
|
+
</xsd:simpleType>
|
533
|
+
</xsd:element>
|
534
|
+
<xsd:element name="episode_number" minOccurs="0">
|
535
|
+
<xsd:annotation>
|
536
|
+
<xsd:documentation>
|
537
|
+
The episode number in number format. For TV shoes with a
|
538
|
+
per-season schedule, the first episode of each series should
|
539
|
+
be numbered 1.
|
540
|
+
</xsd:documentation>
|
541
|
+
</xsd:annotation>
|
542
|
+
<xsd:simpleType>
|
543
|
+
<xsd:restriction base="xsd:integer">
|
544
|
+
<xsd:minInclusive value="1"/>
|
545
|
+
</xsd:restriction>
|
546
|
+
</xsd:simpleType>
|
547
|
+
</xsd:element>
|
548
|
+
<xsd:element name="premier_date" minOccurs="0">
|
549
|
+
<xsd:annotation>
|
550
|
+
<xsd:documentation>
|
551
|
+
The date the content of the video was first broadcast, in
|
552
|
+
W3C format (for example, 2010-11-05.)
|
553
|
+
</xsd:documentation>
|
554
|
+
</xsd:annotation>
|
555
|
+
<xsd:simpleType>
|
556
|
+
<xsd:union>
|
557
|
+
<xsd:simpleType>
|
558
|
+
<xsd:restriction base="xsd:date"/>
|
559
|
+
</xsd:simpleType>
|
560
|
+
<xsd:simpleType>
|
561
|
+
<xsd:restriction base="xsd:dateTime"/>
|
562
|
+
</xsd:simpleType>
|
563
|
+
</xsd:union>
|
564
|
+
</xsd:simpleType>
|
565
|
+
</xsd:element>
|
566
|
+
</xsd:sequence>
|
567
|
+
</xsd:complexType>
|
568
|
+
</xsd:element>
|
569
|
+
|
570
|
+
<xsd:element name="platform" minOccurs="0">
|
571
|
+
<xsd:annotation>
|
572
|
+
<xsd:documentation>
|
573
|
+
A list of platforms where the video may or may not be played.
|
574
|
+
If there is no <video:platform> tag, it is assumed that
|
575
|
+
the video can be played on all platforms.
|
576
|
+
</xsd:documentation>
|
577
|
+
</xsd:annotation>
|
578
|
+
<xsd:complexType>
|
579
|
+
<xsd:simpleContent>
|
580
|
+
<xsd:extension base="tPlatformList">
|
581
|
+
<xsd:attribute name="relationship" use="required">
|
582
|
+
<xsd:annotation>
|
583
|
+
<xsd:documentation>
|
584
|
+
Attribute "relationship" specifies whether the video is
|
585
|
+
restricted or permitted for the specified platforms.
|
586
|
+
</xsd:documentation>
|
587
|
+
</xsd:annotation>
|
588
|
+
<xsd:simpleType>
|
589
|
+
<xsd:restriction base="xsd:string">
|
590
|
+
<xsd:enumeration value="allow"/>
|
591
|
+
<xsd:enumeration value="deny"/>
|
592
|
+
</xsd:restriction>
|
593
|
+
</xsd:simpleType>
|
594
|
+
</xsd:attribute>
|
595
|
+
</xsd:extension>
|
596
|
+
</xsd:simpleContent>
|
597
|
+
</xsd:complexType>
|
598
|
+
</xsd:element>
|
599
|
+
|
600
|
+
<xsd:element name="live" minOccurs="0" type="tYesNo">
|
601
|
+
<xsd:annotation>
|
602
|
+
<xsd:documentation>
|
603
|
+
Whether the video is a live internet broadcast.
|
604
|
+
</xsd:documentation>
|
605
|
+
</xsd:annotation>
|
606
|
+
</xsd:element>
|
607
|
+
|
608
|
+
<xsd:element name="id" minOccurs="0" maxOccurs="unbounded">
|
609
|
+
<xsd:annotation>
|
610
|
+
<xsd:documentation>
|
611
|
+
An unambiguous identifier for the video within a given
|
612
|
+
identification context.
|
613
|
+
</xsd:documentation>
|
614
|
+
</xsd:annotation>
|
615
|
+
<xsd:complexType>
|
616
|
+
<xsd:simpleContent>
|
617
|
+
<xsd:extension base="xsd:string">
|
618
|
+
<xsd:attribute name="type" use="required">
|
619
|
+
<xsd:annotation>
|
620
|
+
<xsd:documentation>
|
621
|
+
The identification context.
|
622
|
+
</xsd:documentation>
|
623
|
+
</xsd:annotation>
|
624
|
+
<xsd:simpleType>
|
625
|
+
<xsd:restriction base="xsd:string">
|
626
|
+
<xsd:enumeration value="tms:series"/>
|
627
|
+
<xsd:enumeration value="tms:program"/>
|
628
|
+
<xsd:enumeration value="rovi:series"/>
|
629
|
+
<xsd:enumeration value="rovi:program"/>
|
630
|
+
<xsd:enumeration value="freebase"/>
|
631
|
+
<xsd:enumeration value="url"/>
|
632
|
+
</xsd:restriction>
|
633
|
+
</xsd:simpleType>
|
634
|
+
</xsd:attribute>
|
635
|
+
</xsd:extension>
|
636
|
+
</xsd:simpleContent>
|
637
|
+
</xsd:complexType>
|
638
|
+
</xsd:element>
|
639
|
+
</xsd:sequence>
|
640
|
+
</xsd:complexType>
|
641
|
+
</xsd:element>
|
642
|
+
|
643
|
+
</xsd:schema>
|