-
Notifications
You must be signed in to change notification settings - Fork 5
/
rfc2629xslt.xml
executable file
·4879 lines (4432 loc) · 185 KB
/
rfc2629xslt.xml
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
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc header="Documentation"?>
<?rfc private="RFC 7749 through XSLT"?>
<?rfc toc="yes"?>
<!-- <?rfc topblock="no"?> -->
<?rfc strict="no"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc-ext allow-markup-in-artwork="yes" ?>
<?rfc-ext html-pretty-print="prettyprint https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"?>
<?rfc-ext include-references-in-index="yes" ?>
<!--<?rfc-ext refresh-from="rfc2629xslt.xml"?>-->
<rfc xmlns:x="http://purl.org/net/xml2rfc/ext">
<front>
<title abbrev="RFC7749 through XSLT">Transforming RFC7749-formatted XML through XSLT</title>
<author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
<organization abbrev="greenbytes">greenbytes GmbH</organization>
<address>
<postal>
<street>Hafenweg 16</street>
<city>Muenster</city><region>NW</region><code>48155</code>
<country>Germany</country>
</postal>
<email>[email protected]</email>
<uri>https://greenbytes.de/tech/webdav/</uri>
</address>
</author>
<date/>
<keyword>RFC2629</keyword>
<keyword>RFC7749</keyword>
<keyword>xml2rfc</keyword>
<keyword>XSLT</keyword>
<keyword>XSL-FO</keyword>
<keyword>PDF</keyword>
<keyword>GRDDL</keyword>
<keyword>epub</keyword>
<keyword>Dublin Core</keyword>
</front>
<middle>
<section title="Introduction" anchor="introduction">
<t>
This document describes a set of XSLT transformations that can be used to
transform "XML2RFC" XML (<xref target="RFC7749"/>, updating <xref target="RFC2629"/>) to various
output formats, such as HTML and PDF. The main topics are
<list style="symbols">
<t>compliance to the xml2rfc XML element set (<xref target="supported.elements"/>),</t>
<t>support for xml2rfc processing instructions (<xref target="processing.instructions"/>),</t>
<t>the names of anchor elements generated in HTML and PDF output (<xref target="anchors"/>),</t>
<t>various XSLT engines that can be used (<xref target="xslt.engines"/>),</t>
<t>outputting HTML (<xref target="output.html"/>) and XHTML (<xref target="output.xhtml"/>),</t>
<t>outputting CHM (Compiled Microsoft Help, <xref target="output.chm"/>),</t>
<t>outputting PDF (<xref target="output.pdf"/>),</t>
<t>outputting ePub (<xref target="output.epub"/>),</t>
<t>extensions to the xml2rfc vocabulary (<xref target="extensions"/>),</t>
<t>selected extensions from the proposed xml2rfc V3 vocabulary (<xref target="v3"/>),</t>
<t>various utilities (<xref target="utilities"/>).</t>
</list>
</t>
<t>
The full distribution is available at <eref target="https://greenbytes.de/tech/webdav/rfc2629xslt.zip"/>.
A mirror of the non-public source repository can be found at <eref target="https://github.com/reschke/xml2rfc"/>;
this is also a good place for reporting issues.
</t>
<aside>
<t>
<em>Note:</em> RFC 2629 was the initial specification of the XML vocabulary; that's why the "2629"
lives on in various parts, such as filenames.
</t>
</aside>
</section>
<section title="Supported RFC7749 elements" anchor="supported.elements">
<t>
<tt>rfc2629.xslt</tt> supports both all grammar elements defined in
<xref target="RFC7749"/>, plus a subset of the new elements defined
in <xref target="RFC7991bis"/>.
</t>
<section title="Extension elements">
<t>
<tt>rfc2629.xslt</tt> supports two kind of extension
elements, using different XML namespaces.
</t>
<t>
The first set contains (hopefully) generally useful extensions, see
<xref target="extensions"/>.
</t>
<t>
The second set is used for change and issue tracking and currently is not
documented here. Please email the author in case
you're interested in using these extensions.
</t>
</section>
</section>
<section title="Processing Instructions" anchor="processing.instructions">
<t>
All PIs can be set as XSLT parameter as well, overriding any value that
is found in the source file to be transformed.
</t>
<figure>
<preamble>Using processing instructions:</preamble>
<artwork type="example" x:lang="">
<?rfc toc="yes"?>
<?rfc-ext support-rfc2731="no"?>
</artwork>
</figure>
<figure>
<preamble>Using XSLT parameters (Saxon):</preamble>
<artwork type="example">
java -cp saxon.jar com.icl.saxon.StyleSheet source.xml rfc2629.xslt \
xml2rfc-toc=yes xml2rfc-ext-support-rfc2731=no > result.html
</artwork></figure>
<figure>
<preamble>Using XSLT parameters (xsltproc):</preamble>
<artwork type="example">
xsltproc --param xml2rfc-toc '"yes"' \
--param xml2rfc-ext-support-rfc2731 '"no"' \
rfc2629.xslt source.xml > result.html
</artwork>
<postamble>(note the required quoting of string parameters)<iref item="xsltproc" subitem="passing parameters"/></postamble>
</figure>
<section title="Supported xml2rfc-compatible PIs" anchor="supported.pis">
<texttable>
<ttcol>PI target</ttcol>
<ttcol>PI pseudo-attribute</ttcol>
<ttcol>XSLT parameter name</ttcol>
<ttcol>default</ttcol>
<ttcol>comment</ttcol>
<c>rfc</c>
<c>authorship<iref item="authorship PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="authorship"/></c>
<c>xml2rfc-authorship<iref item="xml2rfc-authorship parameter"/> <iref item="Parameters" subitem="xml2rfc-authorship"/></c>
<c>"yes"</c>
<c>when set to "no", the "Authors" section is suppressed</c>
<c>rfc</c>
<c>background<iref item="background PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="background"/></c>
<c>xml2rfc-background<iref item="xml2rfc-background parameter"/> <iref item="Parameters" subitem="xml2rfc-background"/></c>
<c>(not set)</c>
<c/>
<c>rfc</c>
<c>compact<iref item="compact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="compact"/></c>
<c>xml2rfc-compact<iref item="xml2rfc-editing parameter"/> <iref item="Parameters" subitem="xml2rfc-compact"/></c>
<c>"no"</c>
<c>only applies to HTML output method when printing</c>
<c>rfc</c>
<c>comments<iref item="comments PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="comments"/></c>
<c>xml2rfc-comments<iref item="xml2rfc-comments parameter"/> <iref item="Parameters" subitem="xml2rfc-comments"/></c>
<c>"no" ("yes" for v3 documents)</c>
<c/>
<c>rfc</c>
<c>docmapping<iref item="docmapping PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="docmapping"/></c>
<c/>
<c>"yes"</c>
<c>This is the default for rfc2629.xslt anyway, and it can not be changed</c>
<c>rfc</c>
<c>editing<iref item="editing PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="editing"/></c>
<c>xml2rfc-editing<iref item="xml2rfc-editing parameter"/> <iref item="Parameters" subitem="xml2rfc-editing"/></c>
<c>"no"</c>
<c/>
<c>rfc</c>
<c>footer<iref item="footer PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="footer"/></c>
<c>xml2rfc-footer<iref item="xml2rfc-footer parameter"/> <iref item="Parameters" subitem="xml2rfc-footer"/></c>
<c>(not set)</c>
<c/>
<c>rfc</c>
<c>header<iref item="header PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="header"/></c>
<c>xml2rfc-header<iref item="xml2rfc-header parameter"/> <iref item="Parameters" subitem="xml2rfc-header"/></c>
<c>(not set)</c>
<c/>
<c>rfc</c>
<c>include<iref item="include PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="include"/></c>
<c/>
<c/>
<c>only partly supported, use external entities instead (see <xref target="examples.internalsubset"/>) or other tools (<xref target="refreshing.inclusions"/>) instead</c>
<c>rfc</c>
<c>inline<iref item="inline PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="inline"/></c>
<c>xml2rfc-inline<iref item="xml2rfc-inline parameter"/> <iref item="Parameters" subitem="xml2rfc-inline"/></c>
<c>"no" ("yes" for v3 documents)</c>
<c/>
<c>rfc</c>
<c>iprnotified<iref item="iprnotified PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="iprnotified"/></c>
<c>xml2rfc-iprnotified<iref item="xml2rfc-iprnotified parameter"/> <iref item="Parameters" subitem="xml2rfc-iprnotified"/></c>
<c>"no"</c>
<c/>
<c>rfc</c>
<c>linkmailto<iref item="linkmailto PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="linkmailto"/></c>
<c>xml2rfc-linkmailto<iref item="xml2rfc-linkmailto parameter"/> <iref item="Parameters" subitem="xml2rfc-linkmailto"/></c>
<c>"yes"</c>
<c/>
<c>rfc</c>
<c>multiple-initials<iref item="multiple-initials PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="multiple-initials"/></c>
<c>xml2rfc-multiple-initials<iref item="xml2rfc-multiple-initials parameter"/> <iref item="Parameters" subitem="xml2rfc-multiple-initials"/></c>
<c>"no"</c>
<c>determines whether the processor will attempt to truncate multiple initials to a single one; can be set globally (affecting the front page) but also as child element of <reference></c>
<c>rfc</c>
<c>private<iref item="private PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="private"/></c>
<c>xml2rfc-private<iref item="xml2rfc-private parameter"/> <iref item="Parameters" subitem="xml2rfc-private"/></c>
<c>(not set)</c>
<c/>
<c>rfc</c>
<c>refparent<iref item="refparent PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="refparent"/></c>
<c>xml2rfc-private<iref item="xml2rfc-refparent parameter"/> <iref item="Parameters" subitem="xml2rfc-refparent"/></c>
<c>"References"</c>
<c>Title for References sections when automatically inserted</c>
<c>rfc</c>
<c>rfcedstyle<iref item="rfcedstyle PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="rfcedstyle"/></c>
<c>xml2rfc-rfcedstyle<iref item="xml2rfc-rfcedstyle parameter"/> <iref item="Parameters" subitem="xml2rfc-rfcedstyle"/></c>
<c>(not set)</c>
<c>(limited support)</c>
<c>rfc</c>
<c>sortrefs<iref item="sortrefs PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="sortrefs"/></c>
<c>xml2rfc-sortrefs<iref item="xml2rfc-sortrefs parameter"/> <iref item="Parameters" subitem="xml2rfc-sortrefs"/></c>
<c>"no"</c>
<c/>
<c>rfc</c>
<c>symrefs<iref item="symrefs PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="symrefs"/></c>
<c>xml2rfc-symrefs<iref item="xml2rfc-symrefs parameter"/> <iref item="Parameters" subitem="xml2rfc-symrefs"/></c>
<c>"yes"</c>
<c>The default has changed from "no" to "yes" as of June 6, 2007 and xml2rfc 1.33pre4.</c>
<c>rfc</c>
<c>toc<iref item="toc PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="toc"/></c>
<c>xml2rfc-toc<iref item="xml2rfc-toc parameter"/> <iref item="Parameters" subitem="xml2rfc-toc"/></c>
<c>"no" ("yes" for documents specifying "3" as vocabulary version)</c>
<c/>
<c>rfc</c>
<c>tocdepth<iref item="tocdepth PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocdepth"/></c>
<c>xml2rfc-tocdepth<iref item="xml2rfc-tocdepth parameter"/> <iref item="Parameters" subitem="xml2rfc-tocdepth"/></c>
<c>99</c>
<c/>
<c>rfc</c>
<c>topblock<iref item="topblock PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="topblock"/></c>
<c>xml2rfc-topblock<iref item="xml2rfc-topblock parameter"/> <iref item="Parameters" subitem="xml2rfc-topblock"/></c>
<c>"yes"</c>
<c/>
</texttable>
</section>
<section title="Unsupported xml2rfc-compatible PIs" anchor="unsupported.pis">
<texttable>
<ttcol>PI target</ttcol>
<ttcol>PI pseudo-attribute</ttcol>
<ttcol>comment</ttcol>
<c>rfc</c>
<c>needLines<iref item="needLines PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="needLines"/></c>
<c/>
<c>rfc</c>
<c>slides<iref item="slides PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="slides"/></c>
<c/>
<c>rfc</c>
<c>strict<iref item="strict PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="strict"/></c>
<c/>
<c>rfc</c>
<c>subcompact<iref item="subcompact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="subcompact"/></c>
<c/>
<c>rfc</c>
<c>tocindent<iref item="tocindent PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocindent"/></c>
<c>(defaults to "yes")</c>
<c>rfc</c>
<c>tocompact<iref item="tocompact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocompact"/></c>
<c/>
</texttable>
</section>
<section title="Extension PIs" anchor="extension.pis">
<section title="abort-on - Log Level" anchor="xml2rfc-ext-abort-on">
<iref item="abort-on PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="abort-on"/>
<iref item="xml2rfc-ext-abort-on parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-abort-on"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>abort-on</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-abort-on</dd>
<dt>default</dt>
<dd>"OFF"</dd>
</dl>
<t>
Controls at which log level a message causes the XSLT to be aborted (one of "OFF", "FATAL", "ERROR", "WARNING", "INFO", "DEBUG", "TRACE").
</t>
</section>
<section title="allow-markup-in-artwork - Allow certain XML elements inside <artwork> and <sourcecode>" anchor="xml2rfc-ext-allow-markup-in-artwork">
<iref item="allow-markup-in-artwork PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="allow-markup-in-artwork"/>
<iref item="xml2rfc-ext-allow-markup-in-artwork parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-allow-markup-in-artwork"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>allow-markup-in-artwork</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-allow-markup-in-artwork</dd>
<dt>default</dt>
<dd>"no"</dd>
</dl>
<t>
Enables support for specific elements inside <artwork> and <sourcecode> elements (using this extension
makes the document incompatible to the RFC7749 grammar; see description of
conversion XSLT in <xref target="clean-for-dtd"/>).
</t>
</section>
<section title="authors-section - Placement of 'Authors' Section" anchor="xml2rfc-ext-authors-section">
<iref item="authors-section PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="authors-section"/>
<iref item="xml2rfc-ext-authors-section parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-authors-section"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>authors-section</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-authors-section</dd>
<dt>default</dt>
<dd>"end"</dd>
</dl>
<t>
When "before-appendices", place the authors section between references
and appendices (this ordering was used a long time ago).
</t>
</section>
<section title="css-contents - CSS Contents" anchor="xml2rfc-ext-css-contents">
<iref item="css-contents PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="css-contents"/>
<iref item="xml2rfc-ext-css-contents parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-css-contents"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>css-contents</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-css-contents</dd>
<dt>default</dt>
<dd>none</dd>
</dl>
<t>
CSS content to use instead of the built-in (experimental).
</t>
</section>
<section title="css-resource - Custom CSS Resource" anchor="xml2rfc-ext-css-resource">
<iref item="css-resource PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="css-resource"/>
<iref item="xml2rfc-ext-css-resource parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-css-resource"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>css-resource</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-css-resource</dd>
<dt>default</dt>
<dd>none</dd>
</dl>
<t>
Name of CSS resource (URI or relate reference) to use instead of the built-in (experimental).
</t>
</section>
<section title="dark-mode - Switch for Enabling 'Dark Mode' Support" anchor="xml2rfc-ext-dark-mode">
<iref item="dark-mode PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="dark-mode"/>
<iref item="xml2rfc-ext-dark-mode parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-dark-mode"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>dark-mode</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-dark-mode</dd>
<dt>default</dt>
<dd>"no"</dd>
</dl>
<t>
Set to 'auto' to enable "dark mode" CSS support.
</t>
</section>
<section title="diff-uri - URI Template for Internet Draft Diff Links" anchor="xml2rfc-ext-diff-uri">
<iref item="diff-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="diff-uri"/>
<iref item="xml2rfc-ext-diff-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-diff-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>diff-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-diff-uri</dd>
<dt>default</dt>
<dd>"https://www.ietf.org/rfcdiff?url2={internet-draft}"</dd>
</dl>
<t>
URI template for Internet Draft Diff links.
</t>
</section>
<section title="doi-uri - URI Template for DOI Links" anchor="xml2rfc-ext-doi-uri">
<iref item="doi-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="doi-uri"/>
<iref item="xml2rfc-ext-doi-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-doi-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>doi-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-doi-uri</dd>
<dt>default</dt>
<dd>"https://dx.doi.org/{doi}"</dd>
</dl>
<t>
URI template for DOIs links.
</t>
</section>
<section title="duplex - Support Duplex Printing" anchor="xml2rfc-ext-duplex">
<iref item="duplex PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="duplex"/>
<iref item="xml2rfc-ext-duplex parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-duplex"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>duplex</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-duplex</dd>
<dt>default</dt>
<dd>"no"</dd>
</dl>
<t>
When set to "yes", format printed output for doublesided printing.
</t>
</section>
<section title="errata - Embed Errata Information" anchor="xml2rfc-ext-errata">
<iref item="errata PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="errata"/>
<iref item="xml2rfc-ext-errata parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-errata"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>errata</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-errata</dd>
<dt>default</dt>
<dd>none</dd>
</dl>
<t>
Can be used to specify an errata file; output will link to individual errata when possible. See <xref target="rfc-editor.errata"/>.
</t>
</section>
<section title="html-pretty-print - Switch for Enabling Pretty Printing of Code" anchor="xml2rfc-ext-html-pretty-print">
<iref item="html-pretty-print PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="html-pretty-print"/>
<iref item="xml2rfc-ext-html-pretty-print parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-html-pretty-print"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>html-pretty-print</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-html-pretty-print</dd>
<dt>default</dt>
<dd>none</dd>
</dl>
<t>
Used to specify a JS-based code pretty-printer; the value is the CSS class name to insert, followed by a blank space, followed by the URI of the JS library. For instance:
"prettyprint https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"
</t>
</section>
<section title="include-generator - Switch for Disabling Generator Information in Output" anchor="xml2rfc-ext-include-generator">
<iref item="include-generator PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="include-generator"/>
<iref item="xml2rfc-ext-include-generator parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-include-generator"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>include-generator</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-include-generator</dd>
<dt>default</dt>
<dd>"yes"</dd>
</dl>
<t>
Set to 'no' in order to disable inclusion of generator version information.
</t>
</section>
<section title="include-index - Switch for Disabling Index Generation" anchor="xml2rfc-ext-include-index">
<iref item="include-index PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="include-index"/>
<iref item="xml2rfc-ext-include-index parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-include-index"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>include-index</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-include-index</dd>
<dt>default</dt>
<dd>"yes"</dd>
</dl>
<t>
When set to "no", no index will be generated.
</t>
</section>
<section title="include-references-in-index - Generate Index Entries for References" anchor="xml2rfc-ext-include-references-in-index">
<iref item="include-references-in-index PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="include-references-in-index"/>
<iref item="xml2rfc-ext-include-references-in-index parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-include-references-in-index"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>include-references-in-index</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-include-references-in-index</dd>
<dt>default</dt>
<dd>"no"</dd>
</dl>
<t>
When set to "yes", index entries are generated for all references.
</t>
</section>
<section title="insert-metadata - Dynamic Metadata Insertion in HTML" anchor="xml2rfc-ext-insert-metadata">
<iref item="insert-metadata PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="insert-metadata"/>
<iref item="xml2rfc-ext-insert-metadata parameter"/><iref item="Parameters" subitem="xml2rfc-ext-insert-metadata"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>insert-metadata</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-insert-metadata</dd>
<dt>default</dt>
<dd>"yes"</dd>
</dl>
<t>
When set to "yes", include JS code that fetches current RFC/Internet-Draft metadata and
inserts it into the front page (standards track, obsoletion, updates, errata, freshness of draft...).
</t>
</section>
<section title="internet-draft-base-uri - base URI for RFC reference files" anchor="xml2rfc-ext-internet-draft-reference-base-uri">
<iref item="internet-draft-reference-base-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="internet-draft-reference-base-uri"/>
<iref item="xml2rfc-ext-rfc-reference-base-uri"/> <iref item="Parameters" subitem="xml2rfc-ext-rfc-reference-base-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>internet-draft-reference-base-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-internet-draft-reference-base-uri</dd>
<dt>default</dt>
<dd>"https://bib.ietf.org/public/rfc/bibxml-ids/"</dd>
</dl>
<t>
Base URI for Internet-Draft referennces included using the "include" processing instruction.
</t>
</section>
<section title="internet-draft-uri - URI Template for Interned Drafts" anchor="xml2rfc-ext-internet-draft-uri">
<iref item="internet-draft-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="internet-draft-uri"/>
<iref item="xml2rfc-ext-internet-draft-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-internet-draft-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>internet-draft-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-internet-draft-uri</dd>
<dt>default</dt>
<dd>"https://datatracker.ietf.org/doc/html/{internet-draft}"</dd>
</dl>
<t>
URI template for Internet-Draft links (can be set locally inside the <reference> element as well to override the default).
</t>
</section>
<section title="justification - Text Justification" anchor="xml2rfc-ext-justification">
<iref item="justification PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="justification"/>
<iref item="xml2rfc-ext-justification parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-justification"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>justification</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-justification</dd>
<dt>default</dt>
<dd>"never"</dd>
</dl>
<t>
"never": never emit justified text, "always": always emit justified text, "print": only emit justified text for print media.
</t>
</section>
<section title="isbn-uri - URI Template for ISBNs" anchor="xml2rfc-ext-isbn-uri">
<iref item="isbn-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="isbn-uri"/>
<iref item="xml2rfc-ext-isbn-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-isbn-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>isbn-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-isbn-uri</dd>
<dt>default</dt>
<dd>"https://www.worldcat.org/search?q=isbn:{isbn}"</dd>
</dl>
<t>
URI template for ISBN lookup.
</t>
</section>
<section title="log-level - Log Level" anchor="xml2rfc-ext-log-level">
<iref item="log-level PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="log-level"/>
<iref item="xml2rfc-ext-log-level parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-log-level"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>log-level</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-log-level</dd>
<dt>default</dt>
<dd>"WARNING"</dd>
</dl>
<t>
Logging level, one of "OFF", "FATAL", "ERROR", "WARNING", "INFO", "DEBUG", "TRACE".
</t>
</section>
<section title="maxwidth - Maximal Text Width in HTML" anchor="xml2rfc-ext-maxwidth">
<iref item="maxwidth PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="maxwidth"/>
<iref item="xml2rfc-ext-maxwidth parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-maxwidth"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>maxwidth</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-maxwidth</dd>
<dt>default</dt>
<dd>1000</dd>
</dl>
<t>
For HTML output: maximal text width in CSS pixels.
</t>
</section>
<section title="parse-xml-in-artwork - Parse and Check XML in artwork" anchor="xml2rfc-ext-parse-xml-in-artwork">
<iref item="parse-xml-in-artwork PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="parse-xml-in-artwork"/>
<iref item="xml2rfc-ext-parse-xml-in-artwork parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-parse-xml-in-artwork"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>parse-xml-in-artwork</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-parse-xml-in-artwork</dd>
<dt>default</dt>
<dd>"no"</dd>
</dl>
<t>
May be used to enable parsing of XML content in figures (MSXML only).
</t>
</section>
<section title="rfc-errata-uri - URI Template for RFC Errata" anchor="xml2rfc-ext-rfc-errata-uri">
<iref item="rfc-errata-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="rfc-errata-uri"/>
<iref item="xml2rfc-ext-rfc-errata-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-rfc-erratam-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>rfc-errata-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-rfc-errata-uri</dd>
<dt>default</dt>
<dd>"https://www.rfc-editor.org/errata/rfc{rfc}"</dd>
</dl>
<t>
URI template for all RFC Errata for a given RFC ("rfc" is the RFC number).
</t>
</section>
<section title="rfc-erratum-uri - URI Template for a specific RFC Erratum" anchor="xml2rfc-ext-rfc-erratum-uri">
<iref item="rfc-erratum-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="rfc-erratum-uri"/>
<iref item="xml2rfc-ext-rfc-erratum-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-rfc-erratum-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>rfc-erratum-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-rfc-erratum-uri</dd>
<dt>default</dt>
<dd>"https://www.rfc-editor.org/errata/eid{eid}"</dd>
</dl>
<t>
URI template for a specific RFC erratum ("eid" is the "errata id").
</t>
</section>
<section title="rfc-reference--base-uri - base URI for RFC reference files" anchor="xml2rfc-ext-rfc-reference-base-uri">
<iref item="rfc-reference-base-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="rfc-reference-base-uri"/>
<iref item="xml2rfc-ext-rfc-reference-base-uri"/> <iref item="Parameters" subitem="xml2rfc-ext-rfc-reference-base-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>rfc-reference-base-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-rfc-reference-base-uri</dd>
<dt>default</dt>
<dd>"https://bib.ietf.org/public/rfc/bibxml/"</dd>
</dl>
<t>
Base URI for RFC referennces included using the "include" processing instruction.
</t>
</section>
<section title="rfc-uri - URI Template for HTML Version of RFCs" anchor="xml2rfc-ext-rfc-uri">
<iref item="rfc-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="rfc-uri"/>
<iref item="xml2rfc-ext-rfc-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-rfc-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>rfc-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-rfc-uri</dd>
<dt>default</dt>
<dd>"https://www.rfc-editor.org/rfc/rfc{rfc}.html" (previously "https://tools.ietf.org/html/rfc{rfc}")</dd>
</dl>
<t>
URI Template for HTML Version of RFCs.
</t>
</section>
<section title="sec-no-trailing-dots - Disable Trailing Dots in Section Numbers" anchor="xml2rfc-ext-sec-no-trailing-dots">
<iref item="sec-no-trailing-dots PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="sec-no-trailing-dots"/>
<iref item="xml2rfc-ext-sec-no-trailing-dots parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-sec-no-trailing-dots"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>sec-no-trailing-dots</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-sec-no-trailing-dots</dd>
<dt>default</dt>
<dd>none</dd>
</dl>
<t>
When set to "no", do not add trailing dots to section numbers (this was the preference in the distant past).
</t>
</section>
<section title="std-uri - URI Template for IETF Standards" anchor="xml2rfc-ext-std-uri">
<iref item="std-uri PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="std-uri"/>
<iref item="xml2rfc-ext-std-uri parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-std-uri"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>std-uri</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-std-uri</dd>
<dt>default</dt>
<dd>"https://www.rfc-editor.org/info/std{std}"</dd>
</dl>
<t>
URI Template for IETF Standards.
</t>
</section>
<section title="support-highwire-press-tags - Support 'Highwire Press' Metadata" anchor="xml2rfc-ext-support-highwire-press-tags">
<iref item="support-highwire-press-tags PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="support-highwire-press-tags"/>
<iref item="xml2rfc-ext-support-highwire-press-tags parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-support-highwire-press-tags"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>support-highwire-press-tags</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-support-highwire-press-tags</dd>
<dt>default</dt>
<dd>"yes"</dd>
</dl>
<t>
Decides whether the HTML transformation should generate 'Highwire Press' META tags, as used by Google Scholar.
</t>
</section>
<section title="support-open-graph-tags - Support 'Highwire Press' Metadata" anchor="xml2rfc-ext-support-open-graph-tags">
<iref item="support-open-graph-tags PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="support-open-graph-tags"/>
<iref item="xml2rfc-ext-support-open-graph-tags parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-support-open-graph-tags"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>support-open-graph-tags</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-support-open-graph-tags</dd>
<dt>default</dt>
<dd>"yes"</dd>
</dl>
<t>
Decides whether the HTML transformation should generate 'Open Graph' META tags, as used by Twitter.
</t>
</section>
<section title="support-rfc2731 - Support RFC 2731 Metadata" anchor="xml2rfc-ext-support-rfc2731">
<iref item="support-rfc2731 PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="support-rfc2731"/>
<iref item="xml2rfc-ext-support-rfc2731 parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-support-rfc2731"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>support-rfc2731</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-support-rfc2731</dd>
<dt>default</dt>
<dd>"yes"</dd>
</dl>
<t>
Decides whether the HTML transformation should generate META tags according <xref target="rfc2731.properties"/>.
</t>
</section>
<section title="ucd-file - Filename of Unicode Database" anchor="xml2rfc-ext-ucd-file">
<iref item="ucd-file PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="ucd-file"/>
<iref item="xml2rfc-ext-ucd-file parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-ucd-file"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>ucd-file</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-ucd-file</dd>
<dt>default</dt>
<dd>none</dd>
</dl>
<t>
Specifies an external resource containing Unicode character database information, as described in <xref target="ext.element.u-map"/>.
</t>
</section>
<section title="xml2rfc-backend - Select xml2rfc Target Version" anchor="xml2rfc-ext-xml2rfc-backend">
<iref item="xml2rfc-backend PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="xml2rfc-backend"/>
<iref item="xml2rfc-ext-xml2rfc-backend parameter"/><iref item="Parameters" subitem="xml2rfc-ext-xml2rfc-backend"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>xml2rfc-backend</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-xml2rfc-backend</dd>
<dt>default</dt>
<dd>based on document date</dd>
</dl>
<t>Used in <tt>clean-for-DTD.xslt</tt> (see <xref target="clean-for-dtd"/>).</t>
</section>
<section title="xref-with-text-generate - Default Handling of <xref> with Text Content" anchor="xml2rfc-ext-xref-with-text-generate">
<iref item="xref-with-text-generate PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="xref-with-text-generate"/>
<iref item="xml2rfc-ext-xref-with-text-generate parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-xref-with-text-generate"/>
<dl newline="true">
<dt>PI target</dt>
<dd>rfc-ext</dd>
<dt>PI pseudo-attribute</dt>
<dd>xref-with-text-generate</dd>
<dt>XSLT parameter name</dt>
<dd>xml2rfc-ext-xref-with-text-generate</dd>
<dt>default</dt>
<dd>"text"</dd>
</dl>
<t>
Determines whether <xref> with text content generates additional text as in traditional text output ("text"), or just generates a link around the text ("nothing"). Note that the default might change in the future in order to achieve compatibility with other formatters.
</t>
</section>
</section>
</section>
<section title="Anchors" anchor="anchors">
<t>
The transformation automatically generates anchors that are supposed to
be stable and predictable and that can be used to identify specific
parts of the document. Anchors are generated both in HTML and XSL-FO
content (but the latter will only be used for PDF output when the XSL-FO
engine supports producing PDF anchors).
</t>
<texttable>
<preamble>The following anchors get auto-generated:</preamble>
<ttcol>Anchor name</ttcol><ttcol>Description</ttcol>
<c>rfc.abstract <iref item="rfc.abstract anchor"/><iref item="Anchors" subitem="rfc.abstract"/></c><c>Abstract</c>
<c>rfc.authors <iref item="rfc.authors anchor"/><iref item="Anchors" subitem="rfc.authors"/></c><c>Authors section</c>
<c>rfc.copyright <iref item="rfc.copyright anchor"/><iref item="Anchors" subitem="rfc.copyright"/></c><c>Copyright section</c>
<c>rfc.copyrightnotice <iref item="rfc.copyrightnotice anchor"/><iref item="Anchors" subitem="rfc.copyrightnotice"/></c><c>Copyright notice</c>
<c>rfc.figure.<em>n</em> <iref item="rfc.figure.n anchor"/><iref item="Anchors" subitem="rfc.figure.n"/></c><c>Figures (titled)</c>
<c>rfc.figure.u.<em>n</em> <iref item="rfc.figure.u.n anchor"/><iref item="Anchors" subitem="rfc.figure.u.n"/></c><c>Figures (untitled)</c>
<c>rfc.index <iref item="rfc.index anchor"/><iref item="Anchors" subitem="rfc.index"/></c><c>Index</c>
<c>rfc.ipr <iref item="rfc.ipr anchor"/><iref item="Anchors" subitem="rfc.ipr"/></c><c>Intellectual Property</c>
<c>rfc.iref.<em>n</em> <iref item="rfc.iref.n anchor"/><iref item="Anchors" subitem="rfc.iref.n"/></c><c>Internal references</c>
<c>rfc.note.<em>n</em> <iref item="rfc.note.n anchor"/><iref item="Anchors" subitem="rfc.note.n"/></c><c>Notes (from front section)</c>
<c>rfc.references <iref item="rfc.references anchor"/><iref item="Anchors" subitem="rfc.references"/></c><c>References</c>
<c>rfc.references.<em>n</em> <iref item="rfc.references.n anchor"/><iref item="Anchors" subitem="rfc.references"/></c><c>Additional references</c>
<c>rfc.section.<em>n</em> <iref item="rfc.section.n anchor"/><iref item="Anchors" subitem="rfc.section.n"/></c><c>Section <em>n</em></c>
<c>rfc.section.<em>n</em>.p.<em>m</em> <iref item="rfc.section.n.p.m anchor"/><iref item="Anchors" subitem="rfc.section.n.p.m"/></c><c>Section <em>n</em>, paragraph <em>m</em></c>
<c>rfc.status <iref item="rfc.status anchor"/><iref item="Anchors" subitem="rfc.status"/></c><c>Status of memo</c>
<c>rfc.table.<em>n</em> <iref item="rfc.figure.n anchor"/><iref item="Anchors" subitem="rfc.figure.n"/></c><c>Tables (titled)</c>
<c>rfc.table.u.<em>n</em> <iref item="rfc.figure.u.n anchor"/><iref item="Anchors" subitem="rfc.figure.u.n"/></c><c>Tables (untitled)</c>
<c>rfc.toc <iref item="rfc.toc anchor"/><iref item="Anchors" subitem="rfc.toc"/></c><c>Table of contents</c>
<c>rfc.xref.<em>name</em>.<em>n</em> <iref item="rfc.xref.name.n anchor"/><iref item="Anchors" subitem="rfc.xref.name.n"/></c><c>References to reference <em>n</em> to <em>name</em></c>
</texttable>
</section>
<section title="Supported XSLT engines" anchor="xslt.engines">
<t>
The transformation requires a non-standard extension function (see <eref target="http://www.exslt.org/exsl/functions/node-set/index.html">
exsl:node-set</eref>)
which is however widely available. XSLT processors that do not support this
extension (or a functional equivalent, such as msxsl:node-set) currently are not supported.
</t>
<t anchor="exsl-date-time">
Input documents do not always specify the date completely. In this case, the
transformation attempts to let the XSLT engine to compute the system date,
using either scripting in Microsoft's XSLT engine, or