relaton-3gpp 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1131 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
+ <include href="biblio.rng">
4
+ <start>
5
+ <ref name="document"/>
6
+ </start>
7
+ </include>
8
+ <define name="document">
9
+ <element name="document">
10
+ <optional>
11
+ <attribute name="identifier"/>
12
+ </optional>
13
+ <ref name="bibdata"/>
14
+ <ref name="sections"/>
15
+ <zeroOrMore>
16
+ <ref name="references"/>
17
+ </zeroOrMore>
18
+ </element>
19
+ </define>
20
+ <define name="bibdata">
21
+ <element name="bibdata">
22
+ <ref name="BibData"/>
23
+ </element>
24
+ </define>
25
+ <define name="sections">
26
+ <element name="sections">
27
+ <oneOrMore>
28
+ <ref name="section"/>
29
+ </oneOrMore>
30
+ </element>
31
+ </define>
32
+ <define name="section">
33
+ <element name="section">
34
+ <ref name="Basic-Section"/>
35
+ <zeroOrMore>
36
+ <ref name="section"/>
37
+ </zeroOrMore>
38
+ </element>
39
+ </define>
40
+ <define name="Basic-Section">
41
+ <optional>
42
+ <attribute name="id">
43
+ <data type="ID"/>
44
+ </attribute>
45
+ </optional>
46
+ <optional>
47
+ <attribute name="language"/>
48
+ </optional>
49
+ <optional>
50
+ <attribute name="script"/>
51
+ </optional>
52
+ <optional>
53
+ <ref name="section-title"/>
54
+ </optional>
55
+ <zeroOrMore>
56
+ <ref name="BasicBlock"/>
57
+ </zeroOrMore>
58
+ </define>
59
+ <define name="references">
60
+ <element name="references">
61
+ <optional>
62
+ <attribute name="id">
63
+ <data type="ID"/>
64
+ </attribute>
65
+ </optional>
66
+ <optional>
67
+ <ref name="section-title"/>
68
+ </optional>
69
+ <zeroOrMore>
70
+ <ref name="BasicBlock"/>
71
+ </zeroOrMore>
72
+ <zeroOrMore>
73
+ <ref name="bibitem"/>
74
+ </zeroOrMore>
75
+ </element>
76
+ </define>
77
+ <define name="section-title">
78
+ <element name="title">
79
+ <zeroOrMore>
80
+ <ref name="TextElement"/>
81
+ </zeroOrMore>
82
+ </element>
83
+ </define>
84
+ <define name="BasicBlock">
85
+ <choice>
86
+ <ref name="paragraph-with-footnote"/>
87
+ <ref name="table"/>
88
+ <ref name="formula"/>
89
+ <ref name="admonition"/>
90
+ <ref name="ol"/>
91
+ <ref name="ul"/>
92
+ <ref name="dl"/>
93
+ <ref name="figure"/>
94
+ <ref name="quote"/>
95
+ <ref name="sourcecode"/>
96
+ <ref name="example"/>
97
+ <ref name="review"/>
98
+ <ref name="pre"/>
99
+ <ref name="note"/>
100
+ <ref name="pagebreak"/>
101
+ <ref name="hr"/>
102
+ <ref name="bookmark"/>
103
+ </choice>
104
+ </define>
105
+ <define name="paragraph">
106
+ <element name="p">
107
+ <ref name="ParagraphType"/>
108
+ </element>
109
+ </define>
110
+ <define name="Alignments">
111
+ <choice>
112
+ <value>left</value>
113
+ <value>right</value>
114
+ <value>center</value>
115
+ <value>justified</value>
116
+ </choice>
117
+ </define>
118
+ <define name="ParagraphType">
119
+ <attribute name="id">
120
+ <data type="ID"/>
121
+ </attribute>
122
+ <optional>
123
+ <attribute name="align">
124
+ <ref name="Alignments"/>
125
+ </attribute>
126
+ </optional>
127
+ <zeroOrMore>
128
+ <ref name="TextElement"/>
129
+ </zeroOrMore>
130
+ <zeroOrMore>
131
+ <ref name="note"/>
132
+ </zeroOrMore>
133
+ </define>
134
+ <define name="paragraph-with-footnote">
135
+ <element name="p">
136
+ <attribute name="id">
137
+ <data type="ID"/>
138
+ </attribute>
139
+ <optional>
140
+ <attribute name="align">
141
+ <ref name="Alignments"/>
142
+ </attribute>
143
+ </optional>
144
+ <zeroOrMore>
145
+ <choice>
146
+ <ref name="TextElement"/>
147
+ <ref name="fn"/>
148
+ </choice>
149
+ </zeroOrMore>
150
+ <zeroOrMore>
151
+ <ref name="note"/>
152
+ </zeroOrMore>
153
+ </element>
154
+ </define>
155
+ <define name="note">
156
+ <element name="note">
157
+ <attribute name="id">
158
+ <data type="ID"/>
159
+ </attribute>
160
+ <oneOrMore>
161
+ <ref name="paragraph"/>
162
+ </oneOrMore>
163
+ </element>
164
+ </define>
165
+ <define name="review">
166
+ <element name="review">
167
+ <attribute name="id">
168
+ <data type="ID"/>
169
+ </attribute>
170
+ <attribute name="reviewer"/>
171
+ <optional>
172
+ <attribute name="date">
173
+ <data type="dateTime"/>
174
+ </attribute>
175
+ </optional>
176
+ <attribute name="from">
177
+ <data type="IDREF"/>
178
+ </attribute>
179
+ <optional>
180
+ <attribute name="to">
181
+ <data type="IDREF"/>
182
+ </attribute>
183
+ </optional>
184
+ <oneOrMore>
185
+ <ref name="paragraph"/>
186
+ </oneOrMore>
187
+ </element>
188
+ </define>
189
+ <define name="formula">
190
+ <element name="formula">
191
+ <attribute name="id">
192
+ <data type="ID"/>
193
+ </attribute>
194
+ <optional>
195
+ <attribute name="unnumbered">
196
+ <data type="boolean"/>
197
+ </attribute>
198
+ </optional>
199
+ <optional>
200
+ <attribute name="subsequence"/>
201
+ </optional>
202
+ <optional>
203
+ <attribute name="inequality">
204
+ <data type="boolean"/>
205
+ </attribute>
206
+ </optional>
207
+ <ref name="stem"/>
208
+ <optional>
209
+ <ref name="dl"/>
210
+ </optional>
211
+ <zeroOrMore>
212
+ <ref name="note"/>
213
+ </zeroOrMore>
214
+ </element>
215
+ </define>
216
+ <define name="quote">
217
+ <element name="quote">
218
+ <attribute name="id">
219
+ <data type="ID"/>
220
+ </attribute>
221
+ <optional>
222
+ <attribute name="alignment">
223
+ <ref name="Alignments"/>
224
+ </attribute>
225
+ </optional>
226
+ <optional>
227
+ <ref name="quote-source"/>
228
+ </optional>
229
+ <optional>
230
+ <ref name="quote-author"/>
231
+ </optional>
232
+ <oneOrMore>
233
+ <ref name="paragraph-with-footnote"/>
234
+ </oneOrMore>
235
+ <zeroOrMore>
236
+ <ref name="note"/>
237
+ </zeroOrMore>
238
+ </element>
239
+ </define>
240
+ <define name="quote-source">
241
+ <element name="source">
242
+ <ref name="erefType"/>
243
+ </element>
244
+ </define>
245
+ <define name="quote-author">
246
+ <element name="author">
247
+ <text/>
248
+ </element>
249
+ </define>
250
+ <define name="sourcecode">
251
+ <element name="sourcecode">
252
+ <attribute name="id">
253
+ <data type="ID"/>
254
+ </attribute>
255
+ <optional>
256
+ <attribute name="unnumbered">
257
+ <data type="boolean"/>
258
+ </attribute>
259
+ </optional>
260
+ <optional>
261
+ <attribute name="subsequence"/>
262
+ </optional>
263
+ <optional>
264
+ <attribute name="lang"/>
265
+ </optional>
266
+ <optional>
267
+ <ref name="tname"/>
268
+ </optional>
269
+ <oneOrMore>
270
+ <choice>
271
+ <text/>
272
+ <ref name="callout"/>
273
+ </choice>
274
+ </oneOrMore>
275
+ <zeroOrMore>
276
+ <ref name="annotation"/>
277
+ </zeroOrMore>
278
+ <zeroOrMore>
279
+ <ref name="note"/>
280
+ </zeroOrMore>
281
+ </element>
282
+ </define>
283
+ <define name="pre">
284
+ <element name="pre">
285
+ <attribute name="id">
286
+ <data type="ID"/>
287
+ </attribute>
288
+ <optional>
289
+ <attribute name="alt"/>
290
+ </optional>
291
+ <optional>
292
+ <ref name="tname"/>
293
+ </optional>
294
+ <text/>
295
+ <zeroOrMore>
296
+ <ref name="note"/>
297
+ </zeroOrMore>
298
+ </element>
299
+ </define>
300
+ <define name="table">
301
+ <element name="table">
302
+ <attribute name="id">
303
+ <data type="ID"/>
304
+ </attribute>
305
+ <optional>
306
+ <attribute name="unnumbered">
307
+ <data type="boolean"/>
308
+ </attribute>
309
+ </optional>
310
+ <optional>
311
+ <attribute name="subsequence"/>
312
+ </optional>
313
+ <optional>
314
+ <attribute name="alt"/>
315
+ </optional>
316
+ <optional>
317
+ <attribute name="summary"/>
318
+ </optional>
319
+ <optional>
320
+ <attribute name="uri">
321
+ <data type="anyURI"/>
322
+ </attribute>
323
+ </optional>
324
+ <optional>
325
+ <ref name="tname"/>
326
+ </optional>
327
+ <optional>
328
+ <ref name="thead"/>
329
+ </optional>
330
+ <ref name="tbody"/>
331
+ <optional>
332
+ <ref name="tfoot"/>
333
+ </optional>
334
+ <zeroOrMore>
335
+ <ref name="table-note"/>
336
+ </zeroOrMore>
337
+ <optional>
338
+ <ref name="dl"/>
339
+ </optional>
340
+ </element>
341
+ </define>
342
+ <define name="tname">
343
+ <element name="name">
344
+ <oneOrMore>
345
+ <choice>
346
+ <ref name="PureTextElement"/>
347
+ <ref name="eref"/>
348
+ <ref name="stem"/>
349
+ <ref name="keyword"/>
350
+ <ref name="xref"/>
351
+ <ref name="hyperlink"/>
352
+ </choice>
353
+ </oneOrMore>
354
+ </element>
355
+ </define>
356
+ <define name="thead">
357
+ <element name="thead">
358
+ <ref name="tr"/>
359
+ </element>
360
+ </define>
361
+ <define name="tfoot">
362
+ <element name="tfoot">
363
+ <ref name="tr"/>
364
+ </element>
365
+ </define>
366
+ <define name="tbody">
367
+ <element name="tbody">
368
+ <oneOrMore>
369
+ <ref name="tr"/>
370
+ </oneOrMore>
371
+ </element>
372
+ </define>
373
+ <define name="table-note">
374
+ <element name="note">
375
+ <ref name="paragraph"/>
376
+ </element>
377
+ </define>
378
+ <define name="tr">
379
+ <element name="tr">
380
+ <oneOrMore>
381
+ <choice>
382
+ <ref name="td"/>
383
+ <ref name="th"/>
384
+ </choice>
385
+ </oneOrMore>
386
+ </element>
387
+ </define>
388
+ <define name="td">
389
+ <element name="td">
390
+ <optional>
391
+ <attribute name="colspan"/>
392
+ </optional>
393
+ <optional>
394
+ <attribute name="rowspan"/>
395
+ </optional>
396
+ <optional>
397
+ <attribute name="align">
398
+ <choice>
399
+ <value>left</value>
400
+ <value>right</value>
401
+ <value>center</value>
402
+ </choice>
403
+ </attribute>
404
+ </optional>
405
+ <optional>
406
+ <attribute name="valign">
407
+ <choice>
408
+ <value>top</value>
409
+ <value>middle</value>
410
+ <value>bottom</value>
411
+ <value>baseline</value>
412
+ </choice>
413
+ </attribute>
414
+ </optional>
415
+ <choice>
416
+ <zeroOrMore>
417
+ <ref name="TextElement"/>
418
+ </zeroOrMore>
419
+ <oneOrMore>
420
+ <ref name="paragraph-with-footnote"/>
421
+ </oneOrMore>
422
+ </choice>
423
+ </element>
424
+ </define>
425
+ <define name="th">
426
+ <element name="th">
427
+ <optional>
428
+ <attribute name="colspan"/>
429
+ </optional>
430
+ <optional>
431
+ <attribute name="rowspan"/>
432
+ </optional>
433
+ <optional>
434
+ <attribute name="align">
435
+ <choice>
436
+ <value>left</value>
437
+ <value>right</value>
438
+ <value>center</value>
439
+ </choice>
440
+ </attribute>
441
+ </optional>
442
+ <optional>
443
+ <attribute name="valign">
444
+ <choice>
445
+ <value>top</value>
446
+ <value>middle</value>
447
+ <value>bottom</value>
448
+ <value>baseline</value>
449
+ </choice>
450
+ </attribute>
451
+ </optional>
452
+ <choice>
453
+ <zeroOrMore>
454
+ <ref name="TextElement"/>
455
+ </zeroOrMore>
456
+ <oneOrMore>
457
+ <ref name="paragraph-with-footnote"/>
458
+ </oneOrMore>
459
+ </choice>
460
+ </element>
461
+ </define>
462
+ <define name="example">
463
+ <element name="example">
464
+ <attribute name="id">
465
+ <data type="ID"/>
466
+ </attribute>
467
+ <optional>
468
+ <attribute name="unnumbered">
469
+ <data type="boolean"/>
470
+ </attribute>
471
+ </optional>
472
+ <optional>
473
+ <attribute name="subsequence"/>
474
+ </optional>
475
+ <optional>
476
+ <ref name="tname"/>
477
+ </optional>
478
+ <oneOrMore>
479
+ <choice>
480
+ <ref name="formula"/>
481
+ <ref name="ul"/>
482
+ <ref name="ol"/>
483
+ <ref name="dl"/>
484
+ <ref name="quote"/>
485
+ <ref name="sourcecode"/>
486
+ <ref name="paragraph-with-footnote"/>
487
+ </choice>
488
+ </oneOrMore>
489
+ <zeroOrMore>
490
+ <ref name="note"/>
491
+ </zeroOrMore>
492
+ </element>
493
+ </define>
494
+ <define name="admonition">
495
+ <element name="admonition">
496
+ <attribute name="type">
497
+ <ref name="AdmonitionType"/>
498
+ </attribute>
499
+ <optional>
500
+ <attribute name="class"/>
501
+ </optional>
502
+ <attribute name="id">
503
+ <data type="ID"/>
504
+ </attribute>
505
+ <optional>
506
+ <attribute name="uri">
507
+ <data type="anyURI"/>
508
+ </attribute>
509
+ </optional>
510
+ <optional>
511
+ <ref name="tname"/>
512
+ </optional>
513
+ <zeroOrMore>
514
+ <ref name="paragraph-with-footnote"/>
515
+ </zeroOrMore>
516
+ <zeroOrMore>
517
+ <ref name="note"/>
518
+ </zeroOrMore>
519
+ </element>
520
+ </define>
521
+ <define name="AdmonitionType">
522
+ <choice>
523
+ <value>warning</value>
524
+ <value>note</value>
525
+ <value>tip</value>
526
+ <value>important</value>
527
+ <value>caution</value>
528
+ <value>statement</value>
529
+ </choice>
530
+ </define>
531
+ <define name="figure">
532
+ <element name="figure">
533
+ <attribute name="id">
534
+ <data type="ID"/>
535
+ </attribute>
536
+ <optional>
537
+ <attribute name="unnumbered">
538
+ <data type="boolean"/>
539
+ </attribute>
540
+ </optional>
541
+ <optional>
542
+ <attribute name="subsequence"/>
543
+ </optional>
544
+ <optional>
545
+ <attribute name="class"/>
546
+ </optional>
547
+ <optional>
548
+ <ref name="source"/>
549
+ </optional>
550
+ <optional>
551
+ <ref name="tname"/>
552
+ </optional>
553
+ <choice>
554
+ <ref name="image"/>
555
+ <ref name="video"/>
556
+ <ref name="audio"/>
557
+ <ref name="pre"/>
558
+ <oneOrMore>
559
+ <ref name="paragraph-with-footnote"/>
560
+ </oneOrMore>
561
+ <zeroOrMore>
562
+ <ref name="figure"/>
563
+ </zeroOrMore>
564
+ </choice>
565
+ <zeroOrMore>
566
+ <ref name="fn"/>
567
+ </zeroOrMore>
568
+ <optional>
569
+ <ref name="dl"/>
570
+ </optional>
571
+ <zeroOrMore>
572
+ <ref name="note"/>
573
+ </zeroOrMore>
574
+ </element>
575
+ </define>
576
+ <define name="TextElement">
577
+ <choice>
578
+ <text/>
579
+ <ref name="em"/>
580
+ <ref name="eref"/>
581
+ <ref name="strong"/>
582
+ <ref name="stem"/>
583
+ <ref name="sub"/>
584
+ <ref name="sup"/>
585
+ <ref name="tt"/>
586
+ <ref name="underline"/>
587
+ <ref name="keyword"/>
588
+ <ref name="ruby"/>
589
+ <ref name="strike"/>
590
+ <ref name="smallcap"/>
591
+ <ref name="xref"/>
592
+ <ref name="br"/>
593
+ <ref name="hyperlink"/>
594
+ <ref name="hr"/>
595
+ <ref name="pagebreak"/>
596
+ <ref name="bookmark"/>
597
+ <ref name="image"/>
598
+ <ref name="index"/>
599
+ <ref name="index-xref"/>
600
+ </choice>
601
+ </define>
602
+ <define name="PureTextElement">
603
+ <choice>
604
+ <text/>
605
+ <ref name="em"/>
606
+ <ref name="strong"/>
607
+ <ref name="sub"/>
608
+ <ref name="sup"/>
609
+ <ref name="tt"/>
610
+ <ref name="underline"/>
611
+ <ref name="strike"/>
612
+ <ref name="smallcap"/>
613
+ <ref name="br"/>
614
+ </choice>
615
+ </define>
616
+ <define name="source">
617
+ <element name="source">
618
+ <ref name="TypedUri"/>
619
+ </element>
620
+ </define>
621
+ <define name="em">
622
+ <element name="em">
623
+ <zeroOrMore>
624
+ <choice>
625
+ <ref name="PureTextElement"/>
626
+ <ref name="stem"/>
627
+ </choice>
628
+ </zeroOrMore>
629
+ </element>
630
+ </define>
631
+ <define name="strong">
632
+ <element name="strong">
633
+ <zeroOrMore>
634
+ <choice>
635
+ <ref name="PureTextElement"/>
636
+ <ref name="stem"/>
637
+ </choice>
638
+ </zeroOrMore>
639
+ </element>
640
+ </define>
641
+ <define name="tt">
642
+ <element name="tt">
643
+ <zeroOrMore>
644
+ <ref name="PureTextElement"/>
645
+ </zeroOrMore>
646
+ </element>
647
+ </define>
648
+ <define name="keyword">
649
+ <element name="keyword">
650
+ <zeroOrMore>
651
+ <ref name="PureTextElement"/>
652
+ </zeroOrMore>
653
+ </element>
654
+ </define>
655
+ <define name="sub">
656
+ <element name="sub">
657
+ <zeroOrMore>
658
+ <ref name="PureTextElement"/>
659
+ </zeroOrMore>
660
+ </element>
661
+ </define>
662
+ <define name="sup">
663
+ <element name="sup">
664
+ <zeroOrMore>
665
+ <ref name="PureTextElement"/>
666
+ </zeroOrMore>
667
+ </element>
668
+ </define>
669
+ <define name="strike">
670
+ <element name="strike">
671
+ <zeroOrMore>
672
+ <ref name="PureTextElement"/>
673
+ </zeroOrMore>
674
+ </element>
675
+ </define>
676
+ <define name="underline">
677
+ <element name="underline">
678
+ <zeroOrMore>
679
+ <ref name="PureTextElement"/>
680
+ </zeroOrMore>
681
+ </element>
682
+ </define>
683
+ <define name="smallcap">
684
+ <element name="smallcap">
685
+ <zeroOrMore>
686
+ <ref name="PureTextElement"/>
687
+ </zeroOrMore>
688
+ </element>
689
+ </define>
690
+ <define name="ruby">
691
+ <element name="ruby">
692
+ <zeroOrMore>
693
+ <choice>
694
+ <ref name="PureTextElement"/>
695
+ <ref name="rp"/>
696
+ <ref name="rt"/>
697
+ </choice>
698
+ </zeroOrMore>
699
+ </element>
700
+ </define>
701
+ <define name="rp">
702
+ <element name="rp">
703
+ <zeroOrMore>
704
+ <ref name="PureTextElement"/>
705
+ </zeroOrMore>
706
+ </element>
707
+ </define>
708
+ <define name="rt">
709
+ <element name="rt">
710
+ <zeroOrMore>
711
+ <ref name="PureTextElement"/>
712
+ </zeroOrMore>
713
+ </element>
714
+ </define>
715
+ <define name="br">
716
+ <element name="br">
717
+ <empty/>
718
+ </element>
719
+ </define>
720
+ <define name="hr">
721
+ <element name="hr">
722
+ <empty/>
723
+ </element>
724
+ </define>
725
+ <define name="pagebreak">
726
+ <element name="pagebreak">
727
+ <empty/>
728
+ </element>
729
+ </define>
730
+ <define name="index">
731
+ <element name="index">
732
+ <optional>
733
+ <attribute name="to">
734
+ <data type="IDREF"/>
735
+ </attribute>
736
+ </optional>
737
+ <element name="primary">
738
+ <oneOrMore>
739
+ <ref name="PureTextElement"/>
740
+ </oneOrMore>
741
+ </element>
742
+ <optional>
743
+ <element name="secondary">
744
+ <oneOrMore>
745
+ <ref name="PureTextElement"/>
746
+ </oneOrMore>
747
+ </element>
748
+ </optional>
749
+ <optional>
750
+ <element name="tertiary">
751
+ <oneOrMore>
752
+ <ref name="PureTextElement"/>
753
+ </oneOrMore>
754
+ </element>
755
+ </optional>
756
+ </element>
757
+ </define>
758
+ <define name="index-xref">
759
+ <element name="index-xref">
760
+ <attribute name="also">
761
+ <data type="boolean"/>
762
+ </attribute>
763
+ <element name="primary">
764
+ <oneOrMore>
765
+ <ref name="PureTextElement"/>
766
+ </oneOrMore>
767
+ </element>
768
+ <optional>
769
+ <element name="secondary">
770
+ <oneOrMore>
771
+ <ref name="PureTextElement"/>
772
+ </oneOrMore>
773
+ </element>
774
+ </optional>
775
+ <optional>
776
+ <element name="tertiary">
777
+ <oneOrMore>
778
+ <ref name="PureTextElement"/>
779
+ </oneOrMore>
780
+ </element>
781
+ </optional>
782
+ <element name="target">
783
+ <oneOrMore>
784
+ <ref name="PureTextElement"/>
785
+ </oneOrMore>
786
+ </element>
787
+ </element>
788
+ </define>
789
+ <!-- bare ID element, used for referencing arbitrary spans of text -->
790
+ <define name="bookmark">
791
+ <element name="bookmark">
792
+ <attribute name="id">
793
+ <data type="ID"/>
794
+ </attribute>
795
+ <empty/>
796
+ </element>
797
+ </define>
798
+ <define name="ReferenceFormat">
799
+ <choice>
800
+ <value>external</value>
801
+ <value>inline</value>
802
+ <value>footnote</value>
803
+ <value>callout</value>
804
+ </choice>
805
+ </define>
806
+ <define name="eref">
807
+ <element name="eref">
808
+ <ref name="erefType"/>
809
+ </element>
810
+ </define>
811
+ <define name="erefType">
812
+ <optional>
813
+ <attribute name="normative">
814
+ <data type="boolean"/>
815
+ </attribute>
816
+ </optional>
817
+ <attribute name="citeas"/>
818
+ <attribute name="type">
819
+ <ref name="ReferenceFormat"/>
820
+ </attribute>
821
+ <optional>
822
+ <attribute name="alt"/>
823
+ </optional>
824
+ <ref name="CitationType"/>
825
+ <text/>
826
+ </define>
827
+ <define name="hyperlink">
828
+ <element name="link">
829
+ <attribute name="target">
830
+ <data type="anyURI"/>
831
+ </attribute>
832
+ <attribute name="type">
833
+ <ref name="ReferenceFormat"/>
834
+ </attribute>
835
+ <optional>
836
+ <attribute name="alt"/>
837
+ </optional>
838
+ <text/>
839
+ </element>
840
+ </define>
841
+ <define name="xref">
842
+ <element name="xref">
843
+ <attribute name="target">
844
+ <data type="IDREF"/>
845
+ </attribute>
846
+ <attribute name="type">
847
+ <ref name="ReferenceFormat"/>
848
+ </attribute>
849
+ <optional>
850
+ <attribute name="alt"/>
851
+ </optional>
852
+ <text/>
853
+ </element>
854
+ </define>
855
+ <define name="fn">
856
+ <element name="fn">
857
+ <attribute name="reference"/>
858
+ <oneOrMore>
859
+ <ref name="paragraph"/>
860
+ </oneOrMore>
861
+ </element>
862
+ </define>
863
+ <!--
864
+ This is xref with fixed @type="footnote", and @target built in as paragraph+
865
+ @reference replaces ReferenceElement/text
866
+ so <fn reference="2"><p>This is a footnote</p></fn>
867
+ corresponds to
868
+ <eref type="footnote" target="fn2">2</xref> <p id="fn2">This is a footnote</p>
869
+ -->
870
+ <define name="callout">
871
+ <element name="callout">
872
+ <attribute name="target">
873
+ <data type="IDREF"/>
874
+ </attribute>
875
+ <text/>
876
+ </element>
877
+ </define>
878
+ <!--
879
+ This is xref with fixed @type="callout"; the target by convention is in an annotation in the same source code snippet
880
+ so <callout target="xyz">1</callout>
881
+ corresponds to <xref type="callout" target="xyz">1</xref>
882
+ -->
883
+ <define name="image">
884
+ <element name="image">
885
+ <attribute name="id">
886
+ <data type="ID"/>
887
+ </attribute>
888
+ <attribute name="src">
889
+ <data type="anyURI"/>
890
+ </attribute>
891
+ <attribute name="mimetype"/>
892
+ <optional>
893
+ <attribute name="filename"/>
894
+ </optional>
895
+ <optional>
896
+ <attribute name="width">
897
+ <choice>
898
+ <data type="int"/>
899
+ <value>auto</value>
900
+ </choice>
901
+ </attribute>
902
+ </optional>
903
+ <optional>
904
+ <attribute name="height">
905
+ <choice>
906
+ <data type="int"/>
907
+ <value>auto</value>
908
+ </choice>
909
+ </attribute>
910
+ </optional>
911
+ <optional>
912
+ <attribute name="alt"/>
913
+ </optional>
914
+ <optional>
915
+ <attribute name="title"/>
916
+ </optional>
917
+ <optional>
918
+ <attribute name="longdesc">
919
+ <data type="anyURI"/>
920
+ </attribute>
921
+ </optional>
922
+ </element>
923
+ </define>
924
+ <define name="video">
925
+ <element name="video">
926
+ <attribute name="id">
927
+ <data type="ID"/>
928
+ </attribute>
929
+ <attribute name="src">
930
+ <data type="anyURI"/>
931
+ </attribute>
932
+ <attribute name="mimetype"/>
933
+ <optional>
934
+ <attribute name="filename"/>
935
+ </optional>
936
+ <optional>
937
+ <attribute name="width">
938
+ <choice>
939
+ <data type="int"/>
940
+ <value>auto</value>
941
+ </choice>
942
+ </attribute>
943
+ </optional>
944
+ <optional>
945
+ <attribute name="height">
946
+ <choice>
947
+ <data type="int"/>
948
+ <value>auto</value>
949
+ </choice>
950
+ </attribute>
951
+ </optional>
952
+ <optional>
953
+ <attribute name="alt"/>
954
+ </optional>
955
+ <optional>
956
+ <attribute name="title"/>
957
+ </optional>
958
+ <optional>
959
+ <attribute name="longdesc">
960
+ <data type="anyURI"/>
961
+ </attribute>
962
+ </optional>
963
+ <zeroOrMore>
964
+ <ref name="altsource"/>
965
+ </zeroOrMore>
966
+ </element>
967
+ </define>
968
+ <define name="audio">
969
+ <element name="audio">
970
+ <attribute name="id">
971
+ <data type="ID"/>
972
+ </attribute>
973
+ <attribute name="src">
974
+ <data type="anyURI"/>
975
+ </attribute>
976
+ <attribute name="mimetype"/>
977
+ <optional>
978
+ <attribute name="filename"/>
979
+ </optional>
980
+ <optional>
981
+ <attribute name="alt"/>
982
+ </optional>
983
+ <optional>
984
+ <attribute name="title"/>
985
+ </optional>
986
+ <optional>
987
+ <attribute name="longdesc">
988
+ <data type="anyURI"/>
989
+ </attribute>
990
+ </optional>
991
+ <zeroOrMore>
992
+ <ref name="altsource"/>
993
+ </zeroOrMore>
994
+ </element>
995
+ </define>
996
+ <define name="altsource">
997
+ <element name="altsource">
998
+ <attribute name="src">
999
+ <data type="anyURI"/>
1000
+ </attribute>
1001
+ <attribute name="mimetype"/>
1002
+ <optional>
1003
+ <attribute name="filename"/>
1004
+ </optional>
1005
+ </element>
1006
+ </define>
1007
+ <define name="stem">
1008
+ <element name="stem">
1009
+ <attribute name="type">
1010
+ <choice>
1011
+ <value>MathML</value>
1012
+ <value>AsciiMath</value>
1013
+ </choice>
1014
+ </attribute>
1015
+ <oneOrMore>
1016
+ <choice>
1017
+ <text/>
1018
+ <ref name="AnyElement"/>
1019
+ </choice>
1020
+ </oneOrMore>
1021
+ </element>
1022
+ </define>
1023
+ <define name="annotation">
1024
+ <element name="annotation">
1025
+ <attribute name="id">
1026
+ <data type="ID"/>
1027
+ </attribute>
1028
+ <ref name="paragraph"/>
1029
+ </element>
1030
+ </define>
1031
+ <define name="ul">
1032
+ <element name="ul">
1033
+ <attribute name="id">
1034
+ <data type="ID"/>
1035
+ </attribute>
1036
+ <oneOrMore>
1037
+ <ref name="li"/>
1038
+ </oneOrMore>
1039
+ <zeroOrMore>
1040
+ <ref name="note"/>
1041
+ </zeroOrMore>
1042
+ </element>
1043
+ </define>
1044
+ <define name="li">
1045
+ <element name="li">
1046
+ <optional>
1047
+ <attribute name="id">
1048
+ <data type="ID"/>
1049
+ </attribute>
1050
+ </optional>
1051
+ <oneOrMore>
1052
+ <ref name="paragraph-with-footnote"/>
1053
+ </oneOrMore>
1054
+ </element>
1055
+ </define>
1056
+ <define name="ol">
1057
+ <element name="ol">
1058
+ <attribute name="id">
1059
+ <data type="ID"/>
1060
+ </attribute>
1061
+ <attribute name="type">
1062
+ <choice>
1063
+ <value>roman</value>
1064
+ <value>alphabet</value>
1065
+ <value>arabic</value>
1066
+ <value>roman_upper</value>
1067
+ <value>alphabet_upper</value>
1068
+ </choice>
1069
+ </attribute>
1070
+ <optional>
1071
+ <attribute name="start"/>
1072
+ </optional>
1073
+ <oneOrMore>
1074
+ <ref name="li"/>
1075
+ </oneOrMore>
1076
+ <zeroOrMore>
1077
+ <ref name="note"/>
1078
+ </zeroOrMore>
1079
+ </element>
1080
+ </define>
1081
+ <define name="dl">
1082
+ <element name="dl">
1083
+ <attribute name="id">
1084
+ <data type="ID"/>
1085
+ </attribute>
1086
+ <oneOrMore>
1087
+ <ref name="dt"/>
1088
+ <ref name="dd"/>
1089
+ </oneOrMore>
1090
+ <zeroOrMore>
1091
+ <ref name="note"/>
1092
+ </zeroOrMore>
1093
+ </element>
1094
+ </define>
1095
+ <define name="dt">
1096
+ <element name="dt">
1097
+ <zeroOrMore>
1098
+ <ref name="TextElement"/>
1099
+ </zeroOrMore>
1100
+ </element>
1101
+ </define>
1102
+ <define name="dd">
1103
+ <element name="dd">
1104
+ <zeroOrMore>
1105
+ <ref name="paragraph-with-footnote"/>
1106
+ </zeroOrMore>
1107
+ </element>
1108
+ </define>
1109
+ <define name="ext">
1110
+ <element name="ext">
1111
+ <ref name="BibDataExtensionType"/>
1112
+ </element>
1113
+ </define>
1114
+ <define name="BibDataExtensionType">
1115
+ <ref name="doctype"/>
1116
+ </define>
1117
+ <define name="doctype">
1118
+ <element name="doctype">
1119
+ <ref name="DocumentType"/>
1120
+ </element>
1121
+ </define>
1122
+ <define name="DocumentType">
1123
+ <value>document</value>
1124
+ </define>
1125
+ <define name="BibData">
1126
+ <ref name="BibliographicItem"/>
1127
+ <optional>
1128
+ <ref name="ext"/>
1129
+ </optional>
1130
+ </define>
1131
+ </grammar>