middleman-xmlvalidator 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
+ <xs:element name="users">
3
+ <xs:complexType>
4
+ <xs:sequence>
5
+ <xs:element type="xs:string" name="user"/>
6
+ </xs:sequence>
7
+ </xs:complexType>
8
+ </xs:element>
9
+ </xs:schema>
@@ -0,0 +1,500 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ XML Schema for RSS v2.0
4
+ Copyright (C) 2003-2008 Jorgen Thelin
5
+
6
+ Microsoft Public License (Ms-PL)
7
+
8
+ This license governs use of the accompanying software.
9
+ If you use the software, you accept this license.
10
+ If you do not accept the license, do not use the software.
11
+
12
+ 1. Definitions
13
+
14
+ The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
15
+
16
+ A "contribution" is the original software, or any additions or changes to the software.
17
+
18
+ A "contributor" is any person that distributes its contribution under this license.
19
+
20
+ "Licensed patents" are a contributor's patent claims that read directly on its contribution.
21
+
22
+ 2. Grant of Rights
23
+
24
+ (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
25
+
26
+ (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
27
+
28
+ 3. Conditions and Limitations
29
+
30
+ (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
31
+
32
+ (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
33
+
34
+ (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
35
+
36
+ (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
37
+
38
+ (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
39
+
40
+ -->
41
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
42
+ elementFormDefault="unqualified"
43
+ version="2.0.2.16">
44
+ <xs:annotation>
45
+ <xs:documentation>XML Schema for RSS v2.0 feed files.</xs:documentation>
46
+ <xs:documentation>Project home: http://www.codeplex.com/rss2schema/ </xs:documentation>
47
+ <xs:documentation>Based on the RSS 2.0 specification document at http://cyber.law.harvard.edu/rss/rss.html </xs:documentation>
48
+ <xs:documentation>Author: Jorgen Thelin</xs:documentation>
49
+ <xs:documentation>Revision: 16</xs:documentation>
50
+ <xs:documentation>Date: 01-Nov-2008</xs:documentation>
51
+ <xs:documentation>Feedback to: http://www.codeplex.com/rss2schema/WorkItem/List.aspx </xs:documentation>
52
+ </xs:annotation>
53
+ <xs:element name="rss">
54
+ <xs:complexType>
55
+ <xs:sequence>
56
+ <xs:element name="channel" type="RssChannel"/>
57
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
58
+ </xs:sequence>
59
+ <xs:attribute name="version" type="xs:decimal" use="required" fixed="2.0"/>
60
+ <xs:anyAttribute namespace="##any"/>
61
+ </xs:complexType>
62
+ </xs:element>
63
+ <xs:complexType name="RssItem">
64
+ <xs:annotation>
65
+ <xs:documentation>An item may represent a "story" -- much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story. An item may also be complete in itself, if so, the description contains the text (entity-encoded HTML is allowed), and the link and title may be omitted.</xs:documentation>
66
+ </xs:annotation>
67
+ <xs:sequence>
68
+ <xs:choice maxOccurs="unbounded">
69
+ <xs:element name="title" type="xs:string" minOccurs="0">
70
+ <xs:annotation>
71
+ <xs:documentation>The title of the item.</xs:documentation>
72
+ </xs:annotation>
73
+ </xs:element>
74
+ <xs:element name="description" type="xs:string" minOccurs="0">
75
+ <xs:annotation>
76
+ <xs:documentation>The item synopsis.</xs:documentation>
77
+ </xs:annotation>
78
+ </xs:element>
79
+ <xs:element name="link" type="xs:anyURI" minOccurs="0">
80
+ <xs:annotation>
81
+ <xs:documentation>The URL of the item.</xs:documentation>
82
+ </xs:annotation>
83
+ </xs:element>
84
+ <xs:element name="author" type="EmailAddress" minOccurs="0">
85
+ <xs:annotation>
86
+ <xs:documentation>Email address of the author of the item.</xs:documentation>
87
+ </xs:annotation>
88
+ </xs:element>
89
+ <xs:element name="category" type="Category" minOccurs="0">
90
+ <xs:annotation>
91
+ <xs:documentation>Includes the item in one or more categories. </xs:documentation>
92
+ </xs:annotation>
93
+ </xs:element>
94
+ <xs:element name="comments" type="xs:anyURI" minOccurs="0">
95
+ <xs:annotation>
96
+ <xs:documentation>URL of a page for comments relating to the item.</xs:documentation>
97
+ </xs:annotation>
98
+ </xs:element>
99
+ <xs:element name="enclosure" type="Enclosure" minOccurs="0">
100
+ <xs:annotation>
101
+ <xs:documentation>Describes a media object that is attached to the item.</xs:documentation>
102
+ </xs:annotation>
103
+ </xs:element>
104
+ <xs:element name="guid" type="Guid" minOccurs="0">
105
+ <xs:annotation>
106
+ <xs:documentation>guid or permalink URL for this entry</xs:documentation>
107
+ </xs:annotation>
108
+ </xs:element>
109
+ <xs:element name="pubDate" type="Rfc822FormatDate" minOccurs="0">
110
+ <xs:annotation>
111
+ <xs:documentation>Indicates when the item was published.</xs:documentation>
112
+ </xs:annotation>
113
+ </xs:element>
114
+ <xs:element name="source" type="Source" minOccurs="0">
115
+ <xs:annotation>
116
+ <xs:documentation>The RSS channel that the item came from.</xs:documentation>
117
+ </xs:annotation>
118
+ </xs:element>
119
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
120
+ <xs:annotation>
121
+ <xs:documentation>Extensibility element.</xs:documentation>
122
+ </xs:annotation>
123
+ </xs:any>
124
+ </xs:choice>
125
+ </xs:sequence>
126
+ <xs:anyAttribute namespace="##any"/>
127
+ </xs:complexType>
128
+ <xs:complexType name="RssChannel">
129
+ <xs:sequence>
130
+ <xs:choice maxOccurs="unbounded">
131
+ <xs:element name="title" type="xs:string">
132
+ <xs:annotation>
133
+ <xs:documentation>The name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website.</xs:documentation>
134
+ </xs:annotation>
135
+ </xs:element>
136
+ <xs:element name="link" type="xs:anyURI">
137
+ <xs:annotation>
138
+ <xs:documentation>The URL to the HTML website corresponding to the channel.</xs:documentation>
139
+ </xs:annotation>
140
+ </xs:element>
141
+ <xs:element name="description" type="xs:string">
142
+ <xs:annotation>
143
+ <xs:documentation>Phrase or sentence describing the channel.</xs:documentation>
144
+ </xs:annotation>
145
+ </xs:element>
146
+ <xs:element name="language" type="xs:language" minOccurs="0">
147
+ <xs:annotation>
148
+ <xs:documentation>The language the channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element, as provided by Netscape, is here. You may also use values defined by the W3C.</xs:documentation>
149
+ </xs:annotation>
150
+ </xs:element>
151
+ <xs:element name="copyright" type="xs:string" minOccurs="0">
152
+ <xs:annotation>
153
+ <xs:documentation>Copyright notice for content in the channel.</xs:documentation>
154
+ </xs:annotation>
155
+ </xs:element>
156
+ <xs:element name="managingEditor" type="EmailAddress" minOccurs="0">
157
+ <xs:annotation>
158
+ <xs:documentation>Email address for person responsible for editorial content.</xs:documentation>
159
+ </xs:annotation>
160
+ </xs:element>
161
+ <xs:element name="webMaster" type="EmailAddress" minOccurs="0">
162
+ <xs:annotation>
163
+ <xs:documentation>Email address for person responsible for technical issues relating to channel.</xs:documentation>
164
+ </xs:annotation>
165
+ </xs:element>
166
+ <xs:element name="pubDate" type="Rfc822FormatDate" minOccurs="0">
167
+ <xs:annotation>
168
+ <xs:documentation>The publication date for the content in the channel. All date-times in RSS conform to the Date and Time Specification of RFC 822, with the exception that the year may be expressed with two characters or four characters (four preferred).</xs:documentation>
169
+ </xs:annotation>
170
+ </xs:element>
171
+ <xs:element name="lastBuildDate" type="Rfc822FormatDate" minOccurs="0">
172
+ <xs:annotation>
173
+ <xs:documentation>The last time the content of the channel changed.</xs:documentation>
174
+ </xs:annotation>
175
+ </xs:element>
176
+ <xs:element name="category" type="Category" minOccurs="0">
177
+ <xs:annotation>
178
+ <xs:documentation>Specify one or more categories that the channel belongs to.</xs:documentation>
179
+ </xs:annotation>
180
+ </xs:element>
181
+ <xs:element name="generator" type="xs:string" minOccurs="0">
182
+ <xs:annotation>
183
+ <xs:documentation>A string indicating the program used to generate the channel.</xs:documentation>
184
+ </xs:annotation>
185
+ </xs:element>
186
+ <xs:element name="docs" type="xs:anyURI" minOccurs="0">
187
+ <xs:annotation>
188
+ <xs:documentation>A URL that points to the documentation for the format used in the RSS file. It's probably a pointer to this page. It's for people who might stumble across an RSS file on a Web server 25 years from now and wonder what it is.</xs:documentation>
189
+ </xs:annotation>
190
+ </xs:element>
191
+ <xs:element name="cloud" type="Cloud" minOccurs="0">
192
+ <xs:annotation>
193
+ <xs:documentation>Allows processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.</xs:documentation>
194
+ </xs:annotation>
195
+ </xs:element>
196
+ <xs:element name="ttl" type="xs:nonNegativeInteger" minOccurs="0">
197
+ <xs:annotation>
198
+ <xs:documentation>ttl stands for time to live. It's a number of minutes that indicates how long a channel can be cached before refreshing from the source.</xs:documentation>
199
+ </xs:annotation>
200
+ </xs:element>
201
+ <xs:element name="image" type="Image" minOccurs="0">
202
+ <xs:annotation>
203
+ <xs:documentation>Specifies a GIF, JPEG or PNG image that can be displayed with the channel.</xs:documentation>
204
+ </xs:annotation>
205
+ </xs:element>
206
+ <xs:element name="rating" type="xs:string" minOccurs="0">
207
+ <xs:annotation>
208
+ <xs:documentation>The PICS rating for the channel.</xs:documentation>
209
+ </xs:annotation>
210
+ </xs:element>
211
+ <xs:element name="textInput" type="TextInput" minOccurs="0">
212
+ <xs:annotation>
213
+ <xs:documentation>Specifies a text input box that can be displayed with the channel.</xs:documentation>
214
+ </xs:annotation>
215
+ </xs:element>
216
+ <xs:element name="skipHours" type="SkipHoursList" minOccurs="0">
217
+ <xs:annotation>
218
+ <xs:documentation>A hint for aggregators telling them which hours they can skip.</xs:documentation>
219
+ </xs:annotation>
220
+ </xs:element>
221
+ <xs:element name="skipDays" type="SkipDaysList" minOccurs="0">
222
+ <xs:annotation>
223
+ <xs:documentation>A hint for aggregators telling them which days they can skip.</xs:documentation>
224
+ </xs:annotation>
225
+ </xs:element>
226
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
227
+ <xs:annotation>
228
+ <xs:documentation>Extensibility element.</xs:documentation>
229
+ </xs:annotation>
230
+ </xs:any>
231
+ </xs:choice>
232
+ <xs:element name="item" type="RssItem" minOccurs="1" maxOccurs="unbounded">
233
+ <!--
234
+ HACK: According to the RSS 2.0 spec, it should strictly be possible to have zero item elements,
235
+ but this makes the schema non-deterministic with regard to extensibility elements
236
+ so for the moment we undid bug-fix 10231 and set minOccurs=1 to work around this problem.
237
+ -->
238
+ </xs:element>
239
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
240
+ <xs:annotation>
241
+ <xs:documentation>Extensibility element.</xs:documentation>
242
+ </xs:annotation>
243
+ </xs:any>
244
+ </xs:sequence>
245
+ <xs:anyAttribute namespace="##any"/>
246
+ </xs:complexType>
247
+ <xs:simpleType name="SkipHour">
248
+ <xs:annotation>
249
+ <xs:documentation>A time in GMT when aggregators should not request the channel data. The hour beginning at midnight is hour zero.</xs:documentation>
250
+ </xs:annotation>
251
+ <xs:restriction base="xs:nonNegativeInteger">
252
+ <xs:minInclusive value="0"/>
253
+ <xs:maxInclusive value="23"/>
254
+ </xs:restriction>
255
+ </xs:simpleType>
256
+ <xs:complexType name="SkipHoursList">
257
+ <xs:sequence>
258
+ <xs:element name="hour" type="SkipHour" minOccurs="0" maxOccurs="24"/>
259
+ </xs:sequence>
260
+ </xs:complexType>
261
+ <xs:simpleType name="SkipDay">
262
+ <xs:annotation>
263
+ <xs:documentation>A day when aggregators should not request the channel data.</xs:documentation>
264
+ </xs:annotation>
265
+ <xs:restriction base="xs:string">
266
+ <xs:enumeration value="Monday"/>
267
+ <xs:enumeration value="Tuesday"/>
268
+ <xs:enumeration value="Wednesday"/>
269
+ <xs:enumeration value="Thursday"/>
270
+ <xs:enumeration value="Friday"/>
271
+ <xs:enumeration value="Saturday"/>
272
+ <xs:enumeration value="Sunday"/>
273
+ </xs:restriction>
274
+ </xs:simpleType>
275
+ <xs:complexType name="SkipDaysList">
276
+ <xs:sequence>
277
+ <xs:element name="day" type="SkipDay" minOccurs="0" maxOccurs="7">
278
+ <xs:annotation>
279
+ <xs:documentation>A time in GMT, when aggregators should not request the channel data. The hour beginning at midnight is hour zero.</xs:documentation>
280
+ </xs:annotation>
281
+ </xs:element>
282
+ </xs:sequence>
283
+ </xs:complexType>
284
+ <xs:complexType name="Category">
285
+ <xs:simpleContent>
286
+ <xs:extension base="xs:string">
287
+ <xs:attribute name="domain" type="xs:string" use="optional"/>
288
+ </xs:extension>
289
+ </xs:simpleContent>
290
+ </xs:complexType>
291
+ <xs:complexType name="Image">
292
+ <xs:all>
293
+ <xs:element name="url" type="xs:anyURI">
294
+ <xs:annotation>
295
+ <xs:documentation>The URL of the image file.</xs:documentation>
296
+ </xs:annotation>
297
+ </xs:element>
298
+ <xs:element name="title" type="xs:string">
299
+ <xs:annotation>
300
+ <xs:documentation>Describes the image, it's used in the ALT attribute of the HTML &lt;img&gt; tag when the channel is rendered in HTML.</xs:documentation>
301
+ </xs:annotation>
302
+ </xs:element>
303
+ <xs:element name="link" type="xs:anyURI">
304
+ <xs:annotation>
305
+ <xs:documentation>The URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image &lt;title&gt; and &lt;link&gt; should have the same value as the channel's &lt;title&gt; and &lt;link&gt;. </xs:documentation>
306
+ </xs:annotation>
307
+ </xs:element>
308
+ <xs:element name="width" type="ImageWidth" default="88" minOccurs="0">
309
+ <xs:annotation>
310
+ <xs:documentation>The width of the image in pixels.</xs:documentation>
311
+ </xs:annotation>
312
+ </xs:element>
313
+ <xs:element name="height" type="ImageHeight" default="31" minOccurs="0">
314
+ <xs:annotation>
315
+ <xs:documentation>The height of the image in pixels.</xs:documentation>
316
+ </xs:annotation>
317
+ </xs:element>
318
+ <xs:element name="description" type="xs:string" minOccurs="0">
319
+ <xs:annotation>
320
+ <xs:documentation>Text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.</xs:documentation>
321
+ </xs:annotation>
322
+ </xs:element>
323
+ </xs:all>
324
+ </xs:complexType>
325
+ <xs:simpleType name="ImageHeight">
326
+ <xs:annotation>
327
+ <xs:documentation>The height of the image in pixels.</xs:documentation>
328
+ </xs:annotation>
329
+ <xs:restriction base="xs:positiveInteger">
330
+ <xs:maxInclusive value="400"/>
331
+ </xs:restriction>
332
+ </xs:simpleType>
333
+ <xs:simpleType name="ImageWidth">
334
+ <xs:annotation>
335
+ <xs:documentation>The width of the image in pixels.</xs:documentation>
336
+ </xs:annotation>
337
+ <xs:restriction base="xs:positiveInteger">
338
+ <xs:maxInclusive value="144"/>
339
+ </xs:restriction>
340
+ </xs:simpleType>
341
+ <xs:complexType name="Cloud">
342
+ <xs:annotation>
343
+ <xs:documentation>Specifies a web service that supports the rssCloud interface which can be implemented in HTTP-POST, XML-RPC or SOAP 1.1. Its purpose is to allow processes to register with a cloud to be notified of updates to the channel, implementing a lightweight publish-subscribe protocol for RSS feeds.</xs:documentation>
344
+ </xs:annotation>
345
+ <xs:attribute name="domain" type="xs:string" use="required"/>
346
+ <xs:attribute name="port" type="xs:positiveInteger" use="required"/>
347
+ <xs:attribute name="path" type="xs:string" use="required"/>
348
+ <xs:attribute name="registerProcedure" type="xs:string" use="required"/>
349
+ <xs:attribute name="protocol" type="CloudProtocol" use="required"/>
350
+ </xs:complexType>
351
+ <xs:simpleType name="CloudProtocol">
352
+ <xs:restriction base="xs:string">
353
+ <xs:enumeration value="xml-rpc"/>
354
+ <xs:enumeration value="http-post"/>
355
+ <xs:enumeration value="soap"/>
356
+ </xs:restriction>
357
+ </xs:simpleType>
358
+ <xs:complexType name="TextInput">
359
+ <xs:annotation>
360
+ <xs:documentation>The purpose of this element is something of a mystery! You can use it to specify a search engine box. Or to allow a reader to provide feedback. Most aggregators ignore it.</xs:documentation>
361
+ </xs:annotation>
362
+ <xs:all>
363
+ <xs:element name="title" type="xs:string">
364
+ <xs:annotation>
365
+ <xs:documentation>The label of the Submit button in the text input area.</xs:documentation>
366
+ </xs:annotation>
367
+ </xs:element>
368
+ <xs:element name="description" type="xs:string">
369
+ <xs:annotation>
370
+ <xs:documentation>Explains the text input area.</xs:documentation>
371
+ </xs:annotation>
372
+ </xs:element>
373
+ <xs:element name="name" type="xs:string">
374
+ <xs:annotation>
375
+ <xs:documentation>The name of the text object in the text input area.</xs:documentation>
376
+ </xs:annotation>
377
+ </xs:element>
378
+ <xs:element name="link" type="xs:anyURI">
379
+ <xs:annotation>
380
+ <xs:documentation>The URL of the CGI script that processes text input requests.</xs:documentation>
381
+ </xs:annotation>
382
+ </xs:element>
383
+ </xs:all>
384
+ </xs:complexType>
385
+ <xs:simpleType name="EmailAddress">
386
+ <xs:annotation>
387
+ <xs:documentation>Using the regexp definiton of E-Mail Address by Lucadean from the .NET RegExp Pattern Repository at http://www.3leaf.com/default/NetRegExpRepository.aspx </xs:documentation>
388
+ </xs:annotation>
389
+ <xs:restriction base="xs:string">
390
+ <xs:pattern value="([a-zA-Z0-9_\-])([a-zA-Z0-9_\-\.]*)@(\[((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}|((([a-zA-Z0-9\-]+)\.)+))([a-zA-Z]{2,}|(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\])"/>
391
+ </xs:restriction>
392
+ </xs:simpleType>
393
+ <xs:simpleType name="Rfc822FormatDate">
394
+ <xs:annotation>
395
+ <xs:documentation>A date-time displayed in RFC-822 format.</xs:documentation>
396
+ <xs:documentation>Using the regexp definiton of rfc-822 date by Sam Ruby at http://www.intertwingly.net/blog/1360.html </xs:documentation>
397
+ </xs:annotation>
398
+ <xs:restriction base="xs:string">
399
+ <xs:pattern value="(((Mon)|(Tue)|(Wed)|(Thu)|(Fri)|(Sat)|(Sun)), *)?\d\d? +((Jan)|(Feb)|(Mar)|(Apr)|(May)|(Jun)|(Jul)|(Aug)|(Sep)|(Oct)|(Nov)|(Dec)) +\d\d(\d\d)? +\d\d:\d\d(:\d\d)? +(([+\-]?\d\d\d\d)|(UT)|(GMT)|(EST)|(EDT)|(CST)|(CDT)|(MST)|(MDT)|(PST)|(PDT)|\w)"/>
400
+ </xs:restriction>
401
+ </xs:simpleType>
402
+ <xs:complexType name="Source">
403
+ <xs:simpleContent>
404
+ <xs:extension base="xs:string">
405
+ <xs:attribute name="url" type="xs:anyURI"/>
406
+ </xs:extension>
407
+ </xs:simpleContent>
408
+ </xs:complexType>
409
+ <xs:complexType name="Enclosure">
410
+ <xs:simpleContent>
411
+ <xs:extension base="xs:string">
412
+ <xs:attribute name="url" type="xs:anyURI" use="required">
413
+ <xs:annotation>
414
+ <xs:documentation>URL where the enclosure is located</xs:documentation>
415
+ </xs:annotation>
416
+ </xs:attribute>
417
+ <xs:attribute name="length" type="xs:nonNegativeInteger" use="required">
418
+ <xs:annotation>
419
+ <xs:documentation>Size in bytes</xs:documentation>
420
+ </xs:annotation>
421
+ </xs:attribute>
422
+ <xs:attribute name="type" type="xs:string" use="required">
423
+ <xs:annotation>
424
+ <xs:documentation>MIME media-type of the enclosure</xs:documentation>
425
+ </xs:annotation>
426
+ </xs:attribute>
427
+ </xs:extension>
428
+ </xs:simpleContent>
429
+ </xs:complexType>
430
+ <xs:complexType name="Guid">
431
+ <xs:simpleContent>
432
+ <xs:extension base="xs:string">
433
+ <xs:attribute name="isPermaLink" type="xs:boolean" use="optional" default="true"/>
434
+ </xs:extension>
435
+ </xs:simpleContent>
436
+ </xs:complexType>
437
+
438
+ <!--
439
+ TODO:
440
+ - Need to add regexp pattern for MIME media-type value of tEnclosure/type
441
+ - Need to add regexp pattern for checking contents of guid is a URL when isPermaLink=true"
442
+ - Need to add some form of constraint to check on an item that one, or other, or both of title and description are present.
443
+ However, I'm not sure it is possible to represent these constraints in XML Schema language alone.
444
+ - Need some way to enforce cardinality constraints preventing repeated elements in channels or items
445
+ - Unfortunately the bug-fix for issue 10231 made this schema non-deterministic with respect to extensibitity elements.
446
+ We can't tell whether an extension element in tRssChannel is within the choice or after the item elements.
447
+ Need to reconsider the solution to bug-fix 10231.
448
+ -->
449
+
450
+ <!--
451
+ Change Log:
452
+ Date Revision Description
453
+ 31-Mar-2003 1 Initial version released for comment
454
+ 31-Mar-2003 2 Changes based on feedback from Gudge:
455
+ - Remove targetNamespace="" and use elemenfFormDefault="unqualified" instead
456
+ - Use namespace="##other" on <any>'s to create a more deterministic data model.
457
+ - Added missing xs:documentation inside xs:annotation at the schema level.
458
+ - Use xs:language for ISO Language Codes in <language> element.
459
+ - Change guid to a single declaration. This loses some of the checking of the
460
+ URL when the contents of the guid is a permaLink, so we will need to add
461
+ that back in with a regexp pattern.
462
+ 14-Apr-2003 3 Changes to solve some element ordering problems.
463
+ - Use xs:all in place of xs:sequence to support flexible ordering of elements.
464
+ Although the ordering constraints for elements is not clear from the
465
+ original specification, the custom and practice seems to be that
466
+ element ordering is freeform.
467
+ - Use elemenfFormDefault="qualified" for explicit intent.
468
+ 15-Apr-2003 4 Changes to solve some element ordering problems.
469
+ - Use xs:choice in place of xs:all as previous usage of <all> was invalid.
470
+ This creates the problem that unsufficient constraints can be applied
471
+ by the schema - for example, it can't prevent two title elements for an item.
472
+ - Use elemenfFormDefault="unqualified" for to get the correct behavious
473
+ when importing and combining schemas.
474
+ 15-Apr-2003 5 Putting the extensibility element inside the repeating choice solves
475
+ all problems with element ordering.
476
+ 15-Apr-2003 6 - skipHours and skipDays should contain a nested list of values,
477
+ not just a single value.
478
+ - Added version attribute to schema definition.
479
+ - Corrected type of the cloud element
480
+ 25-Apr-2003 7 - Add regexp for RFC-822 date suggested by Sam Ruby
481
+ - I had to leave the base type of the tRfc822FormatDate type
482
+ as xs:string due to the problems with using
483
+ a pattern with xs:dateTime described at
484
+ http://www.thearchitect.co.uk/weblog/archives/2003/04/000142.html
485
+ 19-Jun-2003 8 - Fixed a bug the Oxygen XML Editor spotted in the regexp for RFC-822 dates
486
+ 23-Jun-2003 9 - Added legal boilerplate license text for LGPL.
487
+ - Minor formatting changes.
488
+ 24-Jun-2003 10 - Missing types for item/title and item/description - Spotted by Andreas Schwotzer.
489
+ 01-Jan-2008 11 - Copy made available under the Microsoft Public License (MS-PL).
490
+ 25-May-2008 12 - Bug fix 10231 from Ken Gruven - channel can contain zero or more items.
491
+ 06-Sep-2008 13 - Fixed tab-space whitespace issues. Now always use spaces.
492
+ - Undid the fix for bug-fix 10231 since it made the schema non-deterministic
493
+ with respect to extensibility eleemnts in tRssChannel - need to reconsider the fix.
494
+ 08-Sep-2008 14 - Removed 't' prefixes from type names to improve class names
495
+ that get code-generated from the schema.
496
+ 22-Sep-2008 15 - Move type def for rss element in-line for improved compativility with Java 1.6 tools.
497
+ 01-Nov-2008 16 - Added the missing rating element from the spec to RssChannel.
498
+ -->
499
+
500
+ </xs:schema>
@@ -0,0 +1,116 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3
+ targetNamespace="http://www.sitemaps.org/schemas/sitemap/0.9"
4
+ xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
5
+ elementFormDefault="qualified">
6
+ <xsd:annotation>
7
+ <xsd:documentation>
8
+ XML Schema for Sitemap files.
9
+ Last Modifed 2008-03-26
10
+ </xsd:documentation>
11
+ </xsd:annotation>
12
+
13
+ <xsd:element name="urlset">
14
+ <xsd:annotation>
15
+ <xsd:documentation>
16
+ Container for a set of up to 50,000 document elements.
17
+ This is the root element of the XML file.
18
+ </xsd:documentation>
19
+ </xsd:annotation>
20
+ <xsd:complexType>
21
+ <xsd:sequence>
22
+ <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="strict"/>
23
+ <xsd:element name="url" type="tUrl" maxOccurs="unbounded"/>
24
+ </xsd:sequence>
25
+ </xsd:complexType>
26
+ </xsd:element>
27
+
28
+ <xsd:complexType name="tUrl">
29
+ <xsd:annotation>
30
+ <xsd:documentation>
31
+ Container for the data needed to describe a document to crawl.
32
+ </xsd:documentation>
33
+ </xsd:annotation>
34
+ <xsd:sequence>
35
+ <xsd:element name="loc" type="tLoc"/>
36
+ <xsd:element name="lastmod" type="tLastmod" minOccurs="0"/>
37
+ <xsd:element name="changefreq" type="tChangeFreq" minOccurs="0"/>
38
+ <xsd:element name="priority" type="tPriority" minOccurs="0"/>
39
+ <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="strict"/>
40
+ </xsd:sequence>
41
+ </xsd:complexType>
42
+
43
+ <xsd:simpleType name="tLoc">
44
+ <xsd:annotation>
45
+ <xsd:documentation>
46
+ REQUIRED: The location URI of a document.
47
+ The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt).
48
+ </xsd:documentation>
49
+ </xsd:annotation>
50
+ <xsd:restriction base="xsd:anyURI">
51
+ <xsd:minLength value="12"/>
52
+ <xsd:maxLength value="2048"/>
53
+ </xsd:restriction>
54
+ </xsd:simpleType>
55
+
56
+ <xsd:simpleType name="tLastmod">
57
+ <xsd:annotation>
58
+ <xsd:documentation>
59
+ OPTIONAL: The date the document was last modified. The date must conform
60
+ to the W3C DATETIME format (http://www.w3.org/TR/NOTE-datetime).
61
+ Example: 2005-05-10
62
+ Lastmod may also contain a timestamp.
63
+ Example: 2005-05-10T17:33:30+08:00
64
+ </xsd:documentation>
65
+ </xsd:annotation>
66
+ <xsd:union>
67
+ <xsd:simpleType>
68
+ <xsd:restriction base="xsd:date"/>
69
+ </xsd:simpleType>
70
+ <xsd:simpleType>
71
+ <xsd:restriction base="xsd:dateTime"/>
72
+ </xsd:simpleType>
73
+ </xsd:union>
74
+ </xsd:simpleType>
75
+
76
+ <xsd:simpleType name="tChangeFreq">
77
+ <xsd:annotation>
78
+ <xsd:documentation>
79
+ OPTIONAL: Indicates how frequently the content at a particular URL is
80
+ likely to change. The value "always" should be used to describe
81
+ documents that change each time they are accessed. The value "never"
82
+ should be used to describe archived URLs. Please note that web
83
+ crawlers may not necessarily crawl pages marked "always" more often.
84
+ Consider this element as a friendly suggestion and not a command.
85
+ </xsd:documentation>
86
+ </xsd:annotation>
87
+ <xsd:restriction base="xsd:string">
88
+ <xsd:enumeration value="always"/>
89
+ <xsd:enumeration value="hourly"/>
90
+ <xsd:enumeration value="daily"/>
91
+ <xsd:enumeration value="weekly"/>
92
+ <xsd:enumeration value="monthly"/>
93
+ <xsd:enumeration value="yearly"/>
94
+ <xsd:enumeration value="never"/>
95
+ </xsd:restriction>
96
+ </xsd:simpleType>
97
+
98
+ <xsd:simpleType name="tPriority">
99
+ <xsd:annotation>
100
+ <xsd:documentation>
101
+ OPTIONAL: The priority of a particular URL relative to other pages
102
+ on the same site. The value for this element is a number between
103
+ 0.0 and 1.0 where 0.0 identifies the lowest priority page(s).
104
+ The default priority of a page is 0.5. Priority is used to select
105
+ between pages on your site. Setting a priority of 1.0 for all URLs
106
+ will not help you, as the relative priority of pages on your site
107
+ is what will be considered.
108
+ </xsd:documentation>
109
+ </xsd:annotation>
110
+ <xsd:restriction base="xsd:decimal">
111
+ <xsd:minInclusive value="0.0"/>
112
+ <xsd:maxInclusive value="1.0"/>
113
+ </xsd:restriction>
114
+ </xsd:simpleType>
115
+
116
+ </xsd:schema>