relaton-ietf 0.12.1 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,21 +24,91 @@
24
24
  <start>
25
25
  <ref name="standard-document"/>
26
26
  </start>
27
+ <define name="hyperlink">
28
+ <element name="link">
29
+ <attribute name="target">
30
+ <data type="anyURI"/>
31
+ </attribute>
32
+ <optional>
33
+ <attribute name="type">
34
+ <ref name="ReferenceFormat"/>
35
+ </attribute>
36
+ </optional>
37
+ <optional>
38
+ <attribute name="alt"/>
39
+ </optional>
40
+ <text/>
41
+ </element>
42
+ </define>
43
+ <define name="xref">
44
+ <element name="xref">
45
+ <attribute name="target">
46
+ <data type="IDREF"/>
47
+ </attribute>
48
+ <optional>
49
+ <attribute name="type">
50
+ <ref name="ReferenceFormat"/>
51
+ </attribute>
52
+ </optional>
53
+ <optional>
54
+ <attribute name="alt"/>
55
+ </optional>
56
+ <text/>
57
+ </element>
58
+ </define>
59
+ <define name="example">
60
+ <element name="example">
61
+ <attribute name="id">
62
+ <data type="ID"/>
63
+ </attribute>
64
+ <optional>
65
+ <attribute name="unnumbered">
66
+ <data type="boolean"/>
67
+ </attribute>
68
+ </optional>
69
+ <optional>
70
+ <attribute name="subsequence"/>
71
+ </optional>
72
+ <optional>
73
+ <ref name="tname"/>
74
+ </optional>
75
+ <oneOrMore>
76
+ <choice>
77
+ <ref name="formula"/>
78
+ <ref name="ul"/>
79
+ <ref name="ol"/>
80
+ <ref name="dl"/>
81
+ <ref name="quote"/>
82
+ <ref name="sourcecode"/>
83
+ <ref name="paragraph-with-footnote"/>
84
+ <ref name="figure"/>
85
+ </choice>
86
+ </oneOrMore>
87
+ <zeroOrMore>
88
+ <ref name="note"/>
89
+ </zeroOrMore>
90
+ </element>
91
+ </define>
27
92
  <define name="BibDataExtensionType">
28
93
  <ref name="doctype"/>
94
+ <optional>
95
+ <ref name="editorialgroup"/>
96
+ </optional>
97
+ <zeroOrMore>
98
+ <ref name="ics"/>
99
+ </zeroOrMore>
29
100
  <zeroOrMore>
30
101
  <ref name="structuredidentifier"/>
31
102
  </zeroOrMore>
32
103
  </define>
33
- <define name="TitleType">
34
- <text/>
35
- </define>
104
+ <!-- TitleType = text -->
36
105
  <define name="sections">
37
106
  <element name="sections">
38
107
  <oneOrMore>
39
108
  <choice>
40
109
  <ref name="clause"/>
41
110
  <ref name="terms"/>
111
+ <ref name="term-clause"/>
42
112
  <ref name="definitions"/>
43
113
  </choice>
44
114
  </oneOrMore>
@@ -51,21 +121,303 @@
51
121
  <data type="ID"/>
52
122
  </attribute>
53
123
  </optional>
124
+ <optional>
125
+ <attribute name="obligation">
126
+ <choice>
127
+ <value>normative</value>
128
+ <value>informative</value>
129
+ </choice>
130
+ </attribute>
131
+ </optional>
132
+ <attribute name="normative">
133
+ <data type="boolean"/>
134
+ </attribute>
54
135
  <optional>
55
136
  <ref name="section-title"/>
56
137
  </optional>
57
138
  <zeroOrMore>
58
139
  <ref name="BasicBlock"/>
59
140
  </zeroOrMore>
141
+ <zeroOrMore>
142
+ <ref name="note"/>
143
+ </zeroOrMore>
60
144
  <zeroOrMore>
61
145
  <ref name="bibitem"/>
