~ubuntu-branches/ubuntu/utopic/jing-trang/utopic

« back to all changes in this revision

Viewing changes to xhtml/modules/legacy.rng

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Thibault
  • Date: 2009-09-01 15:53:03 UTC
  • Revision ID: james.westby@ubuntu.com-20090901155303-2kweef05h5v9j3ni
Tags: upstream-20090818
ImportĀ upstreamĀ versionĀ 20090818

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!-- Legacy Module -->
 
3
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
 
4
 
 
5
<define name="lang.attrib" combine="interleave">
 
6
  <optional>
 
7
    <attribute name="lang">
 
8
      <ref name="LanguageCode.datatype"/>
 
9
    </attribute>
 
10
  </optional>
 
11
</define>
 
12
 
 
13
<define name="basefont">
 
14
  <element name="basefont">
 
15
    <ref name="basefont.attlist"/>
 
16
  </element>
 
17
</define>
 
18
 
 
19
<define name="basefont.attlist">
 
20
  <ref name="id.attrib"/>
 
21
  <ref name="Font.attrib"/>
 
22
</define>
 
23
 
 
24
<define name="center">
 
25
  <element name="center">
 
26
    <ref name="center.attlist"/>
 
27
    <ref name="Flow.model"/>
 
28
  </element>
 
29
</define>
 
30
 
 
31
<define name="center.attlist">
 
32
  <ref name="Common.attrib"/>
 
33
</define>
 
34
 
 
35
<define name="font">
 
36
  <element name="font">
 
37
    <ref name="font.attlist"/>
 
38
    <ref name="Inline.model"/>
 
39
  </element>
 
40
</define>
 
41
 
 
42
<define name="font.attlist">
 
43
  <ref name="Core.attrib"/>
 
44
  <ref name="I18n.attrib"/>
 
45
  <ref name="Font.attrib"/>
 
46
</define>
 
47
 
 
48
<define name="Font.attrib">
 
49
  <optional>
 
50
    <attribute name="size"/>
 
51
  </optional>
 
52
  <optional>
 
53
    <attribute name="color">
 
54
      <ref name="Color.datatype"/>
 
55
    </attribute>
 
56
  </optional>
 
57
  <optional>
 
58
    <attribute name="face"/>
 
59
  </optional>
 
60
</define>
 
61
 
 
62
<define name="s">
 
63
  <element name="s">
 
64
    <ref name="s.attlist"/>
 
65
    <ref name="Inline.model"/>
 
66
  </element>
 
67
</define>
 
68
 
 
69
<define name="s.attlist">
 
70
  <ref name="Common.attrib"/>
 
71
</define>
 
72
 
 
73
<define name="strike">
 
74
  <element name="strike">
 
75
    <ref name="strike.attlist"/>
 
76
    <ref name="Inline.model"/>
 
77
  </element>
 
78
</define>
 
79
 
 
80
<define name="strike.attlist">
 
81
  <ref name="Common.attrib"/>
 
82
</define>
 
83
 
 
84
<define name="u">
 
85
  <element name="u">
 
86
    <ref name="u.attlist"/>
 
87
    <ref name="Inline.model"/>
 
88
  </element>
 
89
</define>
 
90
 
 
91
<define name="u.attlist">
 
92
  <ref name="Common.attrib"/>
 
93
</define>
 
94
 
 
95
<define name="dir">
 
96
  <element name="dir">
 
97
    <ref name="dir.attlist"/>
 
98
    <oneOrMore>
 
99
      <ref name="li.noblock"/>
 
100
    </oneOrMore>
 
101
  </element>
 
102
</define>
 
103
 
 
104
<define name="dir.attlist">
 
105
  <ref name="Common.attrib"/>
 
106
  <optional>
 
107
    <attribute name="compact">
 
108
      <value>compact</value>
 
109
    </attribute>
 
110
  </optional>
 
111
</define>
 
112
 
 
113
<define name="menu">
 
114
  <element name="menu">
 
115
    <ref name="menu.attlist"/>
 
116
    <oneOrMore>
 
117
      <ref name="li.noblock"/>
 
