blob: a421b56c69bcd96dd7e489a410ee04f6c0b5ed27 (
plain)
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
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<xs:schema targetNamespace="http://www.w3.org/2005/Atom"
xmlns="http://www.w3.org/2005/Atom" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd" />
<xs:import namespace="http://www.w3.org/1999/xhtml" schemaLocation="xhtml1.xsd" />
<xs:element name="feed" type="feedType"/>
<xs:element name="entry" type="entryType"/>
<xs:complexType name="feedType">
<xs:complexContent>
<xs:extension base="sourceType">
<xs:sequence>
<xs:element name="entry" type="entryType" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attributeGroup ref="commonAttributes" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="entryType">
<xs:choice maxOccurs="unbounded">
<xs:element name="author" type="personConstruct" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="category" type="categoryType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="content" type="contentType" minOccurs="0" />
<xs:element name="contributor" type="personConstruct" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="id" type="idType" />
<xs:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="published" type="dateConstruct" minOccurs="0" />
<xs:element name="rights" type="textConstruct" minOccurs="0" />
<xs:element name="source" type="sourceType" minOccurs="0" />
<xs:element name="summary" type="textConstruct" maxOccurs="0" />
<xs:element name="title" type="textConstruct" />
<xs:element name="updated" type="dateConstruct" />
<xs:element name="extension" type="extensionType" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
<xs:attributeGroup ref="commonAttributes"/>
</xs:complexType>
<xs:complexType name="sourceType">
<xs:choice maxOccurs="unbounded">
<xs:element name="author" type="personConstruct" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="category" type="categoryType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="contributor" type="personConstruct" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="generator" type="generatorType" minOccurs="0" />
<xs:element name="icon" type="iconType" minOccurs="0" />
<xs:element name="id" type="idType" />
<xs:element name="link" type="linkType" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="logo" type="logoType" minOccurs="0" />
<xs:element name="rights" type="textConstruct" minOccurs="0" />
<xs:element name="subtitle" type="textConstruct" minOccurs="0" />
<xs:element name="title" type="textConstruct" />
<xs:element name="updated" type="dateConstruct" />
<xs:element name="extension" type="extensionType" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
</xs:complexType>
<xs:complexType name="personConstruct">
<xs:choice maxOccurs="unbounded">
<xs:element name="name" type="xs:string" />
<xs:element name="uri" type="uriType" minOccurs="0" />
<xs:element name="email" type="emailType" minOccurs="0" />
<xs:element name="extension" type="extensionType" minOccurs="0" maxOccurs="unbounded" />
</xs:choice>
</xs:complexType>
<xs:complexType name="categoryType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="term" type="xs:string" use="required" />
<xs:attribute name="scheme" type="uriType" />
<xs:attribute name="label" type="xs:string" />
<xs:attributeGroup ref="commonAttributes"/>
</xs:extension>
</xs:simpleContent>
<!-- TODO: undefinedContent - beyond string? -->
</xs:complexType>
<xs:complexType name="generatorType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="uri" type="uriType" />
<xs:attribute name="version" type="xs:string" />
<xs:attributeGroup ref="commonAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="iconType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attributeGroup ref="commonAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="idType">
<xs:simpleContent>
<xs:extension base="uriType">
<xs:attributeGroup ref="commonAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="logoType">
<xs:simpleContent>
<xs:extension base="uriType">
<xs:attributeGroup ref="commonAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="contentType" mixed="true">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="type" type="xs:string" />
<xs:attribute name="src" type="uriType" minOccurs="0" />
<xs:attributeGroup ref="commonAttributes"/>
</xs:complexType>
<xs:complexType name="linkType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="href" type="uriType" use="required" />
<xs:attribute name="rel" type="uriType" /> <!-- { atomNCName | atomUri }? -->
<xs:attribute name="type" type="mediaType" />
<xs:attribute name="hreflang" type="languageTagType" />
<xs:attribute name="title" type="xs:string" />
<xs:attribute name="length" type="xs:string" />
<xs:attributeGroup ref="commonAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="languageTagType">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Za-z]{1,8}(-[A-Za-z0-9]{1,8})*" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="mediaType">
<xs:restriction base="xs:string">
<xs:pattern value=".+/.+" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="emailType">
<xs:restriction base="xs:string">
<xs:pattern value=".+@.+" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="textConstruct" mixed="true">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="type" type="xs:string" />
<xs:attributeGroup ref="commonAttributes"/>
</xs:complexType>
<xs:complexType name="dateConstruct">
<xs:simpleContent>
<xs:extension base="xs:dateTime">
<xs:attributeGroup ref="commonAttributes"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="uriType" type="xs:string" />
<xs:complexType name="extensionType" mixed="true">
<xs:sequence>
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:anyAttribute />
</xs:complexType>
<xs:attributeGroup name="commonAttributes">
<xs:attribute ref="xml:base" />
<xs:attribute ref="xml:lang" />
<xs:anyAttribute/>
</xs:attributeGroup>
</xs:schema>
|