Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
<?xml version="1.0" encoding="utf-8"?>
2
 
3
<!-- ======================================================================
4
 * Author: Dino Morelli
5
 * Began: 2004-Feb-18
6
 * Build #: 0001
7
 * Version: 0.1
8
 * E-Mail: dino.morelli@snet.net
9
 * URL: (none yet)
10
 * License: (none yet)
11
 *
12
 * ========================================================================
13
 *
14
 * RSS v2.0 Relax NG schema
15
 *
16
 * ==================================================================== -->
17
 
18
 
19
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
20
 
21
  <start>
22
    <ref name="element-rss" />
23
  </start>
24
 
25
  <define name="element-title">
26
    <element name="title">
27
 
28
      <text />
29
    </element>
30
  </define>
31
 
32
  <define name="element-description">
33
    <element name="description">
34
      <text />
35
    </element>
36
  </define>
37
 
38
  <define name="element-link">
39
    <element name="link">
40
      <text />
41
    </element>
42
  </define>
43
 
44
  <define name="element-category">
45
    <element name="category">
46
      <optional>
47
 
48
        <attribute name="domain" />
49
      </optional>
50
      <text />
51
    </element>
52
  </define>
53
 
54
  <define name="element-rss">
55
    <element name="rss">
56
      <attribute name="version">
57
 
58
        <value>2.0</value>
59
      </attribute>
60
      <element name="channel">
61
        <interleave>
62
          <ref name="element-title" />
63
          <ref name="element-link" />
64
          <ref name="element-description" />
65
          <optional>
66
 
67
            <element name="language"><text /></element>
68
          </optional>
69
          <optional>
70
            <element name="copyright"><text /></element>
71
          </optional>
72
          <optional>
73
            <element name="lastBuildDate"><text /></element>
74
          </optional>
75
          <optional>
76
 
77
            <element name="docs"><text /></element>
78
          </optional>
79
          <optional>
80
            <element name="generator"><text /></element>
81
          </optional>
82
          <optional>
83
            <ref name="element-category" />
84
          </optional>
85
          <optional>
86
 
87
            <element name="managingEditor"><text /></element>
88
          </optional>
89
          <optional>
90
            <element name="webMaster"><text /></element>
91
          </optional>
92
          <optional>
93
            <element name="pubDate"><text /></element>
94
          </optional>
95
          <optional>
96
 
97
            <element name="rating"><text /></element>
98
          </optional>
99
          <optional>
100
            <element name="image">
101
              <interleave>
102
                <element name="url"><text /></element>
103
                <ref name="element-title" />
104
                <ref name="element-link" />
105
                <optional>
106
 
107
                  <element name="width"><text /></element>
108
                </optional>
109
                <optional>
110
                  <element name="height"><text /></element>
111
                </optional>
112
                <optional>
113
                  <ref name="element-description" />
114
                </optional>
115
              </interleave>
116
 
117
            </element>
118
          </optional>
119
          <optional>
120
            <element name="cloud">
121
              <attribute name="domain" />
122
              <attribute name="port" />
123
              <attribute name="path" />
124
              <attribute name="registerProcedure" />
125
              <attribute name="protocol" />
126
 
127
            </element>
128
          </optional>
129
          <optional>
130
            <element name="textInput">
131
              <interleave>
132
                <ref name="element-title" />
133
                <ref name="element-description" />
134
                <element name="name"><text /></element>
135
                <ref name="element-link" />
136
 
137
              </interleave>
138
            </element>
139
          </optional>
140
          <optional>
141
            <element name="skipHours">
142
              <oneOrMore>
143
                <element name="hour">
144
                  <choice>
145
                    <value>0</value>
146
 
147
                    <value>1</value>
148
                    <value>2</value>
149
                    <value>3</value>
150
                    <value>4</value>
151
                    <value>5</value>
152
                    <value>6</value>
153
 
154
                    <value>7</value>
155
                    <value>8</value>
156
                    <value>9</value>
157
                    <value>10</value>
158
                    <value>11</value>
159
                    <value>12</value>
160
 
161
                    <value>13</value>
162
                    <value>14</value>
163
                    <value>15</value>
164
                    <value>16</value>
165
                    <value>17</value>
166
                    <value>18</value>
167
 
168
                    <value>19</value>
169
                    <value>20</value>
170
                    <value>21</value>
171
                    <value>22</value>
172
                    <value>23</value>
173
                  </choice>
174
 
175
                </element>
176
              </oneOrMore>
177
            </element>
178
          </optional>
179
          <optional>
180
            <element name="skipDays">
181
              <oneOrMore>
182
                <element name="day">
183
                  <choice>
184
 
185
                    <value>0</value>
186
                    <value>1</value>
187
                    <value>2</value>
188
                    <value>3</value>
189
                    <value>4</value>
190
                    <value>5</value>
191
 
192
                    <value>6</value>
193
                    <value>7</value>
194
                    <value>8</value>
195
                    <value>9</value>
196
                    <value>10</value>
197
                    <value>11</value>
198
 
199
                    <value>12</value>
200
                    <value>13</value>
201
                    <value>14</value>
202
                    <value>15</value>
203
                    <value>16</value>
204
                    <value>17</value>
205
 
206
                    <value>18</value>
207
                    <value>19</value>
208
                    <value>20</value>
209
                    <value>21</value>
210
                    <value>22</value>
211
                    <value>23</value>
212
 
213
                    <value>24</value>
214
                    <value>25</value>
215
                    <value>26</value>
216
                    <value>27</value>
217
                    <value>28</value>
218
                    <value>29</value>
219
 
220
                    <value>30</value>
221
                    <value>31</value>
222
                  </choice>
223
                </element>
224
              </oneOrMore>
225
            </element>
226
          </optional>
227
          <optional>
228
 
229
            <element name="ttl"><text /></element>
230
          </optional>
231
          <zeroOrMore>
232
            <element name="item">
233
              <interleave>
234
                <choice>
235
                  <ref name="element-title" />
236
                  <ref name="element-description" />
237
                  <interleave>
238
 
239
                    <ref name="element-title" />
240
                    <ref name="element-description" />
241
                  </interleave>
242
                </choice>
243
                <optional>
244
                  <ref name="element-link" />
245
                </optional>
246
                <optional>
247
                  <element name="author"><text /></element>
248
 
249
                </optional>
250
                <optional>
251
                  <ref name="element-category" />
252
                </optional>
253
                <optional>
254
                  <element name="comments"><text /></element>
255
                </optional>
256
                <optional>
257
                  <element name="enclosure">
258
 
259
                    <attribute name="url" />
260
                    <attribute name="length" />
261
                    <attribute name="type" />
262
                    <text />
263
                  </element>
264
                </optional>
265
                <optional>
266
                  <element name="guid">
267
                    <optional>
268
 
269
                      <attribute name="isPermaLink">
270
                        <choice>
271
                          <value>true</value>
272
                          <value>false</value>
273
                        </choice>
274
                      </attribute>
275
                    </optional>
276
                    <text />
277
 
278
                  </element>
279
                </optional>
280
                <optional>
281
                  <element name="pubDate"><text /></element>
282
                </optional>
283
                <optional>
284
                  <element name="source">
285
                    <attribute name="url" />
286
                    <text />
287
 
288
                  </element>
289
                </optional>
290
              </interleave>
291
            </element>
292
          </zeroOrMore>
293
        </interleave>
294
      </element>
295
    </element>
296
  </define>
297
 
298
</grammar>