118
    </oneOrMore>
 
119
  </element>
 
120
</define>
 
121
 
 
122
<define name="menu.attlist">
 
123
  <ref name="Common.attrib"/>
 
124
  <optional>
 
125
    <attribute name="compact">
 
126
      <value>compact</value>
 
127
    </attribute>
 
128
  </optional>
 
129
</define>
 
130
 
 
131
<define name="li.noblock">
 
132
  <element name="li">
 
133
    <ref name="li.attlist"/>
 
134
    <ref name="Inline.model"/>
 
135
  </element>
 
136
</define>
 
137
 
 
138
<define name="isindex">
 
139
  <element name="isindex">
 
140
    <ref name="isindex.attlist"/>
 
141
  </element>
 
142
</define>
 
143
 
 
144
<define name="isindex.attlist">
 
145
  <ref name="Core.attrib"/>
 
146
  <ref name="I18n.attrib"/>
 
147
  <optional>
 
148
    <attribute name="prompt">
 
149
      <ref name="Text.datatype"/>
 
150
    </attribute>
 
151
  </optional>
 
152
</define>
 
153
 
 
154
<define name="applet.attlist" combine="interleave">
 
155
  <optional>
 
156
    <attribute name="align">
 
157
      <choice>
 
158
        <value>top</value>
 
159
        <value>middle</value>
 
160
        <value>bottom</value>
 
161
        <value>left</value>
 
162
        <value>right</value>
 
163
      </choice>
 
164
    </attribute>
 
165
  </optional>
 
166
  <optional>
 
167
    <attribute name="hspace">
 
168
      <ref name="Pixels.datatype"/>
 
169
    </attribute>
 
170
  </optional>
 
171
  <optional>
 
172
    <attribute name="vspace">
 
173
      <ref name="Pixels.datatype"/>
 
174
    </attribute>
 
175
  </optional>
 
176
</define>
 
177
 
 
178
<define name="body.attlist" combine="interleave">
 
179
  <optional>
 
180
    <attribute name="background">
 
181
      <ref name="URI.datatype"/>
 
182
    </attribute>
 
183
  </optional>
 
184
  <optional>
 
185
    <attribute name="bgcolor">
 
186
      <ref name="Color.datatype"/>
 
187
    </attribute>
 
188
  </optional>
 
189
  <optional>
 
190
    <attribute name="text">
 
191
      <ref name="Color.datatype"/>
 
192
    </attribute>
 
193
  </optional>
 
194
  <optional>
 
195
    <attribute name="link">
 
196
      <ref name="Color.datatype"/>
 
197
    </attribute>
 
198
  </optional>
 
199
  <optional>
 
200
    <attribute name="vlink">
 
201
      <ref name="Color.datatype"/>
 
202
    </attribute>
 
203
  </optional>
 
204
  <optional>
 
205
    <attribute name="alink">
 
206
      <ref name="Color.datatype"/>
 
207
    </attribute>
 
208
  </optional>
 
209
</define>
 
210
 
 
211
<define name="br.attlist" combine="interleave">
 
212
  <optional>
 
213
    <attribute name="clear">
 
214
      <choice>
 
215
        <value>left</value>
 
216
        <value>all</value>
 
217
        <value>right</value>
 
218
        <value>none</value>
 
219
      </choice>
 
220
    </attribute>
 
221
  </optional>
 
222
</define>
 
223
 
 
224
<define name="caption.attlist" combine="interleave">
 
225
  <ref name="align.attrib"/>
 
226
</define>
 
227
 
 
228
<define name="div.attlist" combine="interleave">
 
229
  <ref name="align.attrib"/>
 
230
</define>
 
231
 
 
232
<!-- Not in the CR, but surely an error. -->
 
233
 
 
234
<define name="dl.attlist" combine="interleave">
 
235
  <optional>
 
236
    <attribute name="compact">
 
237
      <value>compact</value>
 
238
    </attribute>
 
239
  </optional>
 
240
</define>
 
241
 
 
242
<define name="Heading.attrib" combine="interleave">
 
243
  <ref name="align.attrib"/>
 
244
</define>
 