62
146
  <zeroOrMore>
63
147
  <ref name="note"/>
64
148
  </zeroOrMore>
65
149
  </zeroOrMore>
150
+ <zeroOrMore>
151
+ <ref name="references"/>
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
+ <choice>
162
+ <ref name="paragraph"/>
163
+ <ref name="ul"/>
164
+ <ref name="ol"/>
165
+ <ref name="dl"/>
166
+ <ref name="formula"/>
167
+ </choice>
168
+ </oneOrMore>
169
+ </element>
170
+ </define>
171
+ <define name="Basic-Section">
172
+ <optional>
173
+ <attribute name="id">
174
+ <data type="ID"/>
175
+ </attribute>
176
+ </optional>
177
+ <optional>
178
+ <attribute name="language"/>
179
+ </optional>
180
+ <optional>
181
+ <attribute name="script"/>
182
+ </optional>
183
+ <optional>
184
+ <attribute name="obligation">
185
+ <choice>
186
+ <value>normative</value>
187
+ <value>informative</value>
188
+ </choice>
189
+ </attribute>
190
+ </optional>
191
+ <optional>
192
+ <ref name="section-title"/>
193
+ </optional>
194
+ <group>
195
+ <oneOrMore>
196
+ <ref name="BasicBlock"/>
197
+ </oneOrMore>
198
+ <zeroOrMore>
199
+ <ref name="note"/>
200
+ </zeroOrMore>
201
+ </group>
202
+ </define>
203
+ <define name="li">
204
+ <element name="li">
205
+ <group>
206
+ <optional>
207
+ <attribute name="id">
208
+ <data type="ID"/>
209
+ </attribute>
210
+ </optional>
211
+ <oneOrMore>
212
+ <ref name="BasicBlock"/>
213
+ </oneOrMore>
214
+ </group>
215
+ <!-- exclude figures? -->
216
+ </element>
217
+ </define>
218
+ <define name="dd">
219
+ <element name="dd">
220
+ <zeroOrMore>
221
+ <!-- exclude figures? -->
222
+ <ref name="BasicBlock"/>
223
+ </zeroOrMore>
224
+ </element>
225
+ </define>
226
+ <define name="thead">
227
+ <element name="thead">
228
+ <oneOrMore>
229
+ <ref name="tr"/>
230
+ </oneOrMore>
231
+ </element>
232
+ </define>
233
+ <define name="td">
234
+ <element name="td">
235
+ <optional>
236
+ <attribute name="colspan"/>
237
+ </optional>
238
+ <optional>
239
+ <attribute name="rowspan"/>
240
+ </optional>
241
+ <optional>
242
+ <attribute name="align">
243
+ <choice>
244
+ <value>left</value>
245
+ <value>right</value>
246
+ <value>center</value>
247
+ </choice>
248
+ </attribute>
249
+ </optional>
250
+ <choice>
251
+ <zeroOrMore>
252
+ <choice>
253
+ <ref name="TextElement"/>
254
+ <ref name="fn"/>
255
+ </choice>
256
+ </zeroOrMore>
257
+ <oneOrMore>
258
+ <choice>
259
+ <ref name="paragraph-with-footnote"/>
260
+ <ref name="dl"/>
261
+ <ref name="ul"/>
262
+ <ref name="ol"/>
263
+ <ref name="figure"/>
264
+ </choice>
265
+ </oneOrMore>
266
+ </choice>
267
+ </element>
268
+ </define>
269
+ <define name="th">
270
+ <element name="th">
271
+ <optional>
272
+ <attribute name="colspan"/>
273
+ </optional>
274
+ <optional>
275
+ <attribute name="rowspan"/>
276
+ </optional>
277
+ <optional>
278
+ <attribute name="align">
279
+ <choice>
280
+ <value>left</value>
281
+ <value>right</value>
282
+ <value>center</value>
283
+ </choice>
284
+ </attribute>
285
+ </optional>
286
+ <choice>
287
+ <zeroOrMore>
288
+ <choice>
289
+ <ref name="TextElement"/>
290
+ <ref name="fn"/>
291
+ </choice>
292
+ </zeroOrMore>
293
+ <oneOrMore>
294
+ <ref name="paragraph-with-footnote"/>
295
+ </oneOrMore>
296
+ </choice>
297
+ </element>
298
+ </define>
299
+ <define name="table-note">
300
+ <element name="note">
301
+ <optional>
302
+ <attribute name="id">
303
+ <data type="ID"/>
304
+ </attribute>
305
+ </optional>
306
+ <ref name="paragraph"/>
66
307
  </element>
