source: rfc2629xslt/rfc2629xslt.xml @ 24

Last change on this file since 24 was 6, checked in by fielding@…, 15 years ago

XSLT stylesheet for enhanced RFC2629 xml2rfc output as HTML.
By Julian Reschke

Obtained from: wget -N http://www.greenbytes.de/tech/webdav/rfc2629xslt.zip

  • Property svn:eol-style set to native
File size: 93.7 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
3
4<?rfc header="Documentation"?>
5<?rfc private="RFC2629 through XSLT"?>
6<?rfc toc="yes"?>
7<!-- <?rfc topblock="no"?>  -->
8<?rfc strict="yes"?>
9<?rfc symrefs="yes"?>
10<?rfc sortrefs="yes"?>
11<?rfc-ext allow-markup-in-artwork="yes" ?>
12<?rfc-ext include-references-in-index="yes" ?>
13
14<rfc xmlns:x="http://purl.org/net/xml2rfc/ext">
15        <front>
16        <title abbrev="RFC2629 through XSLT">Transforming RFC2629-formatted XML through XSLT</title>
17
18        <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
19                <organization abbrev="greenbytes">greenbytes GmbH</organization>
20        <address>
21                <postal>
22                <street>Hafenweg 16</street>
23            <city>Muenster</city><region>NW</region><code>48155</code>
24                <country>Germany</country>
25                </postal>
26                  <phone>+49 251 2807760</phone>       
27                  <email>julian.reschke@greenbytes.de</email>   
28                  <uri>http://greenbytes.de/tech/webdav/</uri> 
29                </address>
30        </author>
31     
32    <date month="December" year="2007"/>
33    <keyword>RFC2629</keyword>
34    <keyword>xml2rfc</keyword>
35    <keyword>XSLT</keyword>
36    <keyword>hCard</keyword>
37    <keyword>XSL-FO</keyword>
38    <keyword>PDF</keyword>
39    <keyword>GRDDL</keyword>
40    <keyword>Dublin Core</keyword>
41        </front>
42
43        <middle>
44
45<section title="Introduction">
46<t>
47  This document describes a set of XSLT transformations that can be used to
48  transform RFC2629-compliant XML (see <xref target="RFC2629"/>) to various
49  output formats, such as HTML and PDF. The main topics are 
50  <list style="symbols">
51    <t>compliance to the xml2rfc XML element set (<xref target="supported.elements"/>),</t>
52    <t>support for xml2rfc processing instructions (<xref target="processing.instructions"/>),</t>
53    <t>the names of anchor elements generated in HTML and PDF output (<xref target="anchors"/>),</t>
54    <t>various XSLT engines that can be used (<xref target="xslt.engines"/>),</t>
55    <t>outputting HTML (<xref target="output.html"/>) and XHTML (<xref target="output.xhtml"/>),</t>
56    <t>outputting CHM (Compiled Microsoft Help, <xref target="output.chm"/>),</t>
57    <t>outputting PDF through XSL-FO (<xref target="output.pdf"/>) and</t>
58    <t>various utilities (<xref target="utilities"/>).</t>
59  </list>
60</t>
61</section>
62
63<section title="Supported RFC2629 elements" anchor="supported.elements">
64<t>
65  <spanx style="verb">rfc2629.xslt</spanx> supports both all RFC2629 grammar elements and the extensions
66  implemented in xml2rfc 1.21.
67</t>
68<section title="Extension elements">
69<t>
70  In addition, <spanx style="verb">rfc2629.xslt</spanx> supports a set of extension elements, using elements
71  and attributes in the namespace "http://greenbytes.de/2002/rfcedit". They
72  are used for
73  <list style="symbols">
74    <t>simple issue tracking and change tracking and</t>
75    <t>adding additional metadata to the generated documents (such as HTML LINK
76    elements to related documents, see <xref target="html.link"/>).</t>
77  </list>
78</t>
79<t>
80  Note that these extensions are experimental. Please email the author in case
81  you're interested in using these extensions.
82</t>
83</section>
84</section>
85
86<section title="Processing Instructions" anchor="processing.instructions">
87<t>
88  All PIs can be set as XSLT parameter as well, overriding any value that
89  is found in the source file to be transformed.
90</t>
91<figure>
92<preamble>Using processing instructions:</preamble>
93<artwork type="example">
94&lt;?rfc toc="yes"?>
95&lt;?rfc-ext support-rfc2731="no"?>
96</artwork>
97</figure>
98<figure>
99<preamble>Using XSLT parameters (Saxon):</preamble>
100<artwork type="example">
101java -cp saxon.jar com.icl.saxon.StyleSheet source.xml rfc2629.xslt \
102  xml2rfc-toc=yes xml2rfc-ext-support-rfc2731=no > result.html
103</artwork>
104</figure>
105<figure>
106<preamble>Using XSLT parameters (xsltproc):</preamble>
107<artwork type="example">
108xsltproc --param xml2rfc-toc '"yes"' \
109   --param xml2rfc-ext-support-rfc2731 '"no"' \
110   rfc2629.xslt source.xml > result.html
111</artwork>
112<postamble>(note the required quoting of string parameters)<iref item="xsltproc" subitem="passing parameters"/></postamble>
113</figure>
114
115<section title="Supported xml2rfc-compatible PIs">
116<texttable>
117  <ttcol>PI target</ttcol>
118  <ttcol>PI pseudo-attribute</ttcol>
119  <ttcol>XSLT parameter name</ttcol>
120  <ttcol>default</ttcol>
121  <ttcol>comment</ttcol>
122
123  <c>rfc</c>
124  <c>background<iref item="background PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="background"/></c>
125  <c>xml2rfc-background<iref item="xml2rfc-background parameter"/> <iref item="Parameters" subitem="xml2rfc-background"/></c>
126  <c>(not set)</c>
127  <c/>
128 
129  <c>rfc</c>
130  <c>compact<iref item="compact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="compact"/></c>
131  <c>xml2rfc-compact<iref item="xml2rfc-editing parameter"/> <iref item="Parameters" subitem="xml2rfc-compact"/></c>
132  <c>"no"</c>
133  <c>only applies to HTML output method when printing</c>
134
135  <c>rfc</c>
136  <c>comments<iref item="comments PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="comments"/></c>
137  <c>xml2rfc-comments<iref item="xml2rfc-comments parameter"/> <iref item="Parameters" subitem="xml2rfc-comments"/></c>
138  <c>(not set)</c>
139  <c/>
140
141  <c>rfc</c>
142  <c>editing<iref item="editing PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="editing"/></c>
143  <c>xml2rfc-editing<iref item="xml2rfc-editing parameter"/> <iref item="Parameters" subitem="xml2rfc-editing"/></c>
144  <c>"no"</c>
145  <c/>
146 
147  <c>rfc</c>
148  <c>footer<iref item="footer PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="footer"/></c>
149  <c>xml2rfc-footer<iref item="xml2rfc-footer parameter"/> <iref item="Parameters" subitem="xml2rfc-footer"/></c>
150  <c>(not set)</c>
151  <c/>
152 
153  <c>rfc</c>
154  <c>header<iref item="header PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="header"/></c>
155  <c>xml2rfc-header<iref item="xml2rfc-header parameter"/> <iref item="Parameters" subitem="xml2rfc-header"/></c>
156  <c>(not set)</c>
157  <c/>
158
159  <c>rfc</c>
160  <c>inline<iref item="inline PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="inline"/></c>
161  <c>xml2rfc-inline<iref item="xml2rfc-inline parameter"/> <iref item="Parameters" subitem="xml2rfc-inline"/></c>
162  <c>(not set)</c>
163  <c/>
164
165  <c>rfc</c>
166  <c>iprnotified<iref item="iprnotified PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="iprnotified"/></c>
167  <c>xml2rfc-iprnotified<iref item="xml2rfc-iprnotified parameter"/> <iref item="Parameters" subitem="xml2rfc-iprnotified"/></c>
168  <c>"no"</c>
169  <c/>
170
171  <c>rfc</c>
172  <c>linkmailto<iref item="linkmailto PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="linkmailto"/></c>
173  <c>xml2rfc-linkmailto<iref item="xml2rfc-linkmailto parameter"/> <iref item="Parameters" subitem="xml2rfc-linkmailto"/></c>
174  <c>"yes"</c>
175  <c/>
176 
177  <c>rfc</c>
178  <c>private<iref item="private PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="private"/></c>
179  <c>xml2rfc-private<iref item="xml2rfc-private parameter"/> <iref item="Parameters" subitem="xml2rfc-private"/></c>
180  <c>(not set)</c>
181  <c/>
182 
183  <c>rfc</c>
184  <c>sortrefs<iref item="sortrefs PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="sortrefs"/></c>
185  <c>xml2rfc-sortrefs<iref item="xml2rfc-sortrefs parameter"/> <iref item="Parameters" subitem="xml2rfc-sortrefs"/></c>
186  <c>"no"</c>
187  <c/>
188 
189  <c>rfc</c>
190  <c>symrefs<iref item="symrefs PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="symrefs"/></c>
191  <c>xml2rfc-symrefs<iref item="xml2rfc-symrefs parameter"/> <iref item="Parameters" subitem="xml2rfc-symrefs"/></c>
192  <c>"yes"</c>
193  <c>The default has changed from "no" to "yes" as of June 6, 2007 and xml2rfc 1.33pre4.</c>
194 
195  <c>rfc</c>
196  <c>toc<iref item="toc PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="toc"/></c>
197  <c>xml2rfc-toc<iref item="xml2rfc-toc parameter"/> <iref item="Parameters" subitem="xml2rfc-toc"/></c>
198  <c>"no"</c>
199  <c/>
200 
201  <c>rfc</c>
202  <c>tocdepth<iref item="tocdepth PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocdepth"/></c>
203  <c>xml2rfc-tocdepth<iref item="xml2rfc-tocdepth parameter"/> <iref item="Parameters" subitem="xml2rfc-tocdepth"/></c>
204  <c>99</c>
205  <c/>
206
207  <c>rfc</c>
208  <c>topblock<iref item="topblock PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="topblock"/></c>
209  <c>xml2rfc-topblock<iref item="xml2rfc-topblock parameter"/> <iref item="Parameters" subitem="xml2rfc-topblock"/></c>
210  <c>"yes"</c>
211  <c/>
212
213</texttable>
214</section>
215
216<section title="Unsupported xml2rfc-compatible PIs">
217<texttable>
218  <ttcol>PI target</ttcol>
219  <ttcol>PI pseudo-attribute</ttcol>
220  <ttcol>comment</ttcol>
221
222  <c>rfc</c>
223  <c>include<iref item="include PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="include"/></c>
224  <c>incompatible with XML/XSLT processing model</c>
225
226  <c>rfc</c>
227  <c>needLines<iref item="needLines PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="needLines"/></c>
228  <c/>
229
230  <c>rfc</c>
231  <c>slides<iref item="slides PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="slides"/></c>
232  <c/>
233
234  <c>rfc</c>
235  <c>strict<iref item="strict PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="strict"/></c>
236  <c/>
237
238  <c>rfc</c>
239  <c>subcompact<iref item="subcompact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="subcompact"/></c>
240  <c/>
241
242  <c>rfc</c>
243  <c>tocindent<iref item="tocindent PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocindent"/></c>
244  <c>(defaults to "yes")</c>
245
246 <c>rfc</c>
247  <c>tocompact<iref item="tocompact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocompact"/></c>
248  <c/>
249
250</texttable>
251</section>
252
253<section title="Extension PIs">
254<texttable>
255  <ttcol>PI target</ttcol>
256  <ttcol>PI pseudo-attribute</ttcol>
257  <ttcol>XSLT parameter name</ttcol>
258  <ttcol>default</ttcol>
259  <ttcol>description</ttcol>
260
261  <c>rfc-ext</c>
262  <c>allow-markup-in-artwork<iref item="allow-markup-in-artwork PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="allow-markup-in-artwork"/></c>
263  <c>xml2rfc-allow-markup-in-artwork<iref item="xml2rfc-ext-allow-markup-in-artwork parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-allow-markup-in-artwork"/></c>
264  <c>"no"</c>
265  <c>Enables support for specific elements inside abstract elements (using this extension
266  makes the document incompatible to the RFC2629bis DTD; see description of
267  conversion XSLT in <xref target="clean-for-dtd"/>).</c>
268
269  <c>rfc-ext</c>
270  <c>authors-section<iref item="authors-section PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="authors-section"/></c>
271  <c>xml2rfc-ext-authors-section<iref item="xml2rfc-ext-authors-section parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-authors-section"/></c>
272  <c></c>
273  <c>When "end", place the authors section at the end (just before the
274  copyright statements). This seems to be the preferred order in the
275  newest RFCs.</c>
276
277  <c>rfc-ext</c>
278  <c>include-references-in-index<iref item="include-references-in-index PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="include-references-in-index"/></c>
279  <c>xml2rfc-ext-include-references-in-index<iref item="xml2rfc-ext-include-references-in-index parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-include-references-in-index"/></c>
280  <c></c>
281  <c>When set to "yes", index entries are generated for all references.</c>
282
283  <c>rfc-ext</c>
284  <c>justification<iref item="justification PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="ijustification"/></c>
285  <c>xml2rfc-ext-justification<iref item="xml2rfc-ext-justification parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-justification"/></c>
286  <c>"never"</c>
287  <c>"never": never emit justified text, "always": always emit justified text, "print": only emit justified text for print media.</c>
288
289  <c>rfc-ext</c>
290  <c>parse-xml-in-artwork<iref item="parse-xml-in-artwork PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="parse-xml-in-artwork"/></c>
291  <c>xml2rfc-parse-xml-in-artwork<iref item="xml2rfc-ext-parse-xml-in-artwork parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-parse-xml-in-artwork"/></c>
292  <c>"no"</c>
293  <c>May be used to enable parsing of XML content in figures (MSXML only).</c>
294
295  <c>rfc-ext</c>
296  <c>support-rfc2731<iref item="support-rfc2731 PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="support-rfc2731"/></c>
297  <c>xml2rfc-ext-support-rfc2731<iref item="xml2rfc-ext-support-rfc2731 parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-support-rfc2731"/></c>
298  <c>"yes"</c>
299  <c>Decides whether the HTML transformation should generate META tags according <xref target="rfc2731.properties"/>.</c>
300
301  <c>rfc-ext</c>
302  <c>sec-no-trailing-dots<iref item="sec-no-trailing-dots PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="sec-no-trailing-dots"/></c>
303  <c>xml2rfc-ext-sec-no-trailing-dots<iref item="xml2rfc-ext-sec-no-trailing-dots parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-sec-no-trailing-dots"/></c>
304  <c></c>
305  <c>When set to "yes", add trailing dots to section numbers. This seems to be the preferred format in the
306  newest RFCs.</c>
307
308</texttable>
309</section>
310
311</section>
312
313<section title="Anchors" anchor="anchors">
314<t>
315  The transformation automatically generates anchors that are supposed to
316  be stable and predictable and that can be used to identify specific
317  parts of the document. Anchors are generated both in HTML and XSL-FO
318  content (but the latter will only be used for PDF output when the XSL-FO
319  engine supports producing PDF anchors).
320</t>
321<texttable>
322<preamble>The following anchors get auto-generated:</preamble>
323<ttcol>Anchor name</ttcol><ttcol>Description</ttcol>
324
325  <c>rfc.abstract <iref item="rfc.abstract anchor"/><iref item="Anchors" subitem="rfc.abstract"/></c><c>Abstract</c>
326  <c>rfc.authors <iref item="rfc.authors anchor"/><iref item="Anchors" subitem="rfc.authors"/></c><c>Authors section</c>
327  <c>rfc.copyright <iref item="rfc.copyright anchor"/><iref item="Anchors" subitem="rfc.copyright"/></c><c>Copyright section</c>
328  <c>rfc.copyrightnotice <iref item="rfc.copyrightnotice anchor"/><iref item="Anchors" subitem="rfc.copyrightnotice"/></c><c>Copyright notice</c>
329  <c>rfc.figure.<spanx>n</spanx> <iref item="rfc.figure.n anchor"/><iref item="Anchors" subitem="rfc.figure.n"/></c><c>Figures (titled)</c>
330  <c>rfc.figure.u.<spanx>n</spanx> <iref item="rfc.figure.u.n anchor"/><iref item="Anchors" subitem="rfc.figure.u.n"/></c><c>Figures (untitled)</c>
331  <c>rfc.index <iref item="rfc.index anchor"/><iref item="Anchors" subitem="rfc.index"/></c><c>Index</c>
332  <c>rfc.ipr <iref item="rfc.ipr anchor"/><iref item="Anchors" subitem="rfc.ipr"/></c><c>Intellectual Property</c>
333  <c>rfc.iref.<spanx>n</spanx> <iref item="rfc.iref.n anchor"/><iref item="Anchors" subitem="rfc.iref.n"/></c><c>Internal references</c>
334  <c>rfc.note.<spanx>n</spanx> <iref item="rfc.note.n anchor"/><iref item="Anchors" subitem="rfc.note.n"/></c><c>Notes (from front section)</c>
335  <c>rfc.references <iref item="rfc.references anchor"/><iref item="Anchors" subitem="rfc.references"/></c><c>References</c>
336  <c>rfc.references.<spanx>n</spanx> <iref item="rfc.references.n anchor"/><iref item="Anchors" subitem="rfc.references"/></c><c>Additional references</c>
337  <c>rfc.section.<spanx>n</spanx> <iref item="rfc.section.n anchor"/><iref item="Anchors" subitem="rfc.section.n"/></c><c>Section <spanx>n</spanx></c>
338  <c>rfc.section.<spanx>n</spanx>.p.<spanx>m</spanx> <iref item="rfc.section.n.p.m anchor"/><iref item="Anchors" subitem="rfc.section.n.p.m"/></c><c>Section <spanx>n</spanx>, paragraph <spanx>m</spanx></c>
339  <c>rfc.status <iref item="rfc.status anchor"/><iref item="Anchors" subitem="rfc.status"/></c><c>Status of memo</c>
340  <c>rfc.table.<spanx>n</spanx> <iref item="rfc.figure.n anchor"/><iref item="Anchors" subitem="rfc.figure.n"/></c><c>Tables (titled)</c>
341  <c>rfc.table.u.<spanx>n</spanx> <iref item="rfc.figure.u.n anchor"/><iref item="Anchors" subitem="rfc.figure.u.n"/></c><c>Tables (untitled)</c>
342  <c>rfc.toc <iref item="rfc.toc anchor"/><iref item="Anchors" subitem="rfc.toc"/></c><c>Table of contents</c>
343  <c>rfc.xref.<spanx>name</spanx>.<spanx>n</spanx> <iref item="rfc.xref.name.n anchor"/><iref item="Anchors" subitem="rfc.xref.name.n"/></c><c>References to reference <spanx>n</spanx> to <spanx>name</spanx></c>
344
345</texttable>
346</section>
347
348<section title="Supported XSLT engines" anchor="xslt.engines">
349<t>
350  The transformation requires a non-standard extension function (see <eref target="http://www.exslt.org/exsl/functions/node-set/exsl.node-set.html">
351  exsl:node-set</eref>)
352  which is however widely available. XSLT processors that do not support this
353  extension (or a functional equivalent) currently are not supported.
354</t>
355<section title="Standalone Engines">
356<t>
357  The following XSLT engines are believed to work well:
358  <list style="symbols">
359    <t><iref item="MSXML3"/><iref item="MSXML4"/>MSXML3 and MSXML4 (<eref target="http://msdn.microsoft.com/xml"/>; these processors
360    do not support exsl:node-set(), but have a similar proprietary extension)</t>
361    <t><iref item="Saxon"/>Saxon (<eref target="http://saxon.sourceforge.net/"/>)</t>
362    <t><iref item="Xalan"/>Xalan (<eref target="http://xml.apache.org/xalan-j/"/>)</t>
363    <t><iref item="xsltproc"/>xsltproc (libxslt) (<eref target="http://xmlsoft.org/XSLT/"/>, make sure that you
364    have a current version)</t>
365  </list>
366</t>
367</section>
368
369<section title="In-Browser Engines">
370<t>
371  The following browsers seem to work fine:
372  <list style="symbols">
373    <t><iref item="Internet Explorer 5.5"/>Internet Explorer 5.5 (Windows version, if MSXML3 is installed)</t>
374    <t><iref item="Internet Explorer 6"/>Internet Explorer 6</t>
375    <t><iref item="Internet Explorer 7"/>Internet Explorer 7</t>
376    <t anchor="firefox3"><iref item="Mozilla"/><iref item="Firefox" subitem="3.*"/>Firefox 3.* (currently only test builds available)</t>
377    <t><iref item="Opera"/><iref item="Opera" subitem="9.5"/>Opera 9.5 (currently only test builds available)</t>
378    <t><iref item="Safari"/><iref item="Safari" subitem="3.*"/>Safari 3 (starting with version 3.0.4)</t>
379  </list>
380</t>
381<t>
382  The following browsers are known not to work properly:
383  <list style="symbols">
384    <t anchor="firefox12"><iref item="Mozilla"/><iref item="Firefox" subitem="1.*/2.*"/>Firefox 1.*/2.* (missing extension function - see change request at Mozilla BugZilla
385    <eref target="http://bugzilla.mozilla.org/show_bug.cgi?id=193678">193678</eref>)</t>
386    <t anchor="opera"><iref item="Opera"/>Opera 9.21: execution fails, potentially
387    to a somewhat complex XPath expression (reported to Opera as bug 245725).</t>
388    <t anchor="safari"><iref item="Safari"/>Safari 2.* supports client-side XSLT as of MacOS X 10.4,
389    but misses required extension functions. A problem
390    with stylesheets producing non-ASCII output (such as NBSP characters)
391    has been fixed as of OSX 10.4.4. Both
392    problems have been reported through Apple's bug tracking system, see
393    <eref target="http://drakken.dbc.mtview.ca.us/pipermail/xml2rfc/2005-May/002073.html"/> and
394    <eref target="http://bugs.webkit.org/show_bug.cgi?id=4079"/>.
395    </t>
396  </list>
397</t>
398</section>
399
400</section>
401
402<section title="Transforming to HTML" anchor="output.html">
403<t>
404  Transformation to HTML can be done inside the browser if it supports
405  XSLT. To enable this, add the following processing instruction to
406  the start of the source file:
407</t>
408<iref item="xml-stylesheet PI"/>
409<figure><artwork type="example">
410  &lt;?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
411</artwork></figure>
412<t>
413  (and ensure that <spanx style="verb">rfc2629.xslt</spanx> is present).
414</t>
415
416<section title="HTML compliance">
417<t>
418  The transformation result is supposed to conform to the HTML 4.01 strict
419  DTD <xref target="HTML"/>. This can be checked using the W3C's online
420  validator at <eref target="http://validator.w3.org" /><iref item="HTML compliance"/>.
421</t>
422</section>
423
424<section title="Standard HTML LINK elements" anchor="html.link">
425<t>
426  LINK elements exist since HTML 2.0. They can be used to embed content-independant
427  links inside the document. Unfortunately, only few user agents
428  support this element. Firefox users may want to check the
429  <eref target="https://addons.mozilla.org/firefox/2933/">Link Widgets</eref>
430  extension.
431</t>
432<texttable>
433<preamble>The following LINK elements are produced:</preamble>
434
435  <ttcol>LINK type</ttcol>
436  <ttcol>description</ttcol>
437 
438  <c>alternate<iref item="alternate HTML LINK element"/><iref item="HTML LINK elements" subitem="alternate"/></c><c>for RFCs, a link to the authorative ASCII version on the IETF web site</c>
439  <c>appendic<iref item="appendix HTML LINK element"/><iref item="HTML LINK elements" subitem="appendix"/></c><c>pointer to all top-level appendics</c>
440  <c>author<iref item="author HTML LINK element"/><iref item="HTML LINK elements" subitem="author"/></c><c>pointer to "authors" section</c>
441  <c>chapter<iref item="chapter HTML LINK element"/><iref item="HTML LINK elements" subitem="chapter"/></c><c>pointer to all top-level sections</c>
442  <c>contents<iref item="contents HTML LINK element"/><iref item="HTML LINK elements" subitem="contents"/></c><c>pointer to table of contents</c>
443  <c>copyright<iref item="copyright HTML LINK element"/><iref item="HTML LINK elements" subitem="copyright"/></c><c>pointer to copyright statement</c>
444  <c>index<iref item="index HTML LINK element"/><iref item="HTML LINK elements" subitem="index"/></c><c>pointer to index</c>
445
446</texttable>
447<figure>
448<preamble>
449The figure below shows how Mozilla Firefox 1.0 displays the Site Navigation Bar
450for rfc2396.xml.
451</preamble>
452<artwork src="rfc2629xslt-fig1.png" height="235" width="509" type="image/png">
453(LINK elements displayed in Mozilla Firefox for RFC2396.xml)
454</artwork>
455</figure>
456
457</section>
458
459
460<section title="Standard HTML metadata">
461<texttable>
462<preamble>The following standard HTML META elements are produced:</preamble>
463
464  <ttcol>META name</ttcol>
465  <ttcol>description</ttcol>
466 
467  <c>generator<iref item="generator HTML META element"/><iref item="HTML META elements" subitem="generator"/></c><c>from XSLT engine version and stylesheet version</c>
468  <c>keywords<iref item="keywords HTML META element"/><iref item="HTML META elements" subitem="keywords"/></c><c>from keyword elements in front section</c>
469
470</texttable>
471</section>
472
473
474<section title="Dublin Core (RFC2731) metadata" anchor="rfc2731.properties">
475<t>
476  Unless turned off using the "rfc-ext support-rfc2731" processing
477  instruction, the transformation will generate metadata according to
478  <xref target="RFC2731"/>.
479</t>
480<texttable>
481<preamble>The following DCMI properties are produced:</preamble>
482
483  <ttcol>META name</ttcol>
484  <ttcol>description</ttcol>
485 
486  <c>DC.Creator<iref item="Creator DCMI property"/><iref item="DCMI properties" subitem="Creator"/></c><c>from author information in front section</c>
487  <c>DC.Date.Issued<iref item="Date.Issued DCMI property"/><iref item="DCMI properties" subitem="Date.Issued"/></c><c>from date information in front section</c>
488  <c>DC.Description.Abstract<iref item="Description.Abstract DCMI property"/><iref item="DCMI properties" subitem="Description.Abstract"/></c><c>from abstract</c>
489  <c>DC.Identifier<iref item="Identifier DCMI property"/><iref item="DCMI properties" subitem="Identifier"/></c><c>document URN <xref target="RFC2648" /> from "docName" attribute</c>
490  <c>DC.Relation.Replaces<iref item="Relation.Replaces DCMI property"/><iref item="DCMI properties" subitem="Relation.Replaces"/></c><c>from "obsoletes" attribute</c>
491
492</texttable>
493</section>
494
495<section title="Experimental hCard support" anchor="hcard">
496<t>
497  The generated author information is formatted in <eref target="http://microformats.org/wiki/hcard">hCard</eref>
498  format.
499</t>
500</section>
501
502
503</section>
504
505<section title="Transforming to XHTML" anchor="output.xhtml">
506<t>
507  Transforming to XHTML requires slightly different XSLT output options and
508  is implemented by the derived transformation script <spanx style="verb">rfc2629toXHTML.xslt</spanx>.
509</t>
510<t><list><t>
511  <x:h>Note:</x:h> Microsoft Internet Explorer does <spanx>not</spanx> support XHTML.
512  Therefore it usually makes more sense to generate plain old HTML.
513</t></list></t>
514</section>
515
516<section title="Transforming to CHM (Microsoft Compiled Help)" anchor="output.chm">
517<t>
518  <iref item="CHM format"/>
519  <iref item="Microsoft Help"/>
520  To generate a CHM file using Microsoft's HTML Help Compiler (hhc), three
521  files are required in addition to the HTML file.
522  <list style="numbers">
523    <t>hhc - table of contents file (HTML)</t>
524    <t>hhk - index file (HTML)</t>
525    <t>hhp - project file (plain text)</t>
526  </list>
527</t>
528<t>
529  The three files are generated with three specific transformations, each
530  requiring the additional XSLT parameter "basename" to specify the filename
531  prefix.
532</t>
533<figure>
534<preamble>Example:</preamble>
535<artwork type="example">
536saxon rfc2616.xml rfc2629toHhp.xslt basename=rfc2616  > rfc2616.hhp
537saxon rfc2616.xml rfc2629toHhc.xslt basename=rfc2616  > rfc2616.hhc
538saxon rfc2616.xml rfc2629toHhk.xslt basename=rfc2616  > rfc2616.hhk
539hhc rfc2616.hhp
540</artwork>
541</figure>
542</section>
543
544<section title="Transforming to PDF via XSL-FO" anchor="output.pdf">
545
546<section title="Via XSL-FO" anchor="output.pdf.fop">
547<t>
548  Transformation to XSL-FO <xref target="XSL-FO"/> format is available through
549  <spanx style="verb">rfc2629toFO.xslt</spanx> (which includes <spanx style="verb">rfc2629.xslt</spanx>, so keep both in the
550  same folder).
551</t>
552<t>
553  Compared to HTML user agents, XSL-FO engines unfortunately either come
554  as open source (for instance, <iref item="Apache FOP"/>Apache FOP) or
555  feature-complete (for instance, <iref item="AntennaHouse XSL Formatter"/>
556  AntennaHouse XSL Formatter), but not both at the same time.
557</t>
558<t>
559  As Apache FOP needs special workarounds (page breaking, table layout), and
560  some popular extensions aren't standardized yet, the translation produces
561  a generic output (hopefully) conforming to <xref target="XSL-FO"/>.
562  Specific backends (<spanx style="verb">xsl11toFop.xslt</spanx>,
563  <spanx style="verb">xsl11toXep.xslt</spanx>, <spanx style="verb">xsl11toAn.xslt</spanx>)
564  then provide post-processing for the individual processors.
565</t>
566<t>
567  <list>
568    <t>
569      <x:h>Note:</x:h>
570      the output is currently targeted at Apache FOP 0.20.5
571      (<eref target="http://xmlgraphics.apache.org/fop/0.20.5/"/>), not the
572      newer versions.
573    </t>
574  </list>
575</t>
576
577<section title="Extension feature matrix">
578<texttable>
579  <ttcol/>
580  <ttcol align="center" width="20%">PDF anchors</ttcol>
581  <ttcol align="center" width="20%">PDF bookmarks</ttcol>
582  <ttcol align="center" width="20%">PDF document information</ttcol>
583  <ttcol align="center" width="20%">Index cleanup</ttcol>
584 
585  <c><eref target="http://www.w3.org/TR/2003/WD-xsl11-20031217/">XSL 1.1 WD</eref></c>
586  <c>no, but can be auto-generated from "id" attributes</c> 
587  <c><eref target="http://www.w3.org/TR/2003/WD-xsl11-20031217/#d0e12873">yes</eref></c>
588  <c>no, but uses XEP output extensions</c>
589  <c><eref target="http://www.w3.org/TR/2003/WD-xsl11-20031217/#d0e12534">yes</eref></c>
590
591  <c><eref target="http://www.antennahouse.com/">Antenna House XSL formatter</eref></c>
592  <c>no</c>
593  <c><eref target="http://www.antennahouse.com/XSL20/axf-extension.htm">yes</eref> (from XSL 1.1 bookmarks)</c>
594  <c><eref target="http://www.antennahouse.com/XSL20/axf-extension.htm">yes</eref> (from XEP document info)</c>
595  <c><eref target="http://www.antennahouse.com/XSL20/axf-extension.htm">yes</eref> (just page duplicate elimination, from XSL 1.1 page index)</c>
596
597  <c><eref target="http://xml.apache.org/fop/">Apache FOP</eref></c>
598  <c><eref target="http://xml.apache.org/fop/extensions.html#named-destinations">yes</eref></c>
599  <c><eref target="http://xml.apache.org/fop/extensions.html#bookmarks">yes</eref> (from XSL 1.1 bookmarks)</c>
600  <c>no</c>
601  <c>no</c>
602
603  <c><eref target="http://xep.xattic.com/">RenderX XEP</eref></c>
604  <c>no</c>
605  <c><eref target="http://xep.xattic.com/xep/spec.html">yes</eref> (from XSL 1.1 bookmarks)</c>
606  <c><eref target="http://xep.xattic.com/xep/spec.html">yes</eref></c>
607  <c><eref target="http://xep.xattic.com/xep/spec.html">yes</eref> (from XSL 1.1 page index)</c>
608
609</texttable>
610</section>
611
612<section title="Example: producing output for Apache FOP">
613<figure>
614<preamble>Example:</preamble>
615<artwork type="example">
616saxon rfc2616.xml rfc2629toFo.xslt > tmp.fo
617saxon tmp.fo xsl11toFop.xslt > rfc2629.fo
618</artwork>
619</figure>
620</section>
621</section>
622
623<section title="Via X(HTML)" anchor="output.pdf.html">
624<t>
625  PDF output can also be produced directly from (X)HTML. One simple approach
626  is to rely on the browser's printing function, and to use a printer driver
627  that produces PDF. Depending on the brower's CSS capabilities, the output
628  will behave properly with respect to table breaks etc.
629</t>
630<t>
631  An alternative is PrinceXML (see <eref target="http://www.princexml.com/"/>),
632  which can produce PDF directly from (X)HTML input, based on the CSS printing
633  information.
634</t>
635<figure>
636  <preamble>
637    For instance, PDF output with text justification turned on can be
638    produced with:
639  </preamble>
640  <artwork type="example">
641saxon input.xml rfc2629toXHTML.xslt xml2rfc-ext-justification=print \
642  > output.xhtml
643prince output.xhtml output.pdf</artwork>
644</figure>
645</section>
646
647</section>
648
649<section title="Generic Extensions" anchor="extensions">
650<t>
651  This section documents extensions implemented in
652  <spanx style="verb">rfc2629.xslt</spanx>, using the extension
653  namespace "http://purl.org/net/xml2rfc/ext".
654</t>
655
656<section title="&lt;anchor-alias> element" anchor="ext.element.anchor-alias">
657  <iref item="Extension Elements" subitem="anchor-alias" primary="true"/>
658  <iref item="anchor-alias Extension Element" primary="true"/>
659  <x:anchor-alias value="anchor-alias"/>
660  <t>
661    Using its "value" attribute, this element allows the definition of an
662    internal link target alias for the enclosing element. This alias can
663    then be used with the &lt;<x:ref>ref</x:ref>> element for intra-document
664    references.
665  </t>
666  <t>
667    Note that the anchor alias is not subject to the naming constraints that
668    apply to anchor elements (which are <eref target="http://www.w3.org/TR/REC-xml/#NT-Name">XML
669    names</eref>).
670  </t>
671</section>
672
673<section title="&lt;bcp14> element" anchor="ext.element.bcp14">
674  <iref item="Extension Elements" subitem="bcp14" primary="true"/>
675  <iref item="bcp14 Extension Element" primary="true"/>
676  <x:anchor-alias value="bcp14"/>
677  <t>
678    This element marks the content as being one of the normative keywords
679    defined in <xref target="RFC2119"/>.
680  </t>
681  <figure>
682    <preamble>
683      The DOCTYPE definition below allows using these keywords using XML
684      entity expansion: such as in "...server &amp;MUST; accept...".
685    </preamble>
686    <artwork type="example">
687&lt;!DOCTYPE rfc [
688 &lt;!ENTITY MAY "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
689   >MAY&lt;/bcp14>">
690 &lt;!ENTITY MUST "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
691   >MUST&lt;/bcp14>">
692 &lt;!ENTITY MUST-NOT "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
693   >MUST NOT&lt;/bcp14>">
694 &lt;!ENTITY OPTIONAL "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
695   >OPTIONAL&lt;/bcp14>">
696 &lt;!ENTITY RECOMMENDED "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
697   >RECOMMENDED&lt;/bcp14>">
698 &lt;!ENTITY REQUIRED "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
699   >REQUIRED&lt;/bcp14>">
700 &lt;!ENTITY SHALL "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
701   >SHALL&lt;/bcp14>">
702 &lt;!ENTITY SHALL-NOT "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
703   >SHALL NOT&lt;/bcp14>">
704 &lt;!ENTITY SHOULD "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
705   >SHOULD&lt;/bcp14>">
706 &lt;!ENTITY SHOULD-NOT "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
707   >SHOULD NOT&lt;/bcp14>">]></artwork>
708  </figure>
709</section>
710
711<section title="&lt;bb> element" anchor="ext.element.bb">
712  <iref item="Extension Elements" subitem="bb" primary="true"/>
713  <iref item="bb Extension Element" primary="true"/>
714  <x:anchor-alias value="bb"/>
715  <t>
716    Marking up a string as &lt;bb> indicates that it represents the bottom
717    line of a box drawing, replacing the "+" and "-" characters accordingly.
718  </t>
719</section>
720
721<section title="&lt;bc> element" anchor="ext.element.bc">
722  <iref item="Extension Elements" subitem="bc" primary="true"/>
723  <iref item="bc Extension Element" primary="true"/>
724  <x:anchor-alias value="bc"/>
725  <t>
726    Marking up a string as &lt;bc> indicates that it represents a center
727    line of a box drawing, replacing the "|" character accordingly.
728  </t>
729</section>
730
731<section title="&lt;blockquote> element" anchor="ext.element.blockquote">
732  <iref item="Extension Elements" subitem="blockquote" primary="true"/>
733  <iref item="blockquote Extension Element" primary="true"/>
734  <x:anchor-alias value="blockquote"/>
735  <t>
736    This element is like the "<eref target="http://www.w3.org/TR/html401/struct/text.html#edef-BLOCKQUOTE">blockquote</eref>" element in <xref target="HTML"/>
737    (note this is a block-level element!). It should contain one or more
738    &lt;t> child elements.
739  </t>
740</section>
741
742<section title="&lt;bt> element" anchor="ext.element.bt">
743  <iref item="Extension Elements" subitem="bt" primary="true"/>
744  <iref item="bt Extension Element" primary="true"/>
745  <x:anchor-alias value="bt"/>
746  <t>
747    Marking up a string as &lt;bt> indicates that it represents the top
748    line of a box drawing, replacing the "+" and "-" characters accordingly.
749  </t>
750</section>
751
752<section title="&lt;dfn> element" anchor="ext.element.dfn">
753  <iref item="Extension Elements" subitem="dfn" primary="true"/>
754  <iref item="dfn Extension Element" primary="true"/>
755  <x:anchor-alias value="dfn"/>
756  <t>
757    This element is like the "<eref target="http://www.w3.org/TR/html401/struct/text.html#edef-DFN">dfn</eref>" element in <xref target="HTML"/>.
758  </t>
759</section>
760
761<section title="&lt;h> element" anchor="ext.element.h">
762  <iref item="Extension Elements" subitem="h" primary="true"/>
763  <iref item="h Extension Element" primary="true"/>
764  <x:anchor-alias value="h"/>
765  <t>
766    This element is like the "<eref target="http://www.w3.org/TR/2006/WD-xhtml2-20060726/mod-structural.html#edef_structural_h">h</eref>" element in <xref target="XHTML2"/>.
767  </t>
768</section>
769
770<section title="&lt;link> element" anchor="ext.element.link">
771  <iref item="Extension Elements" subitem="link" primary="true"/>
772  <iref item="link Extension Element" primary="true"/>
773  <x:anchor-alias value="link"/>
774  <t>
775    This element can be added as a top-level child element below
776    &lt;rfc> to indicate additional link information. It's currently
777    used only when generating HTML output, in which case an HTML
778    <eref target="http://www.w3.org/TR/html4/struct/links.html#edef-LINK">&lt;link></eref> element with identical attributes gets generated.
779  </t>
780  <figure>
781    <preamble>Example: generating HTML link element</preamble>
782    <artwork type="example">
783        &lt;x:link xmlns="http://purl.org/net/xml2rfc/ext"
784            rel="Bookmark"
785            title="IETF WEBDAV Working Group"
786            href="http://ftp.ics.uci.edu/pub/ietf/webdav/"/></artwork>
787  </figure>
788</section>
789
790<section title="&lt;lt> element" anchor="ext.element.lt">
791  <iref item="Extension Elements" subitem="lt" primary="true"/>
792  <iref item="lt Extension Element" primary="true"/>
793  <x:anchor-alias value="lt"/>
794  <t>
795    Used for grouping multiple &lt;t&gt; elements into a single list item.
796  </t>
797</section>
798
799<section title="&lt;q> element" anchor="ext.element.q">
800  <iref item="Extension Elements" subitem="q" primary="true"/>
801  <iref item="q Extension Element" primary="true"/>
802  <x:anchor-alias value="q"/>
803  <t>
804    This element is like the "<eref target="http://www.w3.org/TR/html401/struct/text.html#edef-Q">q</eref>" element in <xref target="HTML"/>.
805  </t>
806</section>
807
808<section title="&lt;ref> element" anchor="ext.element.ref">
809  <iref item="Extension Elements" subitem="ref" primary="true"/>
810  <iref item="ref Extension Element" primary="true"/>
811  <x:anchor-alias value="ref"/>
812  <t>
813    This element is a simplified variant of the &lt;xref> element, in that
814    no "target" attribute needs to be specified, instead the text contents
815    acts as identifier.  That in itself wouldn't be terribly useful,
816    but together with the &lt;<x:ref>anchor-alias</x:ref>>, it allows
817    referring to other parts of the document with minimal additional markup.
818  </t>
819  <t>
820    For instance, given an alias definition such as
821  </t>
822  <figure>
823    <artwork type="example">
824      &lt;section title="Test" anchor="test">
825        &lt;x:anchor-alias value="alias1"/>
826        &lt;x:anchor-alias value="alias 2"/>
827        ...
828      &lt;/section></artwork>
829  </figure>
830  <t>
831    the following simple references
832  </t>
833  <figure>
834    <artwork type="example">
835      &lt;x:ref>test&lt;/x:ref>
836      &lt;x:ref>alias1&lt;/x:ref>
837      &lt;x:ref>alias 2&lt;/x:ref></artwork>
838  </figure>
839  <t>
840    are equivalent to...:
841  </t>
842  <figure>
843    <artwork type="example">
844      &lt;xref target="test">test&lt;/xref>
845      &lt;xref target="test">alias1&lt;/xref>
846      &lt;xref target="test">alias 2&lt;/xref></artwork>
847  </figure>
848</section>
849
850<section title="&lt;source> element" anchor="ext.element.source">
851  <iref item="Extension Elements" subitem="source" primary="true"/>
852  <iref item="source Extension Element" primary="true"/>
853  <x:anchor-alias value="source"/>
854  <t>
855    Can be used to enhance a &lt;reference> with information about the
856    location for the XML source. This can be used by the &lt;xref>
857    processing code to automatically extract the target section number.
858  </t>
859  <figure>
860    <preamble>
861      For example:
862    </preamble>
863    <artwork type="example">
864      ...
865      &lt;xref target="RFC2616" x:fmt="of" x:rel="#PUT" />
866      ...
867   
868      &lt;reference target="RFC2616"/>
869        ...
870        &lt;x:source href="rfc2616.xml"/>
871        ...
872    </artwork>
873  </figure>
874</section>
875
876<section title="Extensions to Xml2rfc &lt;iref&gt; element" anchor="ext-rfc2629.iref">
877<t>
878  The extension attribute below is allowed on the standard &lt;iref&gt; element:
879  <list style="symbols">
880    <t>x:for-anchor specifies that the &lt;iref&gt; will also be automatically
881    inserted whenever the specified anchor is cross-referenced -- this may
882    save entering lots of &lt;iref&gt; instances. As a special case, a value of
883    "" (empty string) refers to the anchor attribute of the closest ancestor.</t>
884  </list>
885</t>
886</section>
887
888<section title="Extensions to Xml2rfc &lt;list&gt; element" anchor="ext-rfc2629.list">
889<t>
890  The extension attribute below is allowed on the standard &lt;list&gt; element:
891  <list style="symbols">
892    <t>x:indent specifies the amount of indentation for list items in hanging
893    lists. This can be useful when the output format, such as XSL-FO, does not
894    support automatical formatting. The value takes an XSL-FO width, such as "5em".
895    The default is <spanx>length of longest label in characters</spanx> times
896    <spanx>0.8em</spanx>.</t>
897  </list>
898</t>
899<t>
900  Also, the &lt;list&gt; element can take &lt;x:<x:ref>lt</x:ref>&gt; child elements instead of
901  &lt;t&gt;, allowing to insert multiple paragraphs into a single list item.
902</t>
903</section>
904
905<section title="Extensions to Xml2rfc &lt;section&gt; element" anchor="ext-rfc2629.section">
906<t>
907  The extension attribute below is allowed on the standard &lt;list&gt; element:
908  <list style="symbols">
909    <t>x:fixed-section-number can be used to specify a fixed section number.
910    This can be useful when formatting historic documents that used a different
911    numbering style.</t>
912  </list>
913</t>
914</section>
915
916<section title="Extensions to Xml2rfc &lt;xref&gt; element" anchor="ext-rfc2629.xref">
917<t>
918  Three extension attributes are allowed on the standard &lt;xref&gt; element:
919  <list style="numbers">
920    <t>x:sec can be specified to point to a specific section of the referenced document,</t>
921    <t>x:rel may specify a relative reference to use when linking into the referenced document (if linking by section number is not available),</t>
922    <t>x:fmt defines the text format to be used.</t>
923  </list>
924</t>
925<t>
926  The following formats are defined for the x:fmt attribute:
927  <list style="hanging">
928    <t hangText=", (Comma)">
929      [<spanx>reference</spanx>], Section <spanx>sec</spanx>
930    </t>
931    <t hangText="()">
932      [<spanx>reference</spanx>] (Section <spanx>sec</spanx>)
933    </t>
934    <t hangText="anchor">
935      Like the default format, but without brackets.
936    </t>
937    <t hangText="of">
938      Section <spanx>sec</spanx> of [<spanx>reference</spanx>]
939    </t>
940    <t hangText="number">
941      <spanx>sec</spanx>
942    </t>
943    <t hangText="none">
944      No output (can be used to have xrefs to references without
945      having them rendered as such)
946    </t>
947    <t hangText="sec">
948      Section <spanx>sec</spanx>
949    </t>
950  </list>
951</t>
952<t>
953  These extensions are currently only support of &lt;xref&gt; elements without
954  child nodes.
955</t>
956<t>
957  If the processor knows how to reference the target section, it will generate
958  a link directly to the target section, such as in <xref target="RFC2119" x:fmt="," x:sec="5"/>.
959</t>
960</section>
961
962</section>
963
964<section title="Utilities" anchor="utilities">
965
966<section title="Checking References" anchor="checking-references">
967<t>
968  <spanx style="verb">check-references.xslt</spanx> can be used to check
969  all references to RFC- and ID-series IETF publications and to W3C publications (note
970  this script requires local copies of
971  <eref target="ftp://ftp.isi.edu/in-notes/rfc-index.xml"/> and
972  <eref target="http://www.w3.org/2002/01/tr-automation/tr.rdf"/> and
973  will use the XML status information provided at <eref target="http://tools.ietf.org/"/>).
974</t>
975<t>
976  If the document is supposed to be published on the IETF standards track,
977  the desired level can be specified using the parameter <spanx style='verb'>intended-level</spanx>
978  as 'PROPOSED', 'DRAFT' or 'STANDARD'.
979</t>
980<figure>
981<preamble>
982For instance, as of 2006-08-06, the script produces for <eref target="http://greenbytes.de/tech/webdav/rfc2518.xml"/>:
983</preamble>
984<artwork type="example">
985> saxon rfc2518.xml check-references.xslt
986
987Normative References:
988ISO-11578: not checked
989ISO-639: not checked
990ISO-8601: not checked
991REC-xml-19980210: [FirstEdition] obsoleted by REC-xml-20001006
992REC-xml-names-19990114: [REC] obsoleted by PER-xml-names-20060614
993RFC1766: [PROPOSED STANDARD] obsoleted by RFC3066 RFC3282
994RFC2068: [PROPOSED STANDARD] obsoleted by RFC2616
995RFC2069: [PROPOSED STANDARD] obsoleted by RFC2617
996RFC2119: [BEST CURRENT PRACTICE] (-> BCP0014) ok
997RFC2141: [PROPOSED STANDARD] ok
998RFC2277: [BEST CURRENT PRACTICE] (-> BCP0018) ok
999RFC2396: [DRAFT STANDARD] obsoleted by RFC3986
1000RFC2279: [DRAFT STANDARD] obsoleted by RFC3629
1001
1002Informational References:
1003REC-PICS-labels-961031: [REC] ok
1004RFC1807: [INFORMATIONAL] ok
1005RFC2026: [BEST CURRENT PRACTICE] (-> BCP0009) ok
1006RFC2291: [INFORMATIONAL] ok
1007RFC2376: [INFORMATIONAL] obsoleted by RFC3023
1008RFC2413: [INFORMATIONAL] ok
1009USMARC: not checked
1010WF: not checked
1011</artwork></figure>
1012<t>
1013  Recognized formats in the &lt;seriesInfo> element are:
1014  <list style="symbols">
1015    <t>for RFCs, the name attribute must be "RFC", and the value attribute must
1016    be the number of the RFC,</t>
1017    <t>for Internet Drafs, the name attribute must be "ID" or "Internet-Draft", and the value attribute must
1018    be the file name of the draft (including the two-digit running number, but excluding a file extension),</t>
1019    <t>for W3C documents, the name attribute must be "W3C", must start with "W3C&#160;", or
1020    must start with "World Wide Web Consortium&#160;", and the value attribute
1021    must be the "shorthand" name of the specification, such as "REC-xml-19980210".</t>
1022  </list>
1023</t>
1024
1025</section>
1026
1027<section title="Generating Graphs from References">
1028<t>
1029  <spanx style="verb">gen-reference-graph.xslt</spanx> generates a graph
1030  of RFC dependencies, using the same base data as in <spanx style="verb">check-references.xslt</spanx>
1031  (see <xref target="checking-references"/>). Its output is a "dot" file,
1032  to be processed by GraphViz (see <eref target="http://www.graphviz.org/"/>).
1033</t>
1034<figure>
1035<preamble>
1036The picture below shows the RFC dependencies in RFC2629.
1037</preamble>
1038<artwork src="rfc2629xslt-fig2.png" type="image/png">
1039(PNG output obtained from GraphViz)
1040</artwork>
1041</figure>
1042</section>
1043
1044<section title="Producing reference entries for books">
1045<t>
1046  <spanx style="verb">amazon-asin.xslt</spanx> uses the Amazon web services
1047  to generate a &lt;reference> element for a given ASIN (ISBN).
1048</t>
1049<figure>
1050<preamble>For instance:</preamble>
1051<artwork type="example">
1052&lt;?xml version="1.0" encoding="utf-8"?>
1053&lt;references>
1054 &lt;reference target="urn:isbn:0134516591">
1055   &lt;front>
1056     &lt;title>Simple Book, The: An Introduction to Internet Management,
1057               Revised Second Edition&lt;/title>
1058     &lt;author surname="Rose"
1059                fullname="Marshall T. Rose" initials="M. T. ">
1060       &lt;organization/>
1061     &lt;/author>
1062     &lt;author surname="Marshall"
1063                fullname="Rose T. Marshall" initials="R. T.">
1064       &lt;organization/>
1065     &lt;/author>
1066     &lt;date year="1996" month="March"/>
1067   &lt;/front>
1068   &lt;seriesInfo name="Prentice Hall" value=""/>
1069 &lt;/reference>
1070&lt;/references>
1071</artwork></figure>
1072<t>
1073  Note that the resulting XML usually requires checking, in this case Amazon's
1074  database is playing tricks with Marshall's name...
1075</t>
1076</section>
1077
1078<section title="Down-converting to RFC2629bis DTD" anchor="clean-for-dtd">
1079<t>
1080  <spanx style="verb">clean-for-DTD.xslt</spanx> can be used to down-convert
1081  some extensions to a format that is supported by the base xml2rfc
1082  distribution.  Note that these extensions are experimental (feedback
1083  appreciated).
1084</t>
1085<t>
1086  The following mappings are done:
1087  <list style="symbols">
1088    <t>
1089      &lt;iref> elements inside &lt;artwork> elements are moved in front
1090      of the enclosing &lt;figure> element.
1091    </t>
1092    <t>
1093      &lt;xref> elements inside &lt;artwork> are expanded just like in
1094      regular text (that is, the markup is stripped, but the element
1095      is replaced by the applicable replacement text).
1096    </t>
1097    <t>
1098      &lt;x:<x:ref>anchor-alias</x:ref>> elements get stripped.
1099    </t>
1100    <t>
1101      &lt;x:<x:ref>bcp14</x:ref>> elements get stripped.
1102    </t>
1103    <t>
1104      &lt;x:<x:ref>bb</x:ref>>, &lt;x:<x:ref>bc</x:ref>> and &lt;x:<x:ref>bt</x:ref>> elements get stripped.
1105    </t>
1106    <t>
1107      &lt;x:<x:ref>blockquote</x:ref>> elements get converted to
1108      indented text (through a &lt;list> element).
1109    </t>
1110    <t>
1111      &lt;x:<x:ref>dfn</x:ref>> elements get stripped.
1112    </t>
1113    <t>
1114      &lt;x:<x:ref>h</x:ref>> elements get stripped.
1115    </t>
1116    <t>
1117      &lt;x:<x:ref>link</x:ref>> elements get stripped.
1118    </t>
1119    <t>
1120      &lt;x:<x:ref>q</x:ref>> elements get stripped, with apostrophes
1121      added around the text.
1122    </t>
1123    <t>
1124      &lt;x:<x:ref>ref</x:ref>> elements get replaced by &lt;xref>
1125      elements, targetting either the anchor or another anchor with
1126      matching &lt;x:<x:ref>anchor-alias</x:ref>> child element.
1127    </t>
1128  </list>
1129</t>
1130</section>
1131
1132<section title="Extracting artwork" anchor="extract-artwork">
1133<t>
1134  With <spanx style="verb">extract-artwork.xslt</spanx>, artwork elements
1135  named through the "name" attribute can be extracted. This can be used
1136  to automatically check their syntax (for instance, when ABNFs appear
1137  within a figure element).
1138</t>
1139<figure><preamble>For instance:</preamble>
1140<artwork type="example">saxon rfc3986.xml extract-artwork.xslt name=uri.abnf
1141</artwork>
1142</figure>
1143<t>
1144  In addition, artwork of a specific type can be extracted, such as with:
1145</t>
1146<figure>
1147<artwork type="example">saxon rfc3986.xml extract-artwork.xslt type=abnf
1148</artwork>
1149</figure>
1150</section>
1151
1152<section title="GRRDL" anchor="grddl">
1153<t>
1154  <spanx style="verb">rfc2629grddl.xslt</spanx> extracts RDF
1155  information. This is experimental work-in-progress. See
1156  <eref target="http://www.w3.org/TR/grddl/"/> for more information.
1157</t>
1158</section>
1159</section>
1160
1161 
1162
1163</middle>
1164
1165<back>
1166<references title="Informative References">
1167
1168<reference anchor="RFC2119">
1169  <front>
1170    <title abbrev="RFC Key Words">Key words for use in RFCs to Indicate Requirement Levels</title>
1171    <author initials="S." surname="Bradner" fullname="Scott Bradner">
1172    <organization>Harvard University</organization>
1173    <address>
1174      <email>sob@harvard.edu</email>
1175    </address></author>
1176    <date month="March" year="1997"/>
1177  </front>
1178  <seriesInfo name="BCP" value="14"/>
1179  <seriesInfo name="RFC" value="2119"/>
1180</reference>
1181
1182<reference anchor="RFC2616">
1183  <front>
1184  <title abbrev="HTTP/1.1">Hypertext Transfer Protocol -- HTTP/1.1</title>
1185  <author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
1186  <organization>University of California, Irvine, Information and Computer Science</organization>
1187  <address>
1188  <postal>
1189  <street/>
1190  <city>Irvine</city>
1191  <region>CA</region>
1192  <code>92697-3425</code>
1193  <country>US</country></postal>
1194  <phone>+1 949 824 1715</phone>
1195  <email>fielding@ics.uci.edu</email></address></author>
1196  <author initials="J." surname="Gettys" fullname="James Gettys">
1197  <organization>World Wide Web Consortium, MIT Laboratory for Computer Science</organization>
1198  <address>
1199  <postal>
1200  <street>545 Technology Square</street>
1201  <city>Cambridge</city>
1202  <region>MA</region>
1203  <code>02139</code>
1204  <country>US</country></postal>
1205  <phone/>
1206  <facsimile>+1 617 258 8682</facsimile>
1207  <email>jg@w3.org</email></address></author>
1208  <author initials="J.C." surname="Mogul" fullname="Jeffrey C. Mogul">
1209  <organization>Compaq Computer Corporation, Western Research Laboratory</organization>
1210  <address>
1211  <postal>
1212  <street>250 University Avenue</street>
1213  <city>Palo Alto</city>
1214  <region>CA</region>
1215  <code>94301</code>
1216  <country>US</country></postal>
1217  <phone/>
1218  <email>mogul@wrl.dec.com</email></address></author>
1219  <author initials="H.F." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
1220  <organization>World Wide Web Consortium, MIT Laboratory for Computer Science</organization>
1221  <address>
1222  <postal>
1223  <street>545 Technology Square</street>
1224  <city>Cambridge</city>
1225  <region>MA</region>
1226  <code>02139</code>
1227  <country>US</country></postal>
1228  <phone/>
1229  <facsimile>+1 617 258 8682</facsimile>
1230  <email>frystyk@w3.org</email></address></author>
1231  <author initials="L." surname="Masinter" fullname="Larry Masinter">
1232  <organization>Xerox Corporation</organization>
1233  <address>
1234  <postal>
1235  <street>3333 Coyote Hill Road</street>
1236  <city>Palo Alto</city>
1237  <region>CA</region>
1238  <code>94034</code>
1239  <country>US</country></postal>
1240  <phone/>
1241  <email>masinter@parc.xerox.com</email></address></author>
1242  <author initials="P.J." surname="Leach" fullname="Paul J. Leach">
1243  <organization>Microsoft Corporation</organization>
1244  <address>
1245  <postal>
1246  <street>1 Microsoft Way</street>
1247  <city>Redmond</city>
1248  <region>WA</region>
1249  <code>98052</code>
1250  <country>US</country></postal>
1251  <phone/>
1252  <email>paulle@microsoft.com</email></address></author>
1253  <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1254  <organization>World Wide Web Consortium, MIT Laboratory for Computer Science</organization>
1255  <address>
1256  <postal>
1257  <street>545 Technology Square</street>
1258  <city>Cambridge</city>
1259  <region>MA</region>
1260  <code>02139</code>
1261  <country>US</country></postal>
1262  <phone>+1 617 258 8682</phone>
1263  <facsimile/>
1264  <email>timbl@w3.org</email></address></author>
1265  <date month="June" year="1999"/>
1266  </front>
1267  <seriesInfo name="RFC" value="2616"/>
1268</reference>
1269
1270<reference anchor='RFC2629'>
1271  <front>
1272    <title>Writing I-Ds and RFCs using XML</title>
1273    <author initials='M.T.' surname='Rose' fullname='Marshall T. Rose'>
1274      <organization>Invisible Worlds, Inc.</organization>
1275      <address>
1276        <postal>
1277          <street>660 York Street</street>
1278          <city>San Francisco</city>
1279          <region>CA</region>
1280          <code>94110</code>
1281          <country>US</country>
1282        </postal>
1283        <phone>+1 415 695 3975</phone>
1284        <email>mrose@not.invisible.net</email>
1285        <uri>http://invisible.net/</uri>
1286      </address>
1287    </author>
1288    <date month='June' year='1999' />
1289  </front>
1290  <seriesInfo name='RFC' value='2629' />
1291</reference>
1292
1293<reference anchor='RFC2648'>
1294  <front>
1295    <title>A URN Namespace for IETF Documents</title>
1296    <author initials='R.' surname='Moats' fullname='Ryan Moats'>
1297      <organization>AT&amp;T</organization>
1298      <address>
1299      <postal>
1300        <street>15621 Drexel Circle</street>
1301        <city>Omaha</city>
1302        <region>NE</region>
1303        <code>68135-2358</code>
1304        <country>US</country>
1305      </postal>
1306      <email>jayhawk@att.com</email></address>
1307    </author>
1308    <date month='August' year='1999' />
1309  </front>
1310  <seriesInfo name='RFC' value='2648' />
1311</reference>
1312
1313<reference anchor='RFC2731'>
1314  <front>
1315    <title>Encoding Dublin Core Metadata in HTML</title>
1316    <author initials='J.A.' surname='Kunze' fullname='John A. Kunze'>
1317      <organization>University of California, San Francisco,  Center for Knowledge Management</organization>
1318      <address>
1319        <postal>
1320          <street>530 Parnassus Ave</street>
1321          <street>Box 0840</street>
1322          <city>San Francisco</city>
1323          <region>CA</region>
1324          <code>94143-0840</code>
1325          <country>US</country>
1326        </postal>
1327        <facsimile>+1 415 476 4653</facsimile>
1328        <email>jak@ckm.ucsf.edu</email>
1329      </address>
1330    </author>
1331    <date month='December' year='1999' />
1332  </front>
1333  <seriesInfo name='RFC' value='2731' />
1334</reference>
1335
1336<reference anchor="RFC4234">
1337  <front>
1338    <title abbrev="ABNF for Syntax Specifications">Augmented BNF for Syntax Specifications: ABNF</title>
1339    <author initials="D." surname="Crocker" fullname="Dave Crocker" role="editor">
1340      <organization>Brandenburg InternetWorking</organization>
1341      <address>
1342      <postal>
1343      <street>675 Spruce Dr.</street>
1344      <city>Sunnyvale</city>
1345      <region>CA</region>
1346      <code>94086</code>
1347      <country>US</country></postal>
1348      <phone>+1.408.246.8253</phone>
1349      <email>dcrocker@bbiw.net</email></address> 
1350    </author>
1351    <author initials="P." surname="Overell" fullname="Paul Overell">
1352      <organization>THUS plc.</organization>
1353      <address>
1354      <postal>
1355      <street>1/2 Berkeley Square</street>
1356      <street>99 Berkely Street</street>
1357      <city>Glasgow</city>
1358      <code>G3 7HR</code>
1359      <country>UK</country></postal>
1360      <email>paul.overell@thus.net</email></address>
1361    </author>
1362    <date month="October" year="2005"/>
1363  </front>
1364  <seriesInfo name="RFC" value="4234"/>
1365</reference>
1366
1367<reference anchor="HTML" target="http://www.w3.org/TR/html401/">
1368  <front>
1369    <title>HTML 4.01 Specification</title>
1370    <author initials="D." surname="Raggett" fullname="David Raggett">
1371      <organization>W3C</organization>
1372      <address>
1373        <email>dsr@w3.org</email>
1374      </address>
1375    </author>
1376    <author initials="A." surname="Hors" fullname="Arnaud Le Hors">
1377      <organization>W3C</organization>
1378    </author>
1379    <author initials="I." surname="Jacobs" fullname="Ian Jacobs">
1380      <organization>W3C</organization>
1381    </author>
1382    <date month="December" day="24" year="1999" />
1383  </front>
1384  <seriesInfo name="W3C" value="REC-html401-19991224" />
1385</reference>
1386
1387<reference anchor="XHTML2" target="http://www.w3.org/TR/xhtml2">
1388  <front>
1389    <title>XHTML&#8482; 2.0</title>
1390    <author initials="J." surname="Axelsson" fullname="Jonny Axelsson">
1391      <organization>Opera Software</organization>
1392    </author>
1393    <author initials="M." surname="Birbeck" fullname="Mark Birbeck">
1394      <organization>x-port.net</organization>
1395    </author>
1396    <author initials="M." surname="Dubinko" fullname="Micah Dubinko">
1397      <organization></organization>
1398    </author>
1399    <author initials="B." surname="Epperson" fullname="Beth Epperson">
1400      <organization>Websense</organization>
1401    </author>
1402    <author initials="M." surname="Ishikawa" fullname="Masayasu Ishikawa">
1403      <organization>W3C</organization>
1404    </author>
1405    <author initials="S." surname="McCarron" fullname="Shane McCarron">
1406      <organization>Applied Testing and Technology</organization>
1407    </author>
1408    <author initials="A." surname="Navarro" fullname="Ann Navarro">
1409      <organization>WebGeek, Inc.</organization>
1410    </author>
1411    <author initials="S." surname="Pemberton" fullname="Steven Pemberton">
1412      <organization>CWI</organization>
1413    </author>
1414    <date month="July" day="26" year="2006" />
1415  </front>
1416  <seriesInfo name="W3C" value="WD-xhtml2-20060726" />
1417</reference>
1418
1419<reference anchor="XSL-FO" target="http://www.w3.org/TR/2006/REC-xsl11-20061205/">
1420  <front>
1421    <title>Extensible Stylesheet Language (XSL) Version 1.1</title>
1422    <author initials="A." surname="Berglund" fullname="Anders Berglund">
1423      <organization>IBM</organization>
1424      <address>
1425        <email>alrb@us.ibm.com</email>
1426      </address>
1427    </author>
1428    <date month="Dec" day="5" year="2006" />
1429  </front>
1430  <seriesInfo name="W3C" value="REC-xsl11-20061205" />
1431</reference>
1432
1433<reference anchor="RNC" target="http://www.oasis-open.org/committees/relax-ng/compact-20021121.html">
1434  <front>
1435    <title>RELAX NG Compact Syntax</title>
1436    <author initials="J." surname="Clark" fullname="James Clark">
1437      <organization/>
1438      <address>
1439        <email>jjc@jclark.com</email>
1440      </address>
1441    </author>
1442    <date month="Nov" day="21" year="2002" />
1443  </front>
1444  <seriesInfo name="OASIS" value=""/>
1445</reference>
1446
1447</references>
1448
1449  <section title="RELAX NG Compact Schema" anchor="grammar">
1450  <iref item="Grammar" primary="true"/>
1451  <iref item="Schema" primary="true"/>
1452  <iref item="RELAX NG Compact Schema" primary="true"/>
1453  <t>
1454    The RelaxNG schema (<xref target="RNC"/>) below can be used to validate
1455    input documents (for instance, with <eref target="http://www.thaiopensource.com/relaxng/jing.html">Jing</eref>).
1456  </t>
1457  <t>
1458    <spanx>Note that this is work in progress, and doesn't yet cover all
1459    extensions completely.</spanx>
1460  </t>
1461  <figure>
1462    <artwork type="application/relax-ng-compact-syntax" name="rfc2629-ext.rnc" x:extraction-note="# Automatically extracted from rfc2629xslt.xml. DO NOT EDIT!&#10;">
1463<spanx># WORK IN PROGRESS! PLEASE REPORT PROBLEMS TO THE AUTHOR.</spanx>
1464
1465<spanx># Define our extension namespace</spanx>
1466namespace x = "http://purl.org/net/xml2rfc/ext"
1467
1468<spanx># Define GRDDL namespace</spanx>
1469namespace grddl = "http://www.w3.org/2003/g/data-view#"
1470
1471<spanx># Include rfc2629bis RNC grammar</spanx>
1472include "rfc2629.rnc" {
1473 
1474  <spanx># Redefine &lt;artwork> to allow markup</spanx>
1475  artwork =
1476    element artwork {
1477      attlist.artwork,
1478      (TEXT
1479        <spanx style="strong">| eref</spanx>
1480        <spanx style="strong">| iref</spanx>
1481        <spanx style="strong">| spanx</spanx>
1482        <spanx style="strong">| xref</spanx>
1483        <spanx style="strong">| <x:ref>x_bb</x:ref></spanx>
1484        <spanx style="strong">| <x:ref>x_bc</x:ref></spanx>
1485        <spanx style="strong">| <x:ref>x_bt</x:ref></spanx>
1486        <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>)*
1487    }
1488
1489  <spanx># Redefine &lt;c> to allow our extension elements</spanx>
1490  c =
1491    element c {
1492      attlist.c,
1493      (TEXT
1494        | xref
1495        | eref
1496        | iref
1497        | cref
1498        | spanx
1499        <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>)*
1500    }
1501
1502  <spanx># Redefine &lt;list> element to allow &lt;x:<x:ref>lt</x:ref>> child elements</spanx>
1503  \list =
1504    element list {
1505      attlist.list,
1506      (t+ <spanx style="strong">| <x:ref>x_lt</x:ref>+</spanx>)
1507    }   
1508   
1509  <spanx># Redefine &lt;preamble> to allow our extension elements</spanx>
1510  preamble =
1511    element preamble {
1512      attlist.preamble,
1513      (TEXT
1514        | xref
1515        | eref
1516        | iref
1517        | cref
1518        | spanx
1519        <spanx style="strong">| <x:ref>x_anchor-alias</x:ref></spanx>)*
1520    }
1521
1522  <spanx># Redefine &lt;postamble> to allow our extension elements</spanx>
1523  postamble =
1524    element postamble {
1525      attlist.postamble,
1526      (TEXT
1527        | xref
1528        | eref
1529        | iref
1530        | cref
1531        | spanx
1532        <spanx style="strong">| <x:ref>x_bcp14</x:ref></spanx>)*
1533    }
1534
1535  <spanx># Redefine &lt;reference> to allow our extension elements</spanx>
1536  reference =
1537    element reference {
1538      attlist.reference,
1539      front,
1540      seriesInfo*,
1541      format*,
1542      annotation*,
1543      <spanx style="strong"><x:ref>x_source</x:ref>?</spanx>
1544    }
1545
1546  <spanx># Redefine &lt;rfc> to allow our extension elements</spanx>
1547  rfc =
1548    element rfc {
1549      attlist.rfc,
1550      <spanx style="strong"><x:ref>x_link</x:ref>*,</spanx>
1551      <spanx style="strong"><x:ref>x_assign-section-number</x:ref>*,</spanx>
1552      front,
1553      middle,
1554      back?
1555    }
1556
1557  <spanx># Redefine &lt;section> to allow our extension elements</spanx>
1558  section =
1559    element section {
1560      attlist.section,
1561      (t
1562       | figure
1563       | texttable
1564       | iref
1565       | section
1566       <spanx style="strong">| <x:ref>x_anchor-alias</x:ref></spanx>
1567       <spanx style="strong">| <x:ref>x_blockquote</x:ref></spanx>)*
1568    }
1569
1570  <spanx># Redefine &lt;spanx> to allow some markup</spanx>
1571  spanx =
1572    element spanx {
1573      attlist.spanx,
1574      (TEXT
1575        <spanx style="strong">| iref</spanx>
1576        <spanx style="strong">| xref</spanx>
1577        <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>)*
1578    }
1579
1580  <spanx># Redefine &lt;t> to allow our extension elements</spanx>
1581  t =
1582    element t {
1583      attlist.t,
1584      (TEXT
1585       | \list
1586       | figure
1587       | xref
1588       | eref
1589       | iref
1590       | cref
1591       | spanx
1592       | vspace
1593       <spanx style="strong">| <x:ref>x_anchor-alias</x:ref></spanx>
1594       <spanx style="strong">| <x:ref>x_bcp14</x:ref></spanx>
1595       <spanx style="strong">| <x:ref>x_dfn</x:ref></spanx>
1596       <spanx style="strong">| <x:ref>x_h</x:ref></spanx>
1597       <spanx style="strong">| <x:ref>x_q</x:ref></spanx>
1598       <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>)*
1599    }
1600}
1601
1602<spanx># Extend attribute set for &lt;iref> (see <xref target="ext-rfc2629.iref"/>)</spanx>
1603attlist.iref &amp;=
1604  attribute x:for-anchor { ATEXT }?
1605
1606<spanx># Extend attribute set for &lt;list> (see <xref target="ext-rfc2629.list"/>)</spanx>
1607attlist.list &amp;=
1608  attribute x:indent { ATEXT }?
1609
1610<spanx># Extend attribute set for &lt;preamble></spanx>
1611attlist.preamble &amp;=
1612  attribute anchor { xsd:ID }?
1613
1614<spanx># Extend attribute set for &lt;rfc></spanx>
1615attlist.rfc &amp;=
1616  attribute grddl:transformation { ATEXT }?
1617
1618<spanx># Extend attribute set for &lt;section> (see <xref target="ext-rfc2629.section"/>)</spanx>
1619attlist.section &amp;=
1620  attribute x:fixed-section-number { ATEXT }?
1621
1622<spanx># Allow anchor attribute on &lt;spanx></spanx>
1623attlist.spanx &amp;=
1624  attribute anchor { xsd:ID }?
1625
1626<spanx># Extend attribute set for &lt;xref> (see <xref target="ext-rfc2629.xref"/>)</spanx>
1627attlist.xref &amp;=
1628  attribute x:fmt  { "()" | "," | "anchor" | "of" | "number" | "sec" |
1629                     "none" }?,
1630  attribute x:rel  { ATEXT }?,
1631  attribute x:sec  { ATEXT }?
1632
1633<spanx anchor="x_anchor-alias"><iref item="anchor-alias Extension Element"/><iref item="Extension Elements" subitem="anchor-alias"
1634/># Aliasing of anchors (see <xref target="ext.element.anchor-alias"/>)</spanx>
1635<x:ref>x_anchor-alias</x:ref> =
1636  element x:anchor-alias {
1637    attribute value { TEXT },
1638    empty
1639  }
1640
1641<spanx anchor="x_assign-section-number"><iref item="assign-section-number Extension Element"/><iref item="Extension Elements" subitem="assign-section-number"
1642/># Setting section numbers for internally generated sections
1643# (experimental)</spanx>
1644<x:ref>x_assign-section-number</x:ref> =
1645  element x:assign-section-number {
1646    attribute builtin-target { "authors" },
1647    attribute number { TEXT },
1648    empty
1649  }
1650
1651<spanx anchor="x_bb"><iref item="bb Extension Element"/><iref item="Extension Elements" subitem="bb"
1652/># Bottom line of box drawing (see <xref target="ext.element.bb"/>)</spanx>
1653<x:ref>x_bb</x:ref> =
1654  element x:bb {
1655    (TEXT
1656      | iref
1657      | xref
1658      | <x:ref>x_bb</x:ref>
1659      | <x:ref>x_bc</x:ref>
1660      | <x:ref>x_bt</x:ref>
1661      | <x:ref>x_ref</x:ref>)*
1662  }
1663
1664<spanx anchor="x_bc"><iref item="bc Extension Element"/><iref item="Extension Elements" subitem="bc"
1665/># Center line of box drawing (see <xref target="ext.element.bc"/>)</spanx>
1666<x:ref>x_bc</x:ref> =
1667  element x:bc {
1668    (TEXT
1669      | iref
1670      | xref
1671      | <x:ref>x_bb</x:ref>
1672      | <x:ref>x_bc</x:ref>
1673      | <x:ref>x_bt</x:ref>
1674      | <x:ref>x_ref</x:ref>)*
1675  }
1676
1677<spanx anchor="x_bcp14"><iref item="bcp14 Extension Element"/><iref item="Extension Elements" subitem="bcp14"
1678/># BCP14/RFC2119 keywords (see <xref target="ext.element.bcp14"/>)</spanx>
1679<x:ref>x_bcp14</x:ref> =
1680  element x:bcp14 {
1681    "MAY"
1682    | "MUST"
1683    | "MUST NOT"
1684    | "NOT RECOMMENDED"
1685    | "OPTIONAL"
1686    | "RECOMMENDED"
1687    | "REQUIRED"
1688    | "SHALL"
1689    | "SHALL NOT"
1690    | "SHOULD"
1691    | "SHOULD NOT"
1692  }
1693 
1694<spanx anchor="x_blockquote"><iref item="blockquote Extension Element"/><iref item="Extension Elements" subitem="blockquote"
1695/># Blockquote (see <xref target="ext.element.blockquote"/>)</spanx>
1696<x:ref>x_blockquote</x:ref> =
1697  element x:blockquote {
1698    attribute cite { URI }?,
1699    t+
1700  }
1701
1702<spanx anchor="x_bt"><iref item="bt Extension Element"/><iref item="Extension Elements" subitem="bt"
1703/># Top line of box drawing (see <xref target="ext.element.bt"/>)</spanx>
1704<x:ref>x_bt</x:ref> =
1705  element x:bt {
1706    (TEXT
1707      | iref
1708      | xref
1709      | <x:ref>x_bb</x:ref>
1710      | <x:ref>x_bc</x:ref>
1711      | <x:ref>x_bt</x:ref>
1712      | <x:ref>x_ref</x:ref>)*
1713  }
1714
1715<spanx anchor="x_dfn"><iref item="dfn Extension Element"/><iref item="Extension Elements" subitem="dfn"
1716/># Definition (see <xref target="ext.element.dfn"/>)</spanx>
1717<x:ref>x_dfn</x:ref> =
1718  element x:dfn {
1719    TEXT
1720  }
1721 
1722<spanx anchor="x_h"><iref item="h Extension Element"/><iref item="Extension Elements" subitem="h"
1723/># Heading (see <xref target="ext.element.h"/>)</spanx>
1724<x:ref>x_h</x:ref> =
1725  element x:h {
1726    TEXT
1727  }
1728
1729<spanx anchor="x_link"><iref item="link Extension Element"/><iref item="Extension Elements" subitem="link"
1730/># Link (see <xref target="ext.element.link"/>)</spanx>
1731<x:ref>x_link</x:ref> =
1732  element x:link {
1733    attribute href { URI },
1734    attribute title { TEXT }?,
1735    attribute rel { TEXT },
1736    empty
1737  }
1738 
1739<spanx anchor="x_lt"><iref item="lt Extension Element"/><iref item="Extension Elements" subitem="lt"
1740/># Extended list item (see <xref target="ext.element.lt"/>)</spanx>
1741<x:ref>x_lt</x:ref> =
1742  element x:lt {
1743    attribute anchor { xsd:ID }?,
1744    attribute hangText { TEXT }?,
1745    t+
1746  }
1747
1748<spanx anchor="x_q"><iref item="q Extension Element"/><iref item="Extension Elements" subitem="q"
1749/># Inline quote (see <xref target="ext.element.q"/>)</spanx>
1750<x:ref>x_q</x:ref> =
1751  element x:q {
1752    TEXT
1753  }
1754
1755<spanx anchor="x_ref"><iref item="ref Extension Element"/><iref item="Extension Elements" subitem="ref"
1756/># Anchor reference (see <xref target="ext.element.ref"/>)</spanx> 
1757<x:ref>x_ref</x:ref> =
1758  element x:ref {
1759    TEXT
1760  }
1761
1762<spanx anchor="x_source"><iref item="source Extension Element"/><iref item="Extension Elements" subitem="source"
1763/># source information (see <xref target="ext.element.source"/>)</spanx> 
1764<x:ref>x_source</x:ref> =
1765  element x:source {
1766    attribute href { URI },
1767    empty
1768  }
1769</artwork></figure>
1770
1771  </section>
1772 
1773  <section title="Implementation Notes">
1774 
1775  <section title="Recognized type attributes for &lt;artwork> element">
1776  <t>
1777    Specific values in the &lt;artwork> element's "type" attribute are
1778    recognized and cause a different visual style to be used:
1779  </t>
1780  <texttable>
1781    <ttcol>Media Type</ttcol>
1782    <ttcol>Comment</ttcol>
1783   
1784    <c>abnf</c><c>ABNF as per <xref target="RFC4234"/></c>
1785    <c>abnf2616</c><c>ABNF as per <xref target="RFC2616" x:fmt="," x:sec="2.1" /></c>
1786    <c>application/relax-ng-compact-syntax</c><c>Relax NG Compact Syntax as per <xref target="RNC"/></c>
1787    <c>application/xml-dtd</c><c>XML DTD</c>
1788    <c>message/http; msgtype="request"</c><c>HTTP message, as per <xref target="RFC2616" x:fmt="," x:sec="19.1" /></c>
1789    <c>message/http; msgtype="response"</c><c>HTTP message, as per <xref target="RFC2616" x:fmt="," x:sec="19.1" /></c>
1790  </texttable>
1791  </section>
1792 
1793  </section>
1794 
1795  <section title="License" anchor="license">
1796  <t>
1797Copyright (c) 2006-2007, Julian Reschke (julian.reschke@greenbytes.de)
1798  </t>
1799  <t>
1800All rights reserved.
1801  </t>
1802  <t>
1803Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1804  <list style="symbols">
1805    <t>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</t>
1806    <t>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</t>
1807    <t>Neither the name of Julian Reschke nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</t>
1808  </list>
1809  </t>
1810  <t>
1811THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1812  </t>
1813  </section>
1814
1815  <section title="Change Logs">
1816   
1817 
1818    <section title="Package">
1819      <t><list style="hanging">
1820<t hangText="2006-01-01">
1821    Switch to BSD License.
1822</t>
1823<t hangText="2007-01-12">
1824    Update to xml2rfc v1.33pre2.
1825</t>
1826<t hangText="2007-03-31">
1827    Update to xml2rfc v1.33pre3.
1828</t>
1829<t hangText="2007-05-01">
1830    Add XSLT test cases.
1831</t>
1832      </list></t>
1833    </section>
1834   
1835    <section title="amazon-asin.xslt">
1836    <t><list style="hanging">
1837<t hangText="2003-11-16">
1838     Initial release.
1839</t>
1840<t hangText="2005-04-02">
1841     Fix two DTD issues.
1842</t>
1843    </list></t>
1844    </section>
1845
1846    <section title="check-references.xslt">
1847    <t><list style="hanging">
1848<t hangText="2003-11-16">
1849     Initial release.
1850</t>
1851<t hangText="2003-11-16">
1852     Initial release.
1853</t>
1854<t hangText="2004-05-11">
1855     Add document status; print references type.
1856</t>
1857<t hangText="2005-01-01">
1858     Add experimental check for ID status.
1859</t>
1860<t hangText="2005-04-01">
1861     Add fixes from Bill Fenner.
1862</t>
1863<t hangText="2005-12-03">
1864    Add checks against local copy of <eref target="http://www.w3.org/2002/01/tr-automation/tr.rdf"/>. 
1865</t>
1866<t hangText="2006-07-22">
1867    Add checks for standards levels.
1868</t>
1869<t hangText="2006-08-06">
1870    "check-ietf-references.xslt" replaced by "check-references.xslt".
1871</t>
1872<t hangText="2007-01-04">
1873    Use information online at <eref target="http://tools.ietf.org/"/> to
1874    retrieve Internet-Draft status information.
1875</t>
1876<t hangText="2007-06-16">
1877    Fix bug looking up ref type when inside change markup.
1878</t>
1879    </list></t>
1880    </section>
1881   
1882    <section title="gen-reference-graph.xslt">
1883    <t><list style="hanging">
1884<t hangText="2006-09-03">
1885  New.
1886</t>
1887<t hangText="2007-06-07">
1888  Use <eref target="http://dpcarlisle.blogspot.com/2007/05/exslt-node-set-function.html">Carlisle method</eref> to define exslt:node-set in
1889  msxsml (which means that the stylesheet can now be used with MSXML as well).
1890</t>
1891<t hangText="2007-10-15">
1892  Use W3C data from tr.rdf as well (experimental).
1893</t>
1894    </list></t>
1895    </section>
1896
1897    <section title="rfc2629.xslt">
1898      <t><list style="hanging">
1899<t hangText="2001-03-28">
1900    Code rearranged, generate numbered section anchors for paragraphs (t)
1901    as well. Fixes in index handling.
1902</t>
1903<t hangText="2001-04-12">
1904    Moved HTML output into XHTML namespace.
1905</t>
1906<t hangText="2001-10-02">
1907    Fixed default location for RFCs and numbering of section references.
1908    Support ?rfc editing processing instruction.
1909</t>
1910<t hangText="2001-10-07">
1911    Made telephone number links active.
1912</t>
1913<t hangText="2001-10-08">
1914    Support for vspace element.
1915</t>
1916<t hangText="2001-10-09">
1917    Experimental support for rfc-issue PI.
1918</t>
1919<t hangText="2001-11-11">
1920    Support rfc private PI. Removed bogus code reporting the WG in the header.
1921</t>
1922<t hangText="2001-11-11">
1923    Support rfc private PI. Removed bogus code reporting the WG in the header.
1924</t>
1925<t hangText="2001-12-17">
1926    Support title attribute on references element
1927</t>
1928<t hangText="2002-01-05">
1929    Support for list/@style="@format"
1930</t>
1931<t hangText="2002-01-09">
1932    Display "closed" RFC issues as deleted
1933</t>
1934<t hangText="2002-01-14">
1935    Experimentally and optionally parse XML encountered in artwork elements
1936    (requires MSXSL).
1937</t>
1938<t hangText="2002-01-27">
1939    Some cleanup. Moved RFC issues from PIs into namespaced elements.
1940</t>
1941<t hangText="2002-01-29">
1942    Added support for sortrefs PI. Added support for figure names.
1943</t>
1944<t hangText="2002-02-07">
1945    Highlight parts of artwork which are too wide (72 characters).
1946</t>
1947<t hangText="2002-02-12">
1948    Code rearrangement for static texts. Fixes for section numbering.
1949    TOC generation rewritten.
1950</t>
1951<t hangText="2002-02-15">
1952    Support for irefs in sections; support iref @primary=true
1953</t>
1954<t hangText="2002-03-03">
1955    Moved anchor prefix into a constant. Added sanity checks on user anchor
1956    names.
1957</t>
1958<t hangText="2002-03-23">
1959    Bugfix in detection of matching org names when creating the header. Fixed
1960    sorting in subitems.
1961</t>
1962<t hangText="2002-04-02">
1963    Fix TOC link HTML generation when no TOC is generated (created broken
1964    HTML table code).
1965</t>
1966<t hangText="2002-04-03">
1967    Made rendering of references more tolerant re: missing parts.
1968</t>
1969<t hangText="2002-04-08">
1970    Fixed reference numbering when references are split into separate sections.
1971</t>
1972<t hangText="2002-04-16">
1973    Fix default namespace (shouldn't be set for HTML output method).
1974</t>
1975<t hangText="2002-04-19">
1976    Lowercase internal CSS selectors for Mozilla compliance. Do not put TOC
1977    into ul element.
1978</t>
1979<t hangText="2002-04-21">
1980    Make numbered list inside numbered lists use alphanumeric numbering.
1981</t>
1982<t hangText="2002-05-05">
1983    Updated issue/editing support.
1984</t>
1985<t hangText="2002-05-15">
1986    Bugfix for section numbering after introduction of ed:replace
1987</t>
1988<t hangText="2002-06-21">
1989    When producing private documents, do not include document status, copyright etc.
1990</t>
1991<t hangText="2002-07-08">
1992    Fix xrefs to Appendices.
1993</t>
1994<t hangText="2002-07-19">
1995    Make artwork lightyellow for easier reading. (fielding)
1996</t>
1997<t hangText="2002-10-09">
1998    Translate references title to anchor name to avoid non-uri characters. (fielding)
1999</t>
2000<t hangText="2002-10-13">
2001    Support for tocdepth PI.
2002</t>
2003<t hangText="2002-11-03">
2004    Added temporariry workaround for Mozilla/Transformiix result tree fragment problem.
2005    (search for 'http://bugzilla.mozilla.org/show_bug.cgi?id=143668')
2006</t>
2007<t hangText="2002-12-25">
2008    xref code: attempt to uppercase "section" and "appendix" when at the start
2009    of a sentence.
2010</t>
2011<t hangText="2003-02-02">
2012    fixed code for vspace blankLines="0", enhanced display for list with "format" style,
2013    got rid of HTML blockquote elements, added support for "hangIndent"
2014</t>
2015<t hangText="2003-04-10">
2016    experimental support for appendix and spanx elements
2017</t>
2018<t hangText="2003-04-19">
2019    fixed counting of list numbers in "format %" styles (one counter
2020    per unique format string). Added more spanx styles.
2021</t>
2022<t hangText="2003-05-02">
2023    experimental texttable support
2024</t>
2025<t hangText="2003-05-02">
2026    Make mailto links optional (default = none) (jre: default and PI name changed) (fielding)
2027</t>
2028<t hangText="2003-05-04">
2029    experimental support for HTML link elements; fix default for table header
2030    alignment default
2031</t>
2032<t hangText="2003-05-06">
2033    support for "background" PI.
2034</t>
2035<t hangText="2003-05-11">
2036    change %c format to lowercase alphabetic. add support for keyword
2037    elements (generate META tag). fix various HTML conformance problems.
2038    added experimental support for role attribute. do not number paragraphs
2039    in unnumbered sections. update boilerplate texts. support for
2040    "iprnotified" PI. bugfix list numbering. strip whitespace when
2041    building tel: URIs.
2042</t>
2043<t hangText="2003-05-12">
2044    more conformance fixes (layout moved into CSS, move lists and figures
2045    out of para content, do not use tables for list formatting)
2046</t>
2047<t hangText="2003-05-13">
2048    add DC.Creator meta tag, refactoring
2049</t>
2050<t hangText="2003-05-16">
2051    put nbsps between "section" and section number (xref).
2052</t>
2053<t hangText="2003-05-18">
2054    author summary: add missing comma.
2055</t>
2056<t hangText="2003-06-06">
2057    fix index generation bug (transposed characters in key generation). Enhance
2058    sentence start detection (xref starting a section was using lowercase
2059    "section").
2060</t>
2061<t hangText="2003-06-22">
2062    exp. support for xref/@format. Add missing support for eref w/o content.
2063    exp. support for annotations in reference elements. Code cleanup
2064    reference table formatting.
2065</t>
2066<t hangText="2003-07-09">
2067    Another fix for DC.Creator meta tag creation based on RFC2731
2068</t>
2069<t hangText="2003-07-24">
2070    Fix namespace name for DC.Creator.
2071</t>
2072<t hangText="2003-08-06">
2073    Cleanup node-set support (only use exslt (saxon, xalan, libxslt) extension
2074    functions; remove Transformix workarounds that stopped to work in Moz 1.4)
2075</t>
2076<t hangText="2003-08-09">
2077    Generate HTML lang tag.
2078</t>
2079<t hangText="2003-08-10">
2080    Map spanx/verb to HTML "samp" element. Fix author name display in
2081    references (reverse surname/initials for last author), add "Ed.".
2082    Fix internal bookmark generation.
2083</t>
2084<t hangText="2003-08-17">
2085    Add DCMI dates, identifiers and abstract. Add PI to suppress DCMI
2086    generation.  Do not add TOC entry to Copyright Statement when there is
2087    none. Align RFC2629 PI names and parameter names. Change style for
2088    inline URIs generated by eref. Add header and footer support.
2089    Enhance CSS paging properties. Support topblock PI. Added hooks for
2090    proper XHTML generation through separate XSLT. Enhance warning and
2091    error messages. Add support for artwork image display. Table formatting
2092    fixes (borders, thead continuation).
2093</t>
2094<t hangText="2003-08-18">
2095    Add workaround for MSXML4 node-set and Mozilla node-set issues (fallback
2096    just displays are warning).
2097</t>
2098<t hangText="2003-10-06">
2099    Add workaround for broken pre/ins handling in Mozilla
2100    (see <eref target="http://bugzilla.mozilla.org/show_bug.cgi?id=204401"/>). Make use
2101    of cite attribute on ed:replace. CSS cleanup.
2102</t>
2103<t hangText="2003-10-08">
2104    Fix minor issue detecting the same org for the header (caused by IE's
2105    non-standard whitespace handling). Fix default handling for /rfc/@category.
2106</t>
2107<t hangText="2003-11-09">
2108    Inherit ed:entered-by from ancestor elements. Change CSS color for inserted
2109    text to green. Generate issues-list anchor. Do not complain about missing
2110    targets when the xref element is below ed:del. Remove code that attempted
2111    to distinguish section/Section when producing links - always use
2112    uppercase. Fix date rendering for issue resolutions.
2113</t>
2114<t hangText="2003-11-29">
2115    Fix color values for table backgrounds for issue rendering. Change
2116    rendering of issue links to use inline-styles. Add colored issue markers to
2117    issues.
2118</t>
2119<t hangText="2003-12-13">
2120    Fix inheritance of ed:entered-by attribute. Display note elements inside
2121    change tracking as well.
2122</t>
2123<t hangText="2004-01-18">
2124    When PI compact = 'yes', make most CSS print page breaks conditional.
2125</t>
2126<t hangText="2004-02-20">
2127    Support for RFC3667 IPR changes (xml2rfc 1.22); see
2128    <eref target="http://lists.xml.resource.org/pipermail/xml2rfc/2004-February/001088.html"/>.
2129</t>
2130<t hangText="2004-03-11">
2131    Add "(if approved)" to "updates" and "obsoletes" unless the document has
2132    an RFC number.
2133</t>
2134<t hangText="2004-04-01">
2135    Fix RFC3667 output, see <eref target="http://lists.xml.resource.org/pipermail/xml2rfc/2004-April/001208.html"/>.
2136</t>
2137<t hangText="2004-04-04">
2138    Add support for section/top attribute. Move references into plain
2139    section container.
2140</t>
2141<t hangText="2004-04-06">
2142    Do not emit identical para anchors for deleted content.
2143</t>
2144<t hangText="2004-04-14">
2145    Fix references TOC generation when there are no references.
2146</t>
2147<t hangText="2004-04-24">
2148    Fix RFC3667 output, see <eref target="http://xml.resource.org/pipermail/xml2rfc/2004-April/001246.html"/>.
2149</t>
2150<t hangText="2004-05-09">
2151    Add custom support for generating compound index documents. Add anchors
2152    for each Index letter. Add experimental cref support. Fix conditional page
2153    breaks before References section.
2154</t>
2155<t hangText="2004-05-16">
2156    Refactor external index generation.
2157</t>
2158<t hangText="2004-05-20">
2159    Rewrite anchor generation for comments.
2160</t>
2161<t hangText="2004-05-22">
2162    Enhance issues rendering (add links to changes).
2163</t>
2164<t hangText="2004-05-30">
2165    Allow single quote as delimiter in processing instructions as well. Move
2166    block-level issue pointers to floats. Disable issue pointers for print
2167    media. Add "purple numbers". Add hrefs to section headings. Add non-printing
2168    index key letter list to start of index.
2169</t>
2170<t hangText="2004-06-01">
2171    Use &amp;#xb6; instead of # for PNs.
2172</t>
2173<t hangText="2004-07-18">
2174    Add support for list style=letters (thanks Roy F.). Make PNs optional;
2175    add new PI.
2176</t>
2177<t hangText="2004-09-05">
2178    Fix index links into unnumbered sections.  Bring IPR boilerplate in-line
2179    with xml2rfc 1.25.  Add experimental CSS3 paged media support.  Various
2180    HTML fixes.
2181</t>
2182<t hangText="2004-09-21">
2183    Enhance checking of artwork width.
2184</t>
2185<t hangText="2004-09-26">
2186    Add check for unused references. Uppercase letters in list style letters
2187    when nested into another list.
2188</t>
2189<t hangText="2004-10-10">
2190    Fix internal change track pointers.
2191</t>
2192<t hangText="2004-11-01">
2193    Allow change tracking on references (as a whole).  Rewrite artwork handling
2194    so that it allows change tracking inside artwork.  Also allow a subset of
2195    text markup inside artwork, such as xrefs (note this requires post-processing
2196    the source to make it compliant to RFC2629bis).
2197</t>
2198<t hangText="2004-11-03">
2199    Enhanced placement of iref anchors.
2200</t>
2201<t hangText="2004-11-06">
2202    Index: display irefs that appeared (with primary=true) inside artwork elements
2203    in a monospaced font.
2204</t>
2205<t hangText="2004-11-14">
2206    Add special code so that changes in section titles can be change-tracked.
2207</t>
2208<t hangText="2005-01-14">
2209    Bugfixes for HtmlToXhtml converter.
2210</t>
2211<t hangText="2005-01-22">
2212    Enhance generation of HTML h* elements (for Mozilla Outliner).
2213</t>
2214<t hangText="2005-01-31">
2215    Put vertical space around top-level TOC entries in TOC.  Switch to
2216    pt-based CSS. Re-arrange top section. Make hr elements reflect new-page
2217    settings in TXT output (compact-PI).  Fix page number in footer (CSS
2218    print) and add some more experimental support for paged media (tested
2219    with Prince 4.1 alpha).  Rewrite TOC and Index generation to generate HTML
2220    lists.  Cleanup id generation for paragraphs.  Reduce whitespace in output.
2221    Fix vspace implementation. Use right/left dqoutes and copyright sign
2222    where appropriate.
2223</t>
2224<t hangText="2005-02-04">
2225    Add &lt;link> element to references section.  Fix newly introduced bug
2226    in references processing.
2227</t>
2228<t hangText="2005-02-05">
2229    Integrate various fixes/enhancements by Roy Fielding: spelling of
2230    "Authors' Addresses", comma setting in references, position of "Authors"
2231    section, optionally place authors addresses at end (PI), trailing dots
2232    in section numbers, switch to verdana default font in CSS.  Add
2233    experimental support for centered artwork.
2234</t>
2235<t hangText="2005-02-09">
2236    Fixes in spacing and links of references section titles.  Enhance sorting
2237    in references when change tracking is in place.  Re-add figure centering
2238    support.  Add missing 2nd part of "Author's Adresses" fix.
2239</t>
2240<t hangText="2005-02-25">
2241    Align section number format with xml2rfc1.29.
2242</t>
2243<t hangText="2005-03-28">
2244    Get rid of table elements in Author's section.  Add experimental hCard
2245    (<eref target="http://developers.technorati.com/wiki/hCard"/>) support.
2246</t>
2247<t hangText="2005-04-03">
2248    Add RFC3978-style IPR statement support. (fenner@research.att.com)
2249</t>
2250<t hangText="2005-04-11">
2251    Cleanup author display. hCard related fixes.
2252</t>
2253<t hangText="2005-05-07">
2254    Minor fixes to allow change tracking in doc title.  Add experimental
2255    support for table border styles. CSS cleanup.
2256</t>
2257<t hangText="2005-06-18">
2258    Implement missing support for references to texttables.
2259</t>
2260<t hangText="2005-09-25">
2261    Use (-moz-)column-count when printing the index.
2262</t>
2263<t hangText="2005-10-04">
2264    Report missing element templates with xsl:message.
2265</t>
2266<t hangText="2005-10-15">
2267    Process t/@anchor.
2268</t>
2269<t hangText="2005-10-23">
2270    More workarounds for Mozilla's broken del/ins handling (this time for
2271    figures).
2272</t>
2273<t hangText="2005-10-27">
2274    lowercase hCard class names
2275</t>
2276<t hangText="2005-11-22">
2277    Enhance diagnostics for XML-in-artwork extension
2278</t>
2279<t hangText="2005-11-26">
2280    Fix formatting of section numbers for sections inserted into &lt;back>.
2281</t>
2282<t hangText="2005-12-12">
2283    Fix some validity problems when change tracking occured inside lists.
2284</t>
2285<t hangText="2005-12-18">
2286    Add change tracking inside the index.
2287</t>
2288<t hangText="2006-02-04">
2289    Add prev/next links to highlighted changes (change tracking extension).
2290</t>
2291<t hangText="2006-02-10">
2292    Catch errors instantiating MSXML component.
2293</t>
2294<t hangText="2006-02-11">
2295    References: add "work in progress" for Internet Drafts.
2296</t>
2297<t hangText="2006-02-27">
2298    Fix front matter (lowercase Internet-Draft, say "Intended status" for
2299    non-RFC documents). Start work on experimental extension for 
2300    simplified internal links.
2301</t>
2302<t hangText="2006-03-19">
2303    Tweaks to IESG Copyright stuff; support submissionType attribute.
2304    Fix duplicate reference anchors in HTML output.  Reduce HTML Tidy warnings.
2305    Fix reference to normative ASCII version (now requires trailing ".txt").
2306    Tweaks to hCard generation.  Started to move non-issue-tracking
2307    extensions into namespace "http://purl.org/net/xml2rfc/ext".
2308</t>
2309<t hangText="2006-03-27">
2310    Moved "simple reference" extension into namespace "http://purl.org/net/xml2rfc/ext"
2311    and add documentation.  HTML conformance enhancements.
2312</t>
2313<t hangText="2006-04-02">
2314    Cleanup special code for automated XHTML XSLT generation.
2315</t>
2316<t hangText="2006-04-21">
2317    Generate &lt;CITE> elements where appropiate.
2318    Introduce x:blockquote, x:dfn, x:h and x:q elements.
2319</t>
2320<t hangText="2006-05-06">
2321    Introduce x:bcp14 element.
2322</t>
2323<t hangText="2006-05-14">
2324  Fix content model for x:blockquote.
2325</t>
2326<t hangText="2006-06-18">
2327  Add box drawing support (x:bt, x:bc, x:bb).
2328</t>
2329<t hangText="2006-06-20">
2330  HTML validity fixes (legal chars in anchors in index).
2331</t>
2332<t hangText="2006-06-24">
2333  Reduce leading empty lines in artwork. Move &lt;dt> style info into CSS.
2334</t>
2335<t hangText="2006-07-14">
2336  Fix rendering of multiple street address entries (missing line break).
2337</t>
2338<t hangText="2006-07-24">
2339  Add extension for deep linking into RFCs, do not generate empty list
2340  items in TOC output, avoid empty &lt;dt> elements for list items
2341  without hangText attribute.
2342</t>
2343<t hangText="2006-08-01">
2344  Allow @anchor on more elements; start work on Relax NG grammar for
2345  extensions. Reduce generated style elements (use CSS classes instead).
2346  Consistently use "id" instead of "name". Change default target for RFC
2347  links to "http://tools.ietf.org/html/rfcNNNN".
2348</t>
2349<t hangText="2006-08-06">
2350  Include appendices defined in &lt;appendix> elements in TOC (please
2351  consider them deprecated anyhow!). Generate links to
2352  "http://tools.ietf.org/html/draft-*" for Internet Drafts.
2353  Replace x:frag by x:rel, allowing any kind of relative reference instead
2354  of just fragments.
2355</t>
2356<t hangText="2006-08-30">
2357  Reduce textual differences between HTML output and what xml2rfc produces
2358  in TXT output mode (section refs/reference targets). Add small workaround
2359  for Opera 9.0.1's problem with node-set().
2360</t>
2361<t hangText="2006-10-29">
2362  Fix problem generating internal links to change markup within references
2363  section. Enhancements when generating numbered references for deleted
2364  references.
2365  Allow inclusion of references into the index (through include-references-in-index
2366  extension).
2367  Fix a bug that caused the newer version of the IETF boilerplate to be
2368  produced rather than the pre-RFC3667 one.
2369  Update to RFC4287 boilerplate.
2370</t>
2371<t hangText="2006-11-11">
2372  Add extension attribute x:for-anchor to &lt;iref&gt; handling.
2373</t>
2374<t hangText="2006-11-26">
2375  Experimental (and limited) support for &lt;x:lt&gt;.
2376</t>
2377<t hangText="2006-12-04">
2378  Fix bugs in processing documents that have both the ipr and the number attribute
2379  set on the rfc root element. Add support for x:fmt='none' on xrefs.
2380  Add different pre style based on artwork type attributes (experimental).
2381</t>
2382<t hangText="2006-12-13">
2383  Add x:fmt='anchor' for xref elements.
2384</t>
2385<t hangText="2007-01-07">
2386  Fix root template for compatibility for the exslt:node-set implementation
2387  in Firefox3.
2388</t>
2389<t hangText="2007-01-29">
2390  Avoid empty table entry in front matter when organization is not specified
2391  for an author.
2392</t>
2393<t hangText="2007-02-10">
2394  Allow change tracking in table rows.
2395</t>
2396<t hangText="2007-03-09">
2397  Add hcard profile URI (<eref target="http://www.w3.org/2006/03/hcard"/>) to head element.
2398  Add warning for misplaced &lt;t> elements (after section).
2399</t>
2400<t hangText="2007-03-21">
2401  Fix internal linking from reference entries in index for some xref types.
2402  Minor CSS tweaks contributed by MTR. Allow turning on text justification through
2403  a PI. Improve iref anchor generation to generate less instable anchors.
2404</t>
2405<t hangText="2007-03-28">
2406  Fixes for numbering of ed:inserted references sections.
2407</t>
2408<t hangText="2007-05-04">
2409  Do not generate anchors for edits in deleted sections. Enhance HTML
2410  conformance.
2411</t>
2412<t hangText="2007-05-19">
2413  Enhance diagnostics when using Saxon (needs Saxon's "-l" command line
2414  parameter to keep line number information). Add warning when symref PI
2415  is missing (default will change in the future).
2416  Add support for overriding computed section numbers (when formatting
2417  historic documents).
2418</t>
2419<t hangText="2007-06-07">
2420  Change default for symrefs PI to "yes" (see change in xml2rfc 1.33pre4).
2421  Warn about docName attributes that appear to contain a file extension.
2422</t>
2423<t hangText="2007-06-26">
2424  Workaround author/@initials values without trailing dot, as in xml2rfc.tcl.
2425</t>
2426<t hangText="2007-07-14">
2427  Enhance index generation for references that use @x:sec attribute.
2428</t>
2429<t hangText="2007-09-09">
2430  Fix: sortrefs is a nop when symrefs=no.
2431</t>
2432<t hangText="2007-10-17">
2433  Work in progress: add support for referencing sections in sibling
2434  documents by anchor name.
2435</t>
2436<t hangText="2007-10-17">
2437  Work in progress (continued): support for referencing sections in sibling
2438  documents by anchor name.
2439</t>
2440      </list></t>
2441    </section>
2442    <section title="rfc2629toFO.xslt">
2443      <t><list style="hanging">
2444<t hangText="2003-11-16">
2445    Initial release.
2446</t>
2447<t hangText="2003-11-29">
2448    Enhance handling of unknown list styles.
2449</t>
2450<t hangText="2004-04-04">
2451    Update reference section handling.
2452</t>
2453<t hangText="2004-04-17">
2454    Use XSL-WD-1.1-style fo:bookmark and index handling and add postprocessors for
2455    existing implementations. Unify PDF info generation by using XEP (postprocessors)
2456    will convert.
2457</t>
2458<t hangText="2004-04-20">
2459    Add experimental cref support.
2460</t>
2461<t hangText="2004-06-14">
2462    Set correct index-item defaults.
2463</t>
2464<t hangText="2004-07-18">
2465    Add list style=letters.
2466</t>
2467<t hangText="2004-09-03">
2468    Make URLs in text break where they are allowed to break by inserting
2469    zero-width spaces.
2470</t>
2471<t hangText="2004-09-26">
2472    Fix letter-style inside nested lists.
2473</t>
2474<t hangText="2004-10-31">
2475    Update handling of artwork.
2476</t>
2477<t hangText="2004-11-13">
2478    Fix handling of references inside ed:* markup.  Fix whitespace handling
2479    in artwork.
2480</t>
2481<t hangText="2004-11-27">
2482    Irefs in artwork generate monospaced entries in index.
2483</t>
2484<t hangText="2005-01-31">
2485    Fix TOC generation that was broken after changes in main XSLT.
2486</t>
2487<t hangText="2005-02-05">
2488    Bring in sync with cosmetic changes in rfc2629.xslt.
2489</t>
2490<t hangText="2005-05-07">
2491    Minor fix for change tracking in document title.  Support for table
2492    styles.
2493</t>
2494<t hangText="2005-06-18">
2495    Fix references to tables.
2496</t>
2497<t hangText="2005-10-15">
2498    Process t/@anchor.
2499</t>
2500<t hangText="2006-02-11">
2501    References: add "work in progress" for Internet Drafts.
2502</t>
2503<t hangText="2006-06-02">
2504    Use XSL 1.1 WD Feb 2006.
2505</t>
2506<t hangText="2007-03-21">
2507    Support optional text justification.
2508</t>
2509<t hangText="2007-05-19">
2510    Various improvements in spacing; also allow overriding the automatic
2511    list indentation via list/x:indent.
2512</t>
2513     </list></t>
2514    </section>
2515
2516    <section title="xsl11toAn.xslt">
2517    <t><list style="hanging">
2518<t hangText="2004-05-17">
2519     Initial release.
2520</t>
2521<t hangText="2006-06-02">
2522    Use XSL 1.1 WD Feb 2006.
2523</t>
2524    </list></t>
2525    </section>
2526
2527    <section title="xsl11toFop.xslt">
2528    <t><list style="hanging">
2529<t hangText="2004-05-17">
2530     Initial release.
2531</t>
2532<t hangText="2006-06-02">
2533    Use XSL 1.1 WD Feb 2006.
2534</t>
2535    </list></t>
2536    </section>
2537
2538    <section title="xsl11toXep.xslt">
2539    <t><list style="hanging">
2540<t hangText="2004-05-17">
2541     Initial release.
2542</t>
2543<t hangText="2004-09-04">
2544     Fix xep:index-item attributes.
2545</t>
2546<t hangText="2006-06-02">
2547    Use XSL 1.1 WD Feb 2006.
2548</t>
2549    </list></t>
2550    </section>
2551  </section>
2552
2553</back>
2554</rfc>
Note: See TracBrowser for help on using the repository browser.