245
 
 
246
<define name="hr.attlist" combine="interleave">
 
247
  <optional>
 
248
    <attribute name="align">
 
249
      <choice>
 
250
        <value>left</value>
 
251
        <value>center</value>
 
252
        <value>right</value>
 
253
      </choice>
 
254
    </attribute>
 
255
  </optional>
 
256
  <optional>
 
257
    <attribute name="noshade">
 
258
      <value>noshade</value>
 
259
    </attribute>
 
260
  </optional>
 
261
  <optional>
 
262
    <attribute name="size">
 
263
      <ref name="Pixels.datatype"/>
 
264
    </attribute>
 
265
  </optional>
 
266
  <optional>
 
267
    <attribute name="width">
 
268
      <ref name="Pixels.datatype"/>
 
269
    </attribute>
 
270
  </optional>
 
271
</define>
 
272
 
 
273
<define name="img.attlist" combine="interleave">
 
274
  <optional>
 
275
    <attribute name="align">
 
276
      <choice>
 
277
        <value>top</value>
 
278
        <value>middle</value>
 
279
        <value>bottom</value>
 
280
        <value>left</value>
 
281
        <value>right</value>
 
282
      </choice>
 
283
    </attribute>
 
284
  </optional>
 
285
  <optional>
 
286
    <attribute name="border">
 
287
      <ref name="Pixels.datatype"/>
 
288
    </attribute>
 
289
  </optional>
 
290
  <optional>
 
291
    <attribute name="hspace">
 
292
      <ref name="Pixels.datatype"/>
 
293
    </attribute>
 
294
  </optional>
 
295
  <optional>
 
296
    <attribute name="vspace">
 
297
      <ref name="Pixels.datatype"/>
 
298
    </attribute>
 
299
  </optional>
 
300
</define>
 
301
 
 
302
<define name="input.attlist" combine="interleave">
 
303
  <ref name="align.attrib"/>
 
304
</define>
 
305
 
 
306
<define name="legend.attlist" combine="interleave">
 
307
  <optional>
 
308
    <attribute name="align">
 
309
      <choice>
 
310
        <value>top</value>
 
311
        <value>bottom</value>
 
312
        <value>left</value>
 
313
        <value>right</value>
 
314
      </choice>
 
315
    </attribute>
 
316
  </optional>
 
317
</define>
 
318
 
 
319
<define name="li.attlist" combine="interleave">
 
320
  <optional>
 
321
    <attribute name="type"/>
 
322
  </optional>
 
323
  <optional>
 
324
    <attribute name="value"/>
 
325
  </optional>
 
326
</define>
 
327
 
 
328
<define name="object.attlist" combine="interleave">
 
329
  <optional>
 
330
    <attribute name="align">
 
331
      <choice>
 
332
        <value>top</value>
 
333
        <value>middle</value>
 
334
        <value>bottom</value>
 
335
        <value>left</value>
 
336
        <value>right</value>
 
337
      </choice>
 
338
    </attribute>
 
339
  </optional>
 
340
  <optional>
 
341
    <attribute name="border">
 
342
      <ref name="Pixels.datatype"/>
 
343
    </attribute>
 
344
  </optional>
 
345
  <optional>
 
346
    <attribute name="hspace">
 
347
      <ref name="Pixels.datatype"/>
 
348
    </attribute>
 
349
  </optional>
 
350
  <optional>
 
351
    <attribute name="vspace">
 
352
      <ref name="Pixels.datatype"/>
 
353
    </attribute>
 
354
  </optional>
 
355
</define>
 
356
 
 
357
<define name="ol.attlist" combine="interleave">
 
358
  <optional>
 
359
    <attribute name="type"/>
 
360
  </optional>
 
361
  <optional>
 
362
    <attribute name="compact">
 
363
      <value>compact</value>
 
364
    </attribute>
 
365
  </optional>
 
366
  <optional>
 
367
    <attribute name="start"/>
 
368
  </optional>
 
369
</define>
 
370
 
 
371
<define name="p.attlist" combine="interleave">
 
372
  <ref name="align.attrib"/>
 
373
</define>
 