67
308
  </define>
68
309
  </include>
310
+ <!-- end overrides -->
311
+ <define name="TextElement" combine="choice">
312
+ <ref name="concept"/>
313
+ </define>
314
+ <define name="concept">
315
+ <element name="concept">
316
+ <optional>
317
+ <attribute name="term"/>
318
+ </optional>
319
+ <choice>
320
+ <ref name="eref"/>
321
+ <ref name="xref"/>
322
+ <ref name="termref"/>
323
+ </choice>
324
+ </element>
325
+ </define>
326
+ <define name="BasicBlock" combine="choice">
327
+ <choice>
328
+ <ref name="requirement"/>
329
+ <ref name="recommendation"/>
330
+ <ref name="permission"/>
331
+ </choice>
332
+ </define>
333
+ <define name="bibliography">
334
+ <element name="bibliography">
335
+ <oneOrMore>
336
+ <choice>
337
+ <ref name="references"/>
338
+ <ref name="reference-clause"/>
339
+ </choice>
340
+ </oneOrMore>
341
+ </element>
342
+ </define>
343
+ <define name="reference-clause">
344
+ <element name="clause">
345
+ <optional>
346
+ <attribute name="id">
347
+ <data type="ID"/>
348
+ </attribute>
349
+ </optional>
350
+ <optional>
351
+ <attribute name="language"/>
352
+ </optional>
353
+ <optional>
354
+ <attribute name="script"/>
355
+ </optional>
356
+ <optional>
357
+ <attribute name="inline-header">
358
+ <data type="boolean"/>
359
+ </attribute>
360
+ </optional>
361
+ <optional>
362
+ <attribute name="obligation">
363
+ <choice>
364
+ <value>normative</value>
365
+ <value>informative</value>
366
+ </choice>
367
+ </attribute>
368
+ </optional>
369
+ <optional>
370
+ <ref name="section-title"/>
371
+ </optional>
372
+ <zeroOrMore>
373
+ <ref name="BasicBlock"/>
374
+ </zeroOrMore>
375
+ <zeroOrMore>
376
+ <ref name="note"/>
377
+ </zeroOrMore>
378
+ <choice>
379
+ <oneOrMore>
380
+ <ref name="reference-clause"/>
381
+ </oneOrMore>
382
+ <zeroOrMore>
383
+ <ref name="references"/>
384
+ </zeroOrMore>
385
+ </choice>
386
+ </element>
387
+ </define>
388
+ <define name="editorialgroup">
389
+ <element name="editorialgroup">
390
+ <oneOrMore>
391
+ <ref name="technical-committee"/>
392
+ </oneOrMore>
393
+ </element>
394
+ </define>
395
+ <define name="technical-committee">
396
+ <element name="technical-committee">
397
+ <ref name="IsoWorkgroup"/>
398
+ </element>
399
+ </define>
400
+ <define name="IsoWorkgroup">
401
+ <optional>
402
+ <attribute name="number">
403
+ <data type="int"/>
404
+ </attribute>
405
+ </optional>
406
+ <optional>
407
+ <attribute name="type"/>
408
+ </optional>
409
+ <text/>
410
+ </define>
411
+ <define name="ics">
412
+ <element name="ics">
413
+ <element name="code">
414
+ <text/>
415
+ </element>
416
+ <element name="text">
417
+ <text/>
418
+ </element>
419
+ </element>
420
+ </define>
69
421
  <define name="standard-document">
