-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrfc2629-ext.rnc
executable file
·1259 lines (1130 loc) · 25.6 KB
/
rfc2629-ext.rnc
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Automatically extracted from rfc2629xslt.xml. DO NOT EDIT!
# WORK IN PROGRESS! PLEASE REPORT PROBLEMS TO THE AUTHOR.
# Define our extension namespace
namespace x = "http://purl.org/net/xml2rfc/ext"
# Define GRDDL namespace
namespace grddl = "http://www.w3.org/2003/g/data-view#"
# Define RDF namespace
namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
# Define SVG namespace
namespace svg = "http://www.w3.org/2000/svg"
# Define XInclude namespace
namespace xi = "http://www.w3.org/2001/XInclude"
# Include rfc2629bis RNC grammar
include "rfc2629.rnc" {
# Redefine <address> to allow multiple email addresses
address =
element address {
attlist.address,
postal?,
phone?,
facsimile?,
email*,
uri?
}
# Redefine <annotation> to allow more markup
annotation =
element annotation {
attlist.annotation,
(TEXT
| xref
| eref
| iref
| cref
| spanx
| v3_tt
)*
}
# Redefine <artwork> to allow markup
artwork =
element artwork {
attlist.artwork,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
( v3_svg |
(TEXT
| eref
| iref
| spanx
| xref
| v3_em
| v3_strong
| x_abnf-char-sequence
| x_bb
| x_bc
| x_bcp14
| x_bt
| x_highlight
| x_length-of
| x_parse-xml
| x_ref
| x_span
| x_x)*
)
}
# Redefine <back> to allow displayreference
back =
element back {
attlist.back,
v3_displayreference*,
references*,
section*
}
# Redefine <c> to allow our extension elements
c =
element c {
attlist.c,
(TEXT
| xref
| eref
| iref
| cref
| spanx
| v3_em
| v3_strong
| v3_tt
| x_ref)*
}
# Redefine <cref> to allow more child elements
cref =
element cref {
attlist.cref,
(TEXT
| eref
| xref
| x_ref)*
}
# Redefine <date> to allow text content (see Section 11.26)
date =
element date {
attlist.date,
TEXT?
}
# Redefine <figure> to allow more child elements
figure =
element figure {
attlist.figure,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
v3_name?,
iref*,
preamble?,
(artwork
| v3_sourcecode
| v3_artset
),
postamble?
}
# Redefine <front> to allow boilerplate
front =
element front {
attlist.front,
title,
seriesInfo*,
author+,
date?,
area*,
workgroup*,
keyword*,
abstract?,
note*,
v3_boilerplate?
}
# Redefine <list> element to allow <x:lt> child elements
\list =
element list {
attlist.list,
(t+ | x_lt+)
}
# Redefine <note> to allow <name> and not require title attribute
note =
element note {
attlist.x_note,
v3_name?,
(v3_dl
| v3_ol
| t
| v3_ul)+
}
# Redefine <preamble> to allow our extension elements
preamble =
element preamble {
attlist.preamble,
(TEXT
| xref
| eref
| iref
| cref
| spanx
| v3_em
| v3_strong
| v3_tt
| x_anchor-alias
| x_bcp14)*
}
# Redefine <postal> to allow <postalLine> and new detail elements
postal =
element postal {
(
(city
| code
| country
| v3_cityarea
| v3_extaddr
| v3_pobox
| v3_sortingcode
| region
| street)*
| (v3_postalLine+,
country?
))
}
# Redefine <postamble> to allow our extension elements
postamble =
element postamble {
attlist.postamble,
(TEXT
| xref
| eref
| iref
| cref
| spanx
| v3_em
| v3_strong
| v3_tt
| x_bcp14)*
}
# Redefine <reference> to allow our extension elements
reference =
element reference {
attlist.reference,
(
(
front,
v3_refcontent?,
seriesInfo*,
x_prose?,
v3_refcontent?,
format*,
annotation*,
x_source?
) | (
v3_refcontent?,
seriesInfo*,
x_prose?,
v3_refcontent?,
format*,
annotation*,
x_source
)
)
}
# Redefine <references> to allow extension elements and attributes
references =
element references {
attribute title { text }?,
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
v3_name?,
(references+ # (see [V3IMPNOTES], Section 3.1.16)
|
(reference
| v3_referencegroup
| xi_include)+
)
}
# Redefine <rfc> to allow our extension elements
rfc =
element rfc {
attribute xml:lang { text }?,
attribute grddl:transformation { ATEXT }?,
attribute x:maturity-level { "proposed" | "draft" | "internet" }?,
attribute category { "std" | "bcp" | "info" | "exp" | "historic" }?,
attribute consensus { "false" | "true" | "no" | "yes" }?,
attribute docName { text }?,
attribute indexInclude { "true" | "false" }?, # (see [RFC7991bis], Section 2.48.4)
attribute ipr {
"full2026"
| "noDerivativeWorks2026"
| "none"
| "full3667"
| "noModification3667"
| "noDerivatives3667"
| "full3978"
| "noModification3978"
| "noDerivatives3978"
| "trust200811"
| "noModificationTrust200811"
| "noDerivativesTrust200811"
| "trust200902"
| "noModificationTrust200902"
| "noDerivativesTrust200902"
| "pre5378Trust200902"
}?,
attribute iprExtract { xsd:IDREF }?,
attribute number { text }?,
attribute obsoletes { text }?,
attribute tocDepth { text }?, # (see [RFC7991bis], Section 2.48.14)
attribute tocInclude { "true" | "false" }?, # (see [RFC7991bis], Section 2.48.15)
attribute scripts { text }?, # (see [RFC7991bis], Appendix B.3)
attribute seriesNo { text }?,
attribute sortRefs { "true" | "false" }?, # (see [RFC7991bis], Section 2.48.11)
attribute submissionType { "IETF" | "IAB" | "IRTF" | "independent" }?,
attribute symRefs { "true" | "false" }?, # (see [RFC7991bis], Section 2.48.13)
attribute updates { text }?,
attribute version { text }?, # (see [RFC7991bis], Section 2.48.13)
v3_link*,
x_link*,
x_feedback?,
x_assign-section-number*,
front,
middle,
back?
}
# Redefine <section> to allow new elements
section =
element section {
attlist.x_section,
(t
| artwork
| figure
| texttable
| iref
| section
| v3_artset
| v3_aside
| v3_blockquote
| v3_contact
| v3_dl
| v3_name
| v3_ol
| v3_sourcecode
| v3_table
| v3_ul
| x_anchor-alias
| x_blockquote
| x_contributor
| x_include-author
| x_note
| x_u-map
| rdf_Description)*
}
# Redefine <spanx> to allow some markup
spanx =
element spanx {
attlist.spanx,
(TEXT
| iref
| xref
| x_ref)*
}
# Redefine <t> to allow our extension elements
t =
element t {
attlist.t,
(TEXT
| \list
| figure
| xref
| eref
| iref
| cref
| spanx
| vspace
| v3_bcp14
| v3_br
| v3_contact
| v3_em
| v3_relref
| v3_strong
| v3_sub
| v3_sup
| v3_tt
| v3_u
| x_abnf-char-sequence
| x_anchor-alias
| x_bcp14
| x_dfn
| x_h
| x_q
| x_ref
| x_span
| x_sup)*
}
# Redefine <title> to allow <br>
title =
element title {
attlist.title,
(TEXT
| v3_br)*
}
# Redefine <xref> to allow some markup
xref =
element xref {
attlist.xref,
(TEXT
| v3_em
| v3_strong
| v3_sub
| v3_sup
| v3_tt)*
}
}
# Extend attribute set for <abstract>
attlist.abstract &=
attribute anchor { xsd:ID }?, # (see [RFC7991bis], Section 2.1.1)
attribute pn { text }? # (see [RFC7991bis], Appendix B.2)
# Allow extension attributes on <artwork> (Section 11.25)
attlist.artwork &=
attribute anchor { xsd:ID }?,
attribute originalSrc { text }?, # (see [RFC7991bis], Appendix B.3)
attribute x:indent-with { ATEXT }?,
attribute x:lang { "" }?,
attribute x:is-code-component { "no" | "yes" }?
# Allow anchor and x:annotation attributes on <author>
attlist.author &=
attribute asciiFullname { ATEXT }?,
attribute asciiInitials { ATEXT }?,
attribute asciiSurname { ATEXT }?,
attribute anchor { xsd:ID }?,
attribute x:annotation { ATEXT }?
# Extend attribute set for <c>
attlist.c &=
attribute anchor { xsd:ID }?
# Extend attribute set for <city>
attlist.city &=
attribute ascii { ATEXT }?
# Extend attribute set for <code>
attlist.code &=
attribute ascii { ATEXT }?
# Extend attribute set for <country>
attlist.country &=
attribute ascii { ATEXT }?
# Extend attribute set for <cref> (see Section 2.17.2 of [RFC7991bis])
attlist.cref &=
attribute display { "false" | "true" }?
# Extend attribute set for <date> (see Section 11.26)
attlist.date &=
attribute x:include-day { "false" | "true" }?
# Extend attribute set for <eref> (see Section 11.27)
attlist.eref &=
attribute brackets { "none" | "angle" }?
# Extend attribute set for <iref> (see Section 11.28)
attlist.iref &=
attribute x:for-anchor { ATEXT }?
# Extend attribute set for <list> (see Section 11.29)
attlist.list &=
attribute x:indent { ATEXT }?
# Extend/Relax attribute set for <note>
attlist.x_note &=
attribute anchor { xsd:ID }?,
attribute title { ATEXT }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute removeInRFC { "false" | "true" }? # see Section 12.25.2
# Extend attribute set for <preamble>
attlist.preamble &=
attribute anchor { xsd:ID }?
# Extend attribute set for <organization>
attlist.organization &=
attribute ascii { ATEXT }?,
attribute showOnFrontPage { "false" | "true" }?
# Extend attribute set for <reference>
attlist.reference &=
attribute quoteTitle { "false" | "true" }?, # (see Section 12.22.1)
attribute xml:base { text }? # (see [RFC7991bis], Section 2)
# Extend attribute set for <references>
attlist.references &=
attribute pn { text }? # (see [RFC7991bis], Appendix B.2)
# Extend attribute set for <region>
attlist.region &=
attribute ascii { ATEXT }?
# Extend/Relax attribute set for <section> (see Section 11.31)
attlist.x_section &=
attribute anchor { xsd:ID }?,
attribute title { ATEXT }?,
attribute toc { "include" | "exclude" | "default" }?,
attribute numbered { "false" | "true" }?, # see Section 12.25.1
attribute removeInRFC { "false" | "true" }?, # see Section 12.25.2
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute x:fixed-section-number { ATEXT }?
# Allow anchor attribute on <spanx>
attlist.spanx &=
attribute anchor { xsd:ID }?
# Extend attribute set for <street>
attlist.street &=
attribute ascii { ATEXT }?
# Extend attribute set for <c> (see Section 11.28)
attlist.t &=
attribute indent { text }?,
attribute keepWithNext { text }?,
attribute keepWithPrevious { text }?,
attribute pn { text }? # (see [RFC7991bis], Appendix B.2)
# Extend attribute set for <texttable>
attlist.texttable &=
attribute x:caption-side { ATEXT }?
# Extend attribute set for <title>
attlist.title &=
attribute ascii { ATEXT }?,
attribute x:quotes { "true" | "false" }? # (deprecated, see Section 12.22.1)
# Allow annotation attribute on <uri>
attlist.uri &=
attribute x:annotation { ATEXT }?
# Extend attribute set for <xref> (see Section 11.32)
attlist.xref &=
attribute derivedContent { text }?, # (see [RFC7991bis], Appendix B.3)
attribute x:fmt { "()" | "," | "of" | "number" | "sec" |
"none" }?,
attribute x:rel { ATEXT }?,
attribute x:sec { ATEXT }?,
attribute relative { ATEXT }?,
attribute section { ATEXT }?,
attribute sectionFormat { "bare" | "comma" | "of" | "parens" }?
# Set of artwork (see Section 12.1)
v3_artset =
element artset {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
artwork+
}
# Side Note (see Section 12.2)
v3_aside =
element aside {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
(artwork
| figure
| iref
| t
| v3_blockquote
| v3_dl
| v3_ol
| v3_table
| v3_ul)*
}
# BCP14/RFC2119 keywords (see Section 12.3)
v3_bcp14 =
element bcp14 {
TEXT
}
# Blockquote (see Section 12.4)
v3_blockquote =
element blockquote {
attribute anchor { xsd:ID }?,
attribute cite { URI }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute quotedFrom { ATEXT }?,
(
(artwork
| v3_dl
| figure
| v3_ol
| v3_sourcecode
| t
| v3_ul)+
|
(TEXT
| v3_bcp14
| cref
| v3_em
| eref
| iref
| v3_strong
| v3_sub
| v3_sup
| v3_tt
| xref)+
)
}
# Boilerplate (see Section 12.4)
v3_boilerplate =
element boilerplate {
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
section+
}
# Forced Line Break (see Section 12.6)
v3_br =
element br {
empty
}
# (see Section 12.7)
v3_cityarea =
element cityarea {
attribute ascii { ATEXT }?,
TEXT
}
# (see Section 12.8)
v3_contact =
element contact {
attribute initials { text }?,
attribute asciiInitials { text }?,
attribute surname { text }?,
attribute asciiSurname { text }?,
attribute fullname { text }?,
attribute asciiFullname { text }?,
organization?,
address?
}
# Mapping of reference names to display names (see Section 12.9)
v3_displayreference =
element displayreference {
attribute target { xsd:IDREF },
attribute to { ATEXT }
}
# Definition List Description Element (see Section 12.10)
v3_dd =
element dd {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
((v3_artset
| artwork
| figure
| t
| v3_aside
| v3_dl
| v3_ol
| v3_table
| v3_sourcecode
| v3_ul)+ |
(TEXT
| cref
| eref
| iref
| xref
| v3_bcp14
| v3_br
| v3_em
| v3_sub
| v3_sup
| v3_tt
| v3_strong
| v3_u
| x_ref)*
)
}
# Definition List (see Section 12.11)
v3_dl =
element dl {
attribute anchor { xsd:ID }?, # (see [RFC7991bis], Section 2.21.1)
attribute indent { text }?,
attribute newline { "false" | "true" }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute spacing { "normal" | "compact" }?,
(v3_dt, v3_dd)+
}
# Definition List Description Term (see Section 12.12)
v3_dt =
element dt {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
(TEXT
| cref
| eref
| iref
| xref
| v3_em
| v3_tt
| v3_strong)*
}
# Emphasized Text (see Section 12.13)
v3_em =
element em {
attribute anchor { xsd:ID }?,
(TEXT
| eref
| iref
| xref
| v3_strong
| x_ref)*
}
# Extended Postal Address (see Section 12.14)
v3_extaddr =
element extaddr {
attribute ascii { ATEXT }?,
TEXT
}
# Definition List (see Section 12.15)
v3_li =
element li {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
((v3_artset
| artwork
| figure
| v3_blockquote
| v3_dl
| v3_ol
| t
| v3_table
| v3_sourcecode
| v3_ul
)+
|
(TEXT
| cref
| eref
| iref
| xref
| v3_bcp14
| v3_em
| v3_strong
| v3_sub
| v3_sup
| v3_tt
| v3_u
| x_dfn
| x_ref)*
)
}
# Container for additional links (see Section 12.16)
v3_link =
element link {
attribute href { text },
attribute rel { text }?
}
# Section/Figure/Table Name (see Section 12.17)
v3_name =
element name {
attribute slugifiedName { text }?, # (see [RFC7991bis], Appendix B.2)
(TEXT
| cref
| v3_br
| v3_em
| v3_sup
| v3_tt
| xref)*
}
# Ordered List (see Section 12.18)
v3_ol =
element ol {
attribute anchor { xsd:ID }?,
attribute indent { text }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute start { TEXT }?,
attribute group { TEXT }?,
attribute type { TEXT }?,
v3_li+
}
# Extended Postal Address (see Section 12.19)
v3_pobox =
element pobox {
attribute ascii { ATEXT }?,
TEXT
}
# Line in postal address (see Section 12.20)
v3_postalLine =
element postalLine {
attribute ascii { TEXT }?,
TEXT
}
# EXPERIMENTAL DO NOT USE YET (see Section 12.24)
v3_relref =
element relref {
attribute derivedLink { text }?, # (see [RFC7991bis], Appendix B.3)
attribute displayFormat { "of" | "comma" | "parens" | "bare" }?,
attribute relative { text }?,
attribute section { text },
attribute target { xsd:IDREF },
TEXT
}
# additional content for references (see Section 12.21)
v3_refcontent =
element refcontent {
(TEXT
| v3_em)*
}
# reference group (see Section 12.23)
v3_referencegroup =
element referencegroup {
attribute anchor { xsd:ID },
attribute target { URI }?,
(reference
| xi_include)+
}
# (see Section 12.26)
v3_sortingcode =
element sortingcode {
attribute ascii { ATEXT }?,
TEXT
}
# Source Code (see Section 12.27)
v3_sourcecode =
element sourcecode {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute markers { text }?, #(see [V3IMPNOTES], Section 3.1.22)
attribute name { text }?,
attribute src { text }?,
attribute type { text }?,
attribute x:lang { "" }?,
(TEXT
| iref
| xref
| x_ref)*
}
# Emphasized Text (see Section 12.28)
v3_strong =
element strong {
attribute anchor { xsd:ID }?,
(TEXT
| xref
| v3_em
| x_ref)*
}
# Subscript (see Section 12.29)
v3_sub =
element sub {
(TEXT
| v3_sup)*
}
# Superscript (see Section 12.30)
v3_sup =
element sup {
(TEXT
| v3_sub)*
}
# Table (see Section 12.32)
v3_table =
element table {
attribute anchor { xsd:ID }?,
attribute align { "left" | "center" | "right" }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
v3_name?,
iref*,
v3_thead?,
v3_tbody+,
v3_tfoot?
}
# Table Body (see Section 12.33)
v3_tbody =
element tbody {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
v3_tr+
}
# Table Contents Cell (see Section 12.34)
v3_td =
element td {
attribute anchor { xsd:ID }?,
attribute align { "left" | "center" | "right" }?,
attribute colspan { text }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute rowspan { text }?,
( (t
| v3_dl
| v3_ol
| v3_sourcecode
| v3_ul
)+
| (TEXT
| v3_bcp14
| v3_br
| cref
| v3_em
| eref
| v3_strong
| v3_sub
| v3_sup
| v3_tt
| xref)*
)
}
# Table Footer (see Section 12.35)
v3_tfoot =
element tfoot {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
v3_tr
}
# Table Header Cell (see Section 12.36)
v3_th =
element th {
attribute anchor { xsd:ID }?,
attribute align { "left" | "center" | "right" }?,
attribute colspan { text }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
attribute rowspan { text }?,
( (t
| v3_dl
| v3_ol
| v3_sourcecode
| v3_ul
)+
| (TEXT
| v3_bcp14
| cref
| v3_em
| eref
| v3_strong
| v3_sub
| v3_sup
| v3_tt
| xref)*
)
}
# Table Head (see Section 12.37)
v3_thead =
element thead {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
v3_tr+
}
# Table Row (see Section 12.38)
v3_tr =
element tr {
attribute anchor { xsd:ID }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
(
v3_td
| v3_th
)+
}
# Monospaced Text (see Section 12.39)
v3_tt =
element tt {
(TEXT
| xref
| v3_em
| x_ref)*
}
# Non-ASCII characters (see Section 12.40)
v3_u =
element u {
attribute ascii { text }?,
attribute format { text }?,
TEXT
}
# Unordered List (see Section 12.41)
v3_ul =
element ul {
attribute anchor { xsd:ID }?,
attribute bare { "false" | "true" }?, # but see <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/547>
attribute indent { text }?,
attribute empty { "false" | "true" }?,
attribute pn { text }?, # (see [RFC7991bis], Appendix B.2)
v3_li+
}
# SVG (see Section 12.31)
v3_svg =