374
 
 
375
<define name="pre.attlist" combine="interleave">
 
376
  <optional>
 
377
    <attribute name="width">
 
378
      <ref name="Length.datatype"/>
 
379
    </attribute>
 
380
  </optional>
 
381
</define>
 
382
 
 
383
<define name="script.attlist" combine="interleave">
 
384
  <optional>
 
385
    <attribute name="language">
 
386
      <ref name="ContentType.datatype"/>
 
387
    </attribute>
 
388
  </optional>
 
389
</define>
 
390
 
 
391
<define name="table.attlist" combine="interleave">
 
392
  <ref name="align.attrib"/>
 
393
  <optional>
 
394
    <attribute name="bgcolor">
 
395
      <ref name="Color.datatype"/>
 
396
    </attribute>
 
397
  </optional>
 
398
</define>
 
399
 
 
400
<define name="tr.attlist" combine="interleave">
 
401
  <optional>
 
402
    <attribute name="bgcolor">
 
403
      <ref name="Color.datatype"/>
 
404
    </attribute>
 
405
  </optional>
 
406
</define>
 
407
 
 
408
<define name="Cell.attrib" combine="interleave">
 
409
  <optional>
 
410
    <attribute name="nowrap">
 
411
      <value>nowrap</value>
 
412
    </attribute>
 
413
  </optional>
 
414
  <optional>
 
415
    <attribute name="bgcolor">
 
416
      <ref name="Color.datatype"/>
 
417
    </attribute>
 
418
  </optional>
 
419
  <optional>
 
420
    <attribute name="width">
 
421
      <ref name="Pixels.datatype"/>
 
422
    </attribute>
 
423
  </optional>
 
424
  <optional>
 
425
    <attribute name="height">
 
426
      <ref name="Pixels.datatype"/>
 
427
    </attribute>
 
428
  </optional>
 
429
</define>
 
430
 
 
431
<define name="ul.attlist" combine="interleave">
 
432
  <optional>
 
433
    <attribute name="type"/>
 
434
  </optional>
 
435
  <optional>
 
436
    <attribute name="compact">
 
437
      <value>compact</value>
 
438
    </attribute>
 
439
  </optional>
 
440
</define>
 
441
 
 
442
<define name="align.attrib">
 
443
  <optional>
 
444
    <attribute name="align">
 
445
      <choice>
 
446
        <value>left</value>
 
447
        <value>all</value>
 
448
        <value>right</value>
 
449
        <value>none</value>
 
450
      </choice>
 
451
    </attribute>
 
452
  </optional>
 
453
</define>
 
454
 
 
455
<define name="Color.datatype">
 
456
  <text/>
 
457
</define>
 
458
 
 
459
<define name="Inline.class" combine="choice">
 
460
  <choice>
 
461
    <ref name="font"/>
 
462
    <ref name="basefont"/>
 
463
    <ref name="s"/>
 
464
    <ref name="strike"/>
 
465
    <ref name="u"/>
 
466
  </choice>
 
467
</define>
 
468
 
 
469
<define name="Block.class" combine="choice">
 
470
  <choice>
 
471
    <ref name="center"/>
 
472
    <ref name="isindex"/>
 
473
  </choice>
 
474
</define>
 
475
 
 
476
<define name="List.class" combine="choice">
 
477
  <choice>
 
478
    <ref name="dir"/>
 
479
    <ref name="menu"/>
 
480
  </choice>
 
481
</define>
 
482
 
 
483
<define name="head.content" combine="interleave">
 
484
  <optional>
 
485
    <ref name="isindex"/>
 
486
  </optional>
 
487
</define>
 
488
 
 
489
<define name="Block.mix" combine="choice">
 
490
  <choice>
 
491
    <text/>
 
492
    <ref name="Inline.class"/>
 
493
  </choice>
 
494
</define>
 
495
 
 
496
<!-- With the legacy module and the frames modules, the html
 
497
     element can contain either body or frameset. -->
 
498
<define name="frameset" combine="choice">
 
499
  <ref name="body"/>
 
500
</define>
 
501
 
 
502
</grammar>
 
 
b'\\ No newline at end of file'