70
422
  <element name="standard-document">
71
423
  <ref name="bibdata"/>
@@ -89,7 +441,7 @@
89
441
  <oneOrMore>
90
442
  <choice>
91
443
  <ref name="content"/>
92
- <ref name="abstract"/>
444
+ <ref name="preface_abstract"/>
93
445
  <ref name="foreword"/>
94
446
  <ref name="introduction"/>
95
447
  <ref name="acknowledgements"/>
@@ -156,6 +508,14 @@
156
508
  <optional>
157
509
  <attribute name="script"/>
158
510
  </optional>
511
+ <optional>
512
+ <attribute name="obligation">
513
+ <choice>
514
+ <value>normative</value>
515
+ <value>informative</value>
516
+ </choice>
517
+ </attribute>
518
+ </optional>
159
519
  <optional>
160
520
  <ref name="section-title"/>
161
521
  </optional>
@@ -163,6 +523,9 @@
163
523
  <zeroOrMore>
164
524
  <ref name="BasicBlock"/>
165
525
  </zeroOrMore>
526
+ <zeroOrMore>
527
+ <ref name="note"/>
528
+ </zeroOrMore>
166
529
  <ref name="dl"/>
167
530
  </oneOrMore>
168
531
  </element>
@@ -202,22 +565,35 @@
202
565
  <optional>
203
566
  <attribute name="script"/>
204
567
  </optional>
568
+ <optional>
569
+ <attribute name="inline-header">
570
+ <data type="boolean"/>
571
+ </attribute>
572
+ </optional>
573
+ <optional>
574
+ <attribute name="obligation">
575
+ <choice>
576
+ <value>normative</value>
577
+ <value>informative</value>
578
+ </choice>
579
+ </attribute>
580
+ </optional>
205
581
  <optional>
206
582
  <ref name="section-title"/>
207
583
  </optional>
208
- <choice>
584
+ <group>
209
585
  <group>
210
- <optional>
586
+ <zeroOrMore>
211
587
  <ref name="BasicBlock"/>
212
- </optional>
588
+ </zeroOrMore>
213
589
  <zeroOrMore>
214
590
  <ref name="note"/>
215
591
  </zeroOrMore>
216
592
  </group>
217
- <oneOrMore>
593
+ <zeroOrMore>
218
594
  <ref name="content-subsection"/>
219
- </oneOrMore>
220
- </choice>
595
+ </zeroOrMore>
596
+ </group>
221
597
  </define>
222
598
  <define name="clause">
223
599
  <element name="clause">
@@ -239,32 +615,97 @@
239
615
  <optional>
240
616
  <attribute name="script"/>
241
617
  </optional>
618
+ <optional>
619
+ <attribute name="inline-header">
620
+ <data type="boolean"/>
621
+ </attribute>
622
+ </optional>
623
+ <optional>
624
+ <attribute name="obligation">
625
+ <choice>
626
+ <value>normative</value>
627
+ <value>informative</value>
628
+ </choice>
629
+ </attribute>
630
+ </optional>
242
631
  <optional>
243
632
  <ref name="section-title"/>
244
633
  </optional>
245
- <choice>
634
+ <group>
246
635
  <group>
247
- <optional>
636
+ <zeroOrMore>
248
637
  <ref name="BasicBlock"/>
249
- </optional>
638
+ </zeroOrMore>
250
639
  <zeroOrMore>
251
640
  <ref name="note"/>
252
641
  </zeroOrMore>
253
642
  </group>
254
- <oneOrMore>
643
+ <zeroOrMore>
255
644
  <choice>
256
645
  <ref name="clause-subsection"/>
257
646
  <ref name="terms"/>
258
647
  <ref name="definitions"/>
259
648
  </choice>
260
- </oneOrMore>
261
- </choice>
649
+ </zeroOrMore>
650
+ </group>
651
+ </define>
652
+ <define name="Annex-Section">
653
+ <optional>
654
+ <attribute name="id">
655
+ <data type="ID"/>
656
+ </attribute>
657
+ </optional>
658
+ <optional>
659
+ <attribute name="language"/>
660
+ </optional>
661
+ <optional>
662
+ <attribute name="script"/>
663
+ </optional>
664
+ <optional>
665
+ <attribute name="inline-header">
666
+ <data type="boolean"/>
667
+ </attribute>
668
+ </optional>
669
+ <optional>
670
+ <attribute name="obligation">
671
+ <choice>
672
+ <value>normative</value>
673
+ <value>informative</value>
674
+ </choice>
675
+ </attribute>
676
+ </optional>
677
+ <optional>
678
+ <ref name="section-title"/>
679
+ </optional>
680
+ <group>
681
+ <group>
682
+ <zeroOrMore>
683
+ <ref name="BasicBlock"/>
684
+ </zeroOrMore>
685
+ <zeroOrMore>
686
+ <ref name="note"/>
687
+ </zeroOrMore>
688
+ </group>
689
+ <zeroOrMore>
690
+ <choice>
691
+ <ref name="annex-subsection"/>
692
+ <ref name="terms"/>
693
+ <ref name="definitions"/>
694
+ <ref name="references"/>
695
+ </choice>
696
+ </zeroOrMore>
697
+ </group>
262
698
  </define>
263
699
  <define name="clause-subsection">
264
700
  <element name="clause">
265
701
  <ref name="Clause-Section"/>
266
702
  </element>
267
703
  </define>
704
+ <define name="annex-subsection">
705
+ <element name="clause">
706
+ <ref name="Annex-Section"/>
707
+ </element>
708
+ </define>
268
709
  <define name="annex">
269
710
  <element name="annex">
270
711
  <optional>
@@ -278,6 +719,11 @@
278
719
  <optional>
279
720
  <attribute name="script"/>
280
721
  </optional>
722
+ <optional>
723
+ <attribute name="inline-header">
724
+ <data type="boolean"/>
725
+ </attribute>
726
+ </optional>
281
727
  <attribute name="obligation">
282
728
  <choice>
283
729
  <value>normative</value>
@@ -287,19 +733,24 @@
287
733
  <optional>
288
734
  <ref name="section-title"/>
289
735
  </optional>
290
- <choice>
736
+ <group>
291
737
  <group>
292
- <optional>
738
+ <zeroOrMore>
293
739
  <ref name="BasicBlock"/>
294
- </optional>
740
+ </zeroOrMore>
295
741
  <zeroOrMore>
296
742
  <ref name="note"/>
297
743
  </zeroOrMore>
298
744
  </group>
299
- <oneOrMore>
300
- <ref name="clause-subsection"/>
301
- </oneOrMore>
302
- </choice>
745
+ <zeroOrMore>
746
+ <choice>
747
+ <ref name="annex-subsection"/>
748
+ <ref name="terms"/>
749
+ <ref name="definitions"/>
750
+ <ref name="references"/>
751
+ </choice>
752
+ </zeroOrMore>
753
+ </group>
303
754
  </element>
304
755
  </define>
305
756
  <define name="terms">
@@ -315,12 +766,36 @@
315
766
  <optional>
316
767
  <attribute name="script"/>
317
768
  </optional>
769
+ <optional>
770
+ <attribute name="obligation">
771
+ <choice>
772
+ <value>normative</value>
773
+ <value>informative</value>
774
+ </choice>
775
+ </attribute>
776
+ </optional>
777
+ <optional>
778
+ <ref name="section-title"/>
779
+ </optional>
318
780
  <zeroOrMore>
319
781
  <ref name="BasicBlock"/>
320
782
  </zeroOrMore>
321
- <oneOrMore>
322
- <ref name="term"/>
323
- </oneOrMore>
783
+ <zeroOrMore>
784
+ <ref name="note"/>
785
+ </zeroOrMore>
786
+ <choice>
787
+ <oneOrMore>
788
+ <ref name="term"/>
789
+ </oneOrMore>
790
+ <group>
791
+ <zeroOrMore>
792
+ <ref name="terms"/>
793
+ </zeroOrMore>
794
+ <optional>
795
+ <ref name="definitions"/>
796
+ </optional>
797
+ </group>
798
+ </choice>
324
799
  </element>
325
800
  </define>
326
801
  <define name="term">
@@ -413,7 +888,13 @@
413
888
  </define>
414
889
  <define name="definition">
415
890
  <element name="definition">
416
- <ref name="paragraph"/>
891
+ <oneOrMore>
892
+ <choice>
893
+ <ref name="paragraph"/>
894
+ <ref name="figure"/>
895
+ <ref name="formula"/>
896
+ </choice>
897
+ </oneOrMore>
417
898
  </element>
418
899
  </define>
419
900
  <define name="termnote">
@@ -448,7 +929,10 @@
448
929
  </define>
449
930
  <define name="origin">
450
931
  <element name="origin">
451
- <ref name="erefType"/>
932
+ <choice>
933
+ <ref name="erefType"/>
934
+ <ref name="termref"/>
935
+ </choice>
452
936
  </element>
453
937
  </define>
454
938
  <define name="modification">
@@ -456,6 +940,15 @@
456
940
  <ref name="paragraph"/>
457
941
  </element>
458
942
  </define>
943
+ <define name="termref">
944
+ <element name="termref">
945
+ <attribute name="base"/>
946
+ <attribute name="target"/>
947
+ <optional>
948
+ <text/>
949
+ </optional>
950
+ </element>
951
+ </define>
459
952
  <define name="structuredidentifier">
460
953
  <element name="structuredidentifier">
461
954
  <optional>
@@ -511,4 +1004,58 @@
511
1004
  </optional>
512
1005
  </element>
513
1006
  </define>
1007
+ <define name="preface_abstract">
1008
+ <element name="abstract">
1009
+ <ref name="Basic-Section"/>
1010
+ </element>
1011
+ </define>
1012
+ <define name="term-clause">
1013
+ <element name="clause">
1014
+ <optional>
1015
+ <attribute name="id">
1016
+ <data type="ID"/>
1017
+ </attribute>
1018
+ </optional>
1019
+ <optional>
1020
+ <attribute name="language"/>
1021
+ </optional>
1022
+ <optional>
1023
+ <attribute name="script"/>
1024
+ </optional>
1025
+ <optional>
1026
+ <attribute name="inline-header">
1027
+ <data type="boolean"/>
1028
+ </attribute>
1029
+ </optional>
1030
+ <optional>
1031
+ <attribute name="obligation">
1032
+ <choice>
1033
+ <value>normative</value>
1034
+ <value>informative</value>
1035
+ </choice>
1036
+ </attribute>
1037
+ </optional>
1038
+ <optional>
1039
+ <ref name="section-title"/>
1040
+ </optional>
1041
+ <zeroOrMore>
1042
+ <ref name="BasicBlock"/>
1043
+ </zeroOrMore>
1044
+ <zeroOrMore>
1045
+ <ref name="note"/>
1046
+ </zeroOrMore>
1047
+ <zeroOrMore>
1048
+ <choice>
1049
+ <ref name="term-clause"/>
1050
+ <ref name="terms"/>
1051
+ <ref name="definitions"/>
1052
+ </choice>
1053
+ </zeroOrMore>
1054
+ </element>
1055
+ </define>
1056
+ <define name="termdocsource">
1057
+ <element name="termdocsource">
1058
+ <ref name="CitationType"/>
1059
+ </element>
1060
+ </define>
514
1061
  </grammar>