source: rfc2629xslt/rfc2629xslt.xml @ 723

Last change on this file since 723 was 723, checked in by julian.reschke@…, 10 years ago

Update to latest version of xml2rfc and rfc2629.xslt, bump document dates

  • Property svn:eol-style set to native
File size: 118.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="October" year="2009"/>
33
34    <keyword>RFC2629</keyword>
35    <keyword>xml2rfc</keyword>
36    <keyword>XSLT</keyword>
37    <keyword>hCard</keyword>
38    <keyword>XSL-FO</keyword>
39    <keyword>PDF</keyword>
40    <keyword>GRDDL</keyword>
41    <keyword>Dublin Core</keyword>
42        </front>
43
44        <middle>
45
46<section title="Introduction">
47<t>
48  This document describes a set of XSLT transformations that can be used to
49  transform RFC2629-compliant XML (see <xref target="RFC2629"/>) to various
50  output formats, such as HTML and PDF. The main topics are 
51  <list style="symbols">
52    <t>compliance to the xml2rfc XML element set (<xref target="supported.elements"/>),</t>
53    <t>support for xml2rfc processing instructions (<xref target="processing.instructions"/>),</t>
54    <t>the names of anchor elements generated in HTML and PDF output (<xref target="anchors"/>),</t>
55    <t>various XSLT engines that can be used (<xref target="xslt.engines"/>),</t>
56    <t>outputting HTML (<xref target="output.html"/>) and XHTML (<xref target="output.xhtml"/>),</t>
57    <t>outputting CHM (Compiled Microsoft Help, <xref target="output.chm"/>),</t>
58    <t>outputting PDF (<xref target="output.pdf"/>),</t>
59    <t>extensions to the xml2rfc vocabulary (<xref target="extensions"/>).</t>
60    <t>various utilities (<xref target="utilities"/>).</t>
61  </list>
62</t>
63<t>
64  The full distribution is available at <eref target="http://greenbytes.de/tech/webdav/rfc2629xslt.zip"/>.
65</t>
66</section>
67
68<section title="Supported RFC2629 elements" anchor="supported.elements">
69<t>
70  <spanx style="verb">rfc2629.xslt</spanx> supports both all RFC2629 grammar elements and the extensions
71  implemented in xml2rfc 1.33.
72</t>
73<section title="Extension elements">
74<t>
75  <spanx style="verb">rfc2629.xslt</spanx> supports two kind of extension
76  elements, using different XML namespaces.
77</t>
78<t>
79  The first set contains (hopefully) generally useful extensions, see
80  <xref target="extensions"/>.
81</t>
82<t>
83  The second set is used for change and issue tracking and currently is not
84  documented here. Please email the author in case
85  you're interested in using these extensions.
86</t>
87</section>
88</section>
89
90<section title="Processing Instructions" anchor="processing.instructions">
91<t>
92  All PIs can be set as XSLT parameter as well, overriding any value that
93  is found in the source file to be transformed.
94</t>
95<figure>
96<preamble>Using processing instructions:</preamble>
97<artwork type="example">
98&lt;?rfc toc="yes"?>
99&lt;?rfc-ext support-rfc2731="no"?>
100</artwork>
101</figure>
102<figure>
103<preamble>Using XSLT parameters (Saxon):</preamble>
104<artwork type="example">
105java -cp saxon.jar com.icl.saxon.StyleSheet source.xml rfc2629.xslt \
106  xml2rfc-toc=yes xml2rfc-ext-support-rfc2731=no > result.html
107</artwork></figure>
108<figure>
109<preamble>Using XSLT parameters (xsltproc):</preamble>
110<artwork type="example">
111xsltproc --param xml2rfc-toc '"yes"' \
112   --param xml2rfc-ext-support-rfc2731 '"no"' \
113   rfc2629.xslt source.xml > result.html
114</artwork>
115<postamble>(note the required quoting of string parameters)<iref item="xsltproc" subitem="passing parameters"/></postamble>
116</figure>
117
118<section title="Supported xml2rfc-compatible PIs">
119<texttable>
120  <ttcol>PI target</ttcol>
121  <ttcol>PI pseudo-attribute</ttcol>
122  <ttcol>XSLT parameter name</ttcol>
123  <ttcol>default</ttcol>
124  <ttcol>comment</ttcol>
125
126  <c>rfc</c>
127  <c>background<iref item="background PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="background"/></c>
128  <c>xml2rfc-background<iref item="xml2rfc-background parameter"/> <iref item="Parameters" subitem="xml2rfc-background"/></c>
129  <c>(not set)</c>
130  <c/>
131 
132  <c>rfc</c>
133  <c>compact<iref item="compact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="compact"/></c>
134  <c>xml2rfc-compact<iref item="xml2rfc-editing parameter"/> <iref item="Parameters" subitem="xml2rfc-compact"/></c>
135  <c>"no"</c>
136  <c>only applies to HTML output method when printing</c>
137
138  <c>rfc</c>
139  <c>comments<iref item="comments PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="comments"/></c>
140  <c>xml2rfc-comments<iref item="xml2rfc-comments parameter"/> <iref item="Parameters" subitem="xml2rfc-comments"/></c>
141  <c>(not set)</c>
142  <c/>
143
144  <c>rfc</c>
145  <c>editing<iref item="editing PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="editing"/></c>
146  <c>xml2rfc-editing<iref item="xml2rfc-editing parameter"/> <iref item="Parameters" subitem="xml2rfc-editing"/></c>
147  <c>"no"</c>
148  <c/>
149 
150  <c>rfc</c>
151  <c>footer<iref item="footer PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="footer"/></c>
152  <c>xml2rfc-footer<iref item="xml2rfc-footer parameter"/> <iref item="Parameters" subitem="xml2rfc-footer"/></c>
153  <c>(not set)</c>
154  <c/>
155 
156  <c>rfc</c>
157  <c>header<iref item="header PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="header"/></c>
158  <c>xml2rfc-header<iref item="xml2rfc-header parameter"/> <iref item="Parameters" subitem="xml2rfc-header"/></c>
159  <c>(not set)</c>
160  <c/>
161
162  <c>rfc</c>
163  <c>inline<iref item="inline PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="inline"/></c>
164  <c>xml2rfc-inline<iref item="xml2rfc-inline parameter"/> <iref item="Parameters" subitem="xml2rfc-inline"/></c>
165  <c>(not set)</c>
166  <c/>
167
168  <c>rfc</c>
169  <c>iprnotified<iref item="iprnotified PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="iprnotified"/></c>
170  <c>xml2rfc-iprnotified<iref item="xml2rfc-iprnotified parameter"/> <iref item="Parameters" subitem="xml2rfc-iprnotified"/></c>
171  <c>"no"</c>
172  <c/>
173
174  <c>rfc</c>
175  <c>linkmailto<iref item="linkmailto PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="linkmailto"/></c>
176  <c>xml2rfc-linkmailto<iref item="xml2rfc-linkmailto parameter"/> <iref item="Parameters" subitem="xml2rfc-linkmailto"/></c>
177  <c>"yes"</c>
178  <c/>
179 
180  <c>rfc</c>
181  <c>private<iref item="private PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="private"/></c>
182  <c>xml2rfc-private<iref item="xml2rfc-private parameter"/> <iref item="Parameters" subitem="xml2rfc-private"/></c>
183  <c>(not set)</c>
184  <c/>
185 
186  <c>rfc</c>
187  <c>refparent<iref item="refparent PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="refparent"/></c>
188  <c>xml2rfc-private<iref item="xml2rfc-refparent parameter"/> <iref item="Parameters" subitem="xml2rfc-refparent"/></c>
189  <c>"References"</c>
190  <c>Title for References sections when automatically inserted</c>
191
192  <c>rfc</c>
193  <c>rfcedstyle<iref item="rfcedstyle PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="rfcedstyle"/></c>
194  <c>xml2rfc-rfcedstyle<iref item="xml2rfc-rfcedstyle parameter"/> <iref item="Parameters" subitem="xml2rfc-rfcedstyle"/></c>
195  <c>(not set)</c>
196  <c>(limited support)</c>
197
198  <c>rfc</c>
199  <c>sortrefs<iref item="sortrefs PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="sortrefs"/></c>
200  <c>xml2rfc-sortrefs<iref item="xml2rfc-sortrefs parameter"/> <iref item="Parameters" subitem="xml2rfc-sortrefs"/></c>
201  <c>"no"</c>
202  <c/>
203 
204  <c>rfc</c>
205  <c>symrefs<iref item="symrefs PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="symrefs"/></c>
206  <c>xml2rfc-symrefs<iref item="xml2rfc-symrefs parameter"/> <iref item="Parameters" subitem="xml2rfc-symrefs"/></c>
207  <c>"yes"</c>
208  <c>The default has changed from "no" to "yes" as of June 6, 2007 and xml2rfc 1.33pre4.</c>
209 
210  <c>rfc</c>
211  <c>toc<iref item="toc PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="toc"/></c>
212  <c>xml2rfc-toc<iref item="xml2rfc-toc parameter"/> <iref item="Parameters" subitem="xml2rfc-toc"/></c>
213  <c>"no"</c>
214  <c/>
215 
216  <c>rfc</c>
217  <c>tocdepth<iref item="tocdepth PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocdepth"/></c>
218  <c>xml2rfc-tocdepth<iref item="xml2rfc-tocdepth parameter"/> <iref item="Parameters" subitem="xml2rfc-tocdepth"/></c>
219  <c>99</c>
220  <c/>
221
222  <c>rfc</c>
223  <c>topblock<iref item="topblock PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="topblock"/></c>
224  <c>xml2rfc-topblock<iref item="xml2rfc-topblock parameter"/> <iref item="Parameters" subitem="xml2rfc-topblock"/></c>
225  <c>"yes"</c>
226  <c/>
227
228</texttable>
229</section>
230
231<section title="Unsupported xml2rfc-compatible PIs">
232<texttable>
233  <ttcol>PI target</ttcol>
234  <ttcol>PI pseudo-attribute</ttcol>
235  <ttcol>comment</ttcol>
236
237  <c>rfc</c>
238  <c>include<iref item="include PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="include"/></c>
239  <c>incompatible with XML/XSLT processing model, please use external entities instead</c>
240
241  <c>rfc</c>
242  <c>needLines<iref item="needLines PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="needLines"/></c>
243  <c/>
244
245  <c>rfc</c>
246  <c>slides<iref item="slides PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="slides"/></c>
247  <c/>
248
249  <c>rfc</c>
250  <c>strict<iref item="strict PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="strict"/></c>
251  <c/>
252
253  <c>rfc</c>
254  <c>subcompact<iref item="subcompact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="subcompact"/></c>
255  <c/>
256
257  <c>rfc</c>
258  <c>tocindent<iref item="tocindent PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocindent"/></c>
259  <c>(defaults to "yes")</c>
260
261 <c>rfc</c>
262  <c>tocompact<iref item="tocompact PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="tocompact"/></c>
263  <c/>
264
265</texttable>
266</section>
267
268<section title="Extension PIs">
269<texttable>
270  <ttcol>PI target</ttcol>
271  <ttcol>PI pseudo-attribute</ttcol>
272  <ttcol>XSLT parameter name</ttcol>
273  <ttcol>default</ttcol>
274  <ttcol>description</ttcol>
275
276  <c>rfc-ext</c>
277  <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>
278  <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>
279  <c>"no"</c>
280  <c>Enables support for specific elements inside abstract elements (using this extension
281  makes the document incompatible to the RFC2629bis DTD; see description of
282  conversion XSLT in <xref target="clean-for-dtd"/>).</c>
283
284  <c>rfc-ext</c>
285  <c>authors-section<iref item="authors-section PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="authors-section"/></c>
286  <c>xml2rfc-ext-authors-section<iref item="xml2rfc-ext-authors-section parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-authors-section"/></c>
287  <c></c>
288  <c>When "end", place the authors section at the end (just before the
289  copyright statements). This seems to be the preferred order in the
290  newest RFCs.</c>
291
292  <c>rfc-ext</c>
293  <c>duplex<iref item="duplex PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="duplex"/></c>
294  <c>xml2rfc-ext-duplex<iref item="xml2rfc-ext-duplex"/> <iref item="Parameters" subitem="xml2rfc-ext-duplex"/></c>
295  <c>no</c>
296  <c>When set to "yes", format the PDF output for doublesided printing.</c>
297
298  <c>rfc-ext</c>
299  <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>
300  <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>
301  <c></c>
302  <c>When set to "yes", index entries are generated for all references.</c>
303
304  <c>rfc-ext</c>
305  <c>justification<iref item="justification PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="ijustification"/></c>
306  <c>xml2rfc-ext-justification<iref item="xml2rfc-ext-justification parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-justification"/></c>
307  <c>"never"</c>
308  <c>"never": never emit justified text, "always": always emit justified text, "print": only emit justified text for print media.</c>
309
310  <c>rfc-ext</c>
311  <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>
312  <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>
313  <c>"no"</c>
314  <c>May be used to enable parsing of XML content in figures (MSXML only).</c>
315
316  <c>rfc-ext</c>
317  <c>support-rfc2731<iref item="support-rfc2731 PI pseudo-attribute"/><iref item="Processing Instruction pseudo attributes" subitem="support-rfc2731"/></c>
318  <c>xml2rfc-ext-support-rfc2731<iref item="xml2rfc-ext-support-rfc2731 parameter"/> <iref item="Parameters" subitem="xml2rfc-ext-support-rfc2731"/></c>
319  <c>"yes"</c>
320  <c>Decides whether the HTML transformation should generate META tags according <xref target="rfc2731.properties"/>.</c>
321
322  <c>rfc-ext</c>
323  <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>
324  <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>
325  <c></c>
326  <c>When set to "yes", add trailing dots to section numbers. This seems to be the preferred format in the
327  newest RFCs.</c>
328
329</texttable>
330</section>
331
332</section>
333
334<section title="Anchors" anchor="anchors">
335<t>
336  The transformation automatically generates anchors that are supposed to
337  be stable and predictable and that can be used to identify specific
338  parts of the document. Anchors are generated both in HTML and XSL-FO
339  content (but the latter will only be used for PDF output when the XSL-FO
340  engine supports producing PDF anchors).
341</t>
342<texttable>
343<preamble>The following anchors get auto-generated:</preamble>
344<ttcol>Anchor name</ttcol><ttcol>Description</ttcol>
345
346  <c>rfc.abstract <iref item="rfc.abstract anchor"/><iref item="Anchors" subitem="rfc.abstract"/></c><c>Abstract</c>
347  <c>rfc.authors <iref item="rfc.authors anchor"/><iref item="Anchors" subitem="rfc.authors"/></c><c>Authors section</c>
348  <c>rfc.copyright <iref item="rfc.copyright anchor"/><iref item="Anchors" subitem="rfc.copyright"/></c><c>Copyright section</c>
349  <c>rfc.copyrightnotice <iref item="rfc.copyrightnotice anchor"/><iref item="Anchors" subitem="rfc.copyrightnotice"/></c><c>Copyright notice</c>
350  <c>rfc.figure.<spanx>n</spanx> <iref item="rfc.figure.n anchor"/><iref item="Anchors" subitem="rfc.figure.n"/></c><c>Figures (titled)</c>
351  <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>
352  <c>rfc.index <iref item="rfc.index anchor"/><iref item="Anchors" subitem="rfc.index"/></c><c>Index</c>
353  <c>rfc.ipr <iref item="rfc.ipr anchor"/><iref item="Anchors" subitem="rfc.ipr"/></c><c>Intellectual Property</c>
354  <c>rfc.iref.<spanx>n</spanx> <iref item="rfc.iref.n anchor"/><iref item="Anchors" subitem="rfc.iref.n"/></c><c>Internal references</c>
355  <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>
356  <c>rfc.references <iref item="rfc.references anchor"/><iref item="Anchors" subitem="rfc.references"/></c><c>References</c>
357  <c>rfc.references.<spanx>n</spanx> <iref item="rfc.references.n anchor"/><iref item="Anchors" subitem="rfc.references"/></c><c>Additional references</c>
358  <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>
359  <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>
360  <c>rfc.status <iref item="rfc.status anchor"/><iref item="Anchors" subitem="rfc.status"/></c><c>Status of memo</c>
361  <c>rfc.table.<spanx>n</spanx> <iref item="rfc.figure.n anchor"/><iref item="Anchors" subitem="rfc.figure.n"/></c><c>Tables (titled)</c>
362  <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>
363  <c>rfc.toc <iref item="rfc.toc anchor"/><iref item="Anchors" subitem="rfc.toc"/></c><c>Table of contents</c>
364  <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>
365
366</texttable>
367</section>
368
369<section title="Supported XSLT engines" anchor="xslt.engines">
370<t>
371  The transformation requires a non-standard extension function (see <eref target="http://www.exslt.org/exsl/functions/node-set/exsl.node-set.html">
372  exsl:node-set</eref>)
373  which is however widely available. XSLT processors that do not support this
374  extension (or a functional equivalent) currently are not supported.
375</t>
376<section title="Standalone Engines">
377<t>
378  The following XSLT engines are believed to work well:
379  <list style="symbols">
380    <t>Windows: <iref item="MSXML3"/><iref item="MSXML4"/>MSXML3 and MSXML4 (<eref target="http://msdn.microsoft.com/xml"/>;
381      command line processor "msxsl" is available from <eref target="http://www.microsoft.com/downloads/details.aspx?FamilyID=2FB55371-C94E-4373-B0E9-DB4816552E41">Microsoft Download Center</eref>)</t>
382    <t>Java: <iref item="Saxon"/>Saxon (<eref target="http://saxon.sourceforge.net/"/>)</t>
383    <t>Java: <iref item="Xalan"/>Xalan (<eref target="http://xml.apache.org/xalan-j/"/>)</t>
384    <t>C/C++: <iref item="xsltproc"/>xsltproc (libxslt) (<eref target="http://xmlsoft.org/XSLT/"/>, make sure that you
385    have a current version)</t>
386  </list>
387</t>
388</section>
389
390<section title="In-Browser Engines" anchor="xslt.engines.browser">
391<t>
392  The following browsers seem to work fine:
393  <list style="symbols">
394    <x:lt>
395      <t><iref item="Internet Explorer 5.5"/>Internet Explorer 5.5 (Windows version, if MSXML3 is installed)</t>
396    </x:lt>
397    <x:lt>
398      <t><iref item="Internet Explorer 6"/><iref item="Internet Explorer 7"/><iref item="Internet Explorer 8"/>Internet Explorer 6 and newer</t>
399    </x:lt>
400    <x:lt>
401      <t anchor="firefox3"><iref item="Mozilla"/><iref item="Firefox" subitem="3.*"/>Firefox 3.0 and newer</t>
402      <t>
403        <list style="symbols">
404          <t>Be aware that XSLT execution can be suppressed using <iref item="NoScript"/><eref target="https://addons.mozilla.org/de/firefox/addon/722">NoScript</eref></t>
405          <t>Firefox does not load external DTDs nor external entities,
406          see <eref target="https://bugzilla.mozilla.org/show_bug.cgi?id=22942">Mozilla Bug 22942</eref>, thus entities
407          like &amp;nbsp; need to be declared in the internal subset (<xref target="examples.internalsubset"/>)</t>
408        </list>
409      </t>
410    </x:lt>
411    <x:lt>
412      <t><iref item="Safari"/><iref item="Safari" subitem="3.*"/>Safari 3 (starting with version 3.0.4)</t>
413    </x:lt>
414    <x:lt>
415      <t><iref item="Google Chrome"/>Google Chrome (beta available)</t>
416    </x:lt>
417    <x:lt>
418      <t><iref item="Opera"/>Opera 10 (beta version available)</t>
419    </x:lt>
420  </list>
421</t>
422<t>
423  The following browsers are known not to work properly:
424  <list style="symbols">
425    <x:lt>
426      <t anchor="firefox12"><iref item="Mozilla"/><iref item="Firefox" subitem="1.*/2.*"/>Firefox 1.*/2.*: (missing extension function - see change request at Mozilla BugZilla
427      <eref target="http://bugzilla.mozilla.org/show_bug.cgi?id=193678">193678</eref>)</t>
428    </x:lt>
429    <x:lt>
430      <t anchor="opera"><iref item="Opera"/>Opera 9.21: execution fails, potentially
431      to a somewhat complex XPath expression (reported to Opera as bug 245725).</t>
432    </x:lt>
433    <x:lt>
434      <t>Opera 9.5 and 9.6:
435      transformation appears to work, but CSS isn't getting applied (reported to Opera as bug 337388 on 2008-06-12).</t>
436    </x:lt>
437    <x:lt>
438      <t anchor="safari"><iref item="Safari"/>Safari 2.* supports client-side XSLT as of MacOS X 10.4,
439      but misses required extension functions. A problem
440      with stylesheets producing non-ASCII output (such as NBSP characters)
441      has been fixed as of OSX 10.4.4. Both
442      problems have been reported through Apple's bug tracking system, see
443      <eref target="http://drakken.dbc.mtview.ca.us/pipermail/xml2rfc/2005-May/002073.html"/> and
444      <eref target="http://bugs.webkit.org/show_bug.cgi?id=4079"/>.
445      </t>
446    </x:lt>
447  </list>
448</t>
449</section>
450
451</section>
452
453<section title="Transforming to HTML" anchor="output.html">
454<t>
455  Transformation to HTML can be done inside the browser if it supports
456  XSLT. To enable this, add the following processing instruction to
457  the start of the source file:
458</t>
459<iref item="xml-stylesheet PI"/>
460<figure><artwork type="example">
461  &lt;?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
462</artwork></figure>
463<t>
464  (and ensure that <spanx style="verb">rfc2629.xslt</spanx> is present).
465</t>
466
467<section title="HTML compliance">
468<t>
469  The transformation result is supposed to conform to the HTML 4.01 strict
470  DTD <xref target="HTML"/>. This can be checked using the W3C's online
471  validator at <eref target="http://validator.w3.org" /><iref item="HTML compliance"/>.
472</t>
473</section>
474
475<section title="Standard HTML LINK elements" anchor="html.link">
476<t>
477  LINK elements exist since HTML 2.0. They can be used to embed content-independant
478  links inside the document. Unfortunately, only few user agents
479  support this element. Firefox users may want to check the
480  <eref target="https://addons.mozilla.org/firefox/2933/">Link Widgets</eref>
481  extension.
482</t>
483<texttable>
484<preamble>The following LINK elements are produced:</preamble>
485
486  <ttcol>LINK type</ttcol>
487  <ttcol>description</ttcol>
488 
489  <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>
490  <c>appendic<iref item="appendix HTML LINK element"/><iref item="HTML LINK elements" subitem="appendix"/></c><c>pointer to all top-level appendics</c>
491  <c>author<iref item="author HTML LINK element"/><iref item="HTML LINK elements" subitem="author"/></c><c>pointer to "authors" section</c>
492  <c>chapter<iref item="chapter HTML LINK element"/><iref item="HTML LINK elements" subitem="chapter"/></c><c>pointer to all top-level sections</c>
493  <c>contents<iref item="contents HTML LINK element"/><iref item="HTML LINK elements" subitem="contents"/></c><c>pointer to table of contents</c>
494  <c>copyright<iref item="copyright HTML LINK element"/><iref item="HTML LINK elements" subitem="copyright"/></c><c>pointer to copyright statement</c>
495  <c>index<iref item="index HTML LINK element"/><iref item="HTML LINK elements" subitem="index"/></c><c>pointer to index</c>
496
497</texttable>
498<figure>
499<preamble>
500The figure below shows how Mozilla Firefox 1.0 displays the Site Navigation Bar
501for rfc2396.xml.
502</preamble>
503<artwork src="rfc2629xslt-fig1.png" height="235" width="509" type="image/png">
504(LINK elements displayed in Mozilla Firefox for RFC2396.xml)
505</artwork>
506</figure>
507
508</section>
509
510
511<section title="Standard HTML metadata">
512<texttable>
513<preamble>The following standard HTML META elements are produced:</preamble>
514
515  <ttcol>META name</ttcol>
516  <ttcol>description</ttcol>
517 
518  <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>
519  <c>keywords<iref item="keywords HTML META element"/><iref item="HTML META elements" subitem="keywords"/></c><c>from keyword elements in front section</c>
520
521</texttable>
522</section>
523
524
525<section title="Dublin Core (RFC2731) metadata" anchor="rfc2731.properties">
526<t>
527  Unless turned off using the "rfc-ext support-rfc2731" processing
528  instruction, the transformation will generate metadata according to
529  <xref target="RFC2731"/> and <xref target="DC-HTML"/>.
530</t>
531<texttable>
532<preamble>The following DCMI properties are produced:</preamble>
533
534  <ttcol>META name</ttcol>
535  <ttcol>description</ttcol>
536 
537  <c>DC.Creator<iref item="Creator DCMI property"/><iref item="DCMI properties" subitem="Creator"/></c><c>from author information in front section</c>
538  <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>
539  <c>DC.Description.Abstract<iref item="Description.Abstract DCMI property"/><iref item="DCMI properties" subitem="Description.Abstract"/></c><c>from abstract</c>
540  <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>
541  <c>DC.isPartOf<iref item="isPartOf DCMI property"/><iref item="DCMI properties" subitem="isPartOf"/></c><c>RFC ISSN (for RFCs)</c>
542  <c>DC.Relation.Replaces<iref item="Relation.Replaces DCMI property"/><iref item="DCMI properties" subitem="Relation.Replaces"/></c><c>from "obsoletes" attribute</c>
543
544</texttable>
545</section>
546
547<section title="Experimental hCard support" anchor="hcard">
548<t>
549  The generated author information is formatted in <eref target="http://microformats.org/wiki/hcard">hCard</eref>
550  format.
551</t>
552</section>
553
554
555</section>
556
557<section title="Transforming to XHTML" anchor="output.xhtml">
558<t>
559  Transforming to XHTML requires slightly different XSLT output options and
560  is implemented by the derived transformation script <spanx style="verb">rfc2629toXHTML.xslt</spanx>.
561</t>
562<t><list><t>
563  <x:h>Note:</x:h> Microsoft Internet Explorer does <spanx>not</spanx> support XHTML.
564  Therefore it usually makes more sense to generate plain old HTML.
565</t></list></t>
566</section>
567
568<section title="Transforming to CHM (Microsoft Compiled Help)" anchor="output.chm">
569<t>
570  <iref item="CHM format"/>
571  <iref item="Microsoft Help"/>
572  To generate a CHM file using Microsoft's HTML Help Compiler (hhc), three
573  files are required in addition to the HTML file.
574  <list style="numbers">
575    <t>hhc - table of contents file (HTML)</t>
576    <t>hhk - index file (HTML)</t>
577    <t>hhp - project file (plain text)</t>
578  </list> 
579</t>
580<t>
581  The three files are generated with three specific transformations, each
582  requiring the additional XSLT parameter "basename" to specify the filename
583  prefix.
584</t>
585<figure>
586<preamble>Example:</preamble>
587<artwork type="example">
588saxon rfc2616.xml rfc2629toHhp.xslt basename=rfc2616  > rfc2616.hhp
589saxon rfc2616.xml rfc2629toHhc.xslt basename=rfc2616  > rfc2616.hhc
590saxon rfc2616.xml rfc2629toHhk.xslt basename=rfc2616  > rfc2616.hhk
591hhc rfc2616.hhp
592</artwork>
593</figure>
594</section>
595
596<section title="Transforming to PDF" anchor="output.pdf">
597
598<section title="Via XSL-FO" anchor="output.pdf.fop">
599<t>
600  Transformation to XSL-FO <xref target="XSL-FO"/> format is available through
601  <spanx style="verb">rfc2629toFO.xslt</spanx> (which includes <spanx style="verb">rfc2629.xslt</spanx>, so keep both in the
602  same folder).
603</t>
604<t>
605  Compared to HTML user agents, XSL-FO engines unfortunately either come
606  as open source (for instance, <iref item="Apache FOP"/>Apache FOP) or
607  feature-complete (for instance, <iref item="AntennaHouse XSL Formatter"/>
608  AntennaHouse XSL Formatter), but not both at the same time.
609</t>
610<t>
611  As Apache FOP needs special workarounds (page breaking, table layout), and
612  some popular extensions aren't standardized yet, the translation produces
613  a generic output (hopefully) conforming to <xref target="XSL-FO"/>.
614  Specific backends (<spanx style="verb">xsl11toFop-0.95xslt</spanx>,
615  <spanx style="verb">xsl11toXep.xslt</spanx>, <spanx style="verb">xsl11toAn.xslt</spanx>)
616  then provide post-processing for the individual processors.
617</t>
618<x:note>
619  <t>
620    <x:h>Note:</x:h>
621    the output is currently targeted at Apache FOP 0.95.
622  </t>
623</x:note>
624
625<section title="Extension feature matrix">
626<texttable>
627  <ttcol/>
628  <ttcol align="center" width="20%">PDF anchors</ttcol>
629  <ttcol align="center" width="20%">PDF bookmarks</ttcol>
630  <ttcol align="center" width="20%">PDF document information</ttcol>
631  <ttcol align="center" width="20%">Index cleanup</ttcol>
632 
633  <c><eref target="http://www.w3.org/TR/2003/WD-xsl11-20031217/">XSL 1.1 WD</eref></c>
634  <c>no, but can be auto-generated from "id" attributes</c> 
635  <c><eref target="http://www.w3.org/TR/2003/WD-xsl11-20031217/#d0e12873">yes</eref></c>
636  <c>no, but uses XEP output extensions</c>
637  <c><eref target="http://www.w3.org/TR/2003/WD-xsl11-20031217/#d0e12534">yes</eref></c>
638
639  <c><eref target="http://www.antennahouse.com/">Antenna House XSL formatter</eref></c>
640  <c>no</c>
641  <c><eref target="http://www.antennahouse.com/XSL20/axf-extension.htm">yes</eref> (from XSL 1.1 bookmarks)</c>
642  <c><eref target="http://www.antennahouse.com/XSL20/axf-extension.htm">yes</eref> (from XEP document info)</c>
643  <c><eref target="http://www.antennahouse.com/XSL20/axf-extension.htm">yes</eref> (just page duplicate elimination, from XSL 1.1 page index)</c>
644
645  <c><eref target="http://xml.apache.org/fop/">Apache FOP</eref></c>
646  <c><eref target="http://xml.apache.org/fop/extensions.html#named-destinations">yes</eref></c>
647  <c><eref target="http://xml.apache.org/fop/extensions.html#bookmarks">yes</eref> (from XSL 1.1 bookmarks)</c>
648  <c><eref target="http://xmlgraphics.apache.org/fop/0.95/metadata.html#xmp-in-fo">yes</eref></c>
649  <c>no</c>
650
651  <c><eref target="http://xep.xattic.com/">RenderX XEP</eref></c>
652  <c>no</c>
653  <c><eref target="http://xep.xattic.com/xep/spec.html">yes</eref> (from XSL 1.1 bookmarks)</c>
654  <c><eref target="http://xep.xattic.com/xep/spec.html">yes</eref></c>
655  <c><eref target="http://xep.xattic.com/xep/spec.html">yes</eref> (from XSL 1.1 page index)</c>
656
657</texttable>
658</section>
659
660<section title="Example: producing output for Apache FOP">
661<figure>
662<preamble>Example:</preamble>
663<artwork type="example">
664saxon rfc2616.xml rfc2629toFo.xslt > tmp.fo
665saxon tmp.fo xsl11toFop-0.95.xslt > rfc2629.fo
666</artwork>
667</figure>
668</section>
669</section>
670
671<section title="Via X(HTML)" anchor="output.pdf.html">
672<t>
673  PDF output can also be produced directly from (X)HTML. One simple approach
674  is to rely on the browser's printing function, and to use a printer driver
675  that produces PDF. Depending on the brower's CSS capabilities, the output
676  will behave properly with respect to table breaks etc.
677</t>
678<t>
679  An alternative is PrinceXML (see <eref target="http://www.princexml.com/"/>),
680  which can produce PDF directly from (X)HTML input, based on the CSS printing
681  information.
682</t>
683<figure>
684  <preamble>
685    For instance, PDF output with text justification turned on can be
686    produced with:
687  </preamble>
688  <artwork type="example">
689saxon input.xml rfc2629toXHTML.xslt xml2rfc-ext-justification=print \
690  > output.xhtml
691prince output.xhtml output.pdf</artwork>
692</figure>
693</section>
694
695</section>
696
697<section title="Generic Extensions" anchor="extensions">
698<t>
699  This section documents extensions implemented in
700  <spanx style="verb">rfc2629.xslt</spanx>, using the extension
701  namespace "http://purl.org/net/xml2rfc/ext".
702</t>
703
704<section title="&lt;abnf-char-sequence> element" anchor="ext.element.abnf-char-sequence">
705  <iref item="Extension Elements" subitem="abnf-char-sequence" primary="true"/>
706  <iref item="abnf-char-sequence Extension Element" primary="true"/>
707  <x:anchor-alias value="abnf-char-sequence"/>
708  <t>
709    Converts the contained quoted string into a hex-encoded character
710    sequence, for use in case-sensitive ABNF productions.
711  </t>
712  <t>
713    For instance, "&lt;x:abnf-char-sequence>"HTTP"&lt;/x:abnf-char-sequence>"
714    gets converted to "<x:abnf-char-sequence>"HTTP"</x:abnf-char-sequence>".
715  </t>
716</section>
717
718<section title="&lt;anchor-alias> element" anchor="ext.element.anchor-alias">
719  <iref item="Extension Elements" subitem="anchor-alias" primary="true"/>
720  <iref item="anchor-alias Extension Element" primary="true"/>
721  <x:anchor-alias value="anchor-alias"/>
722  <t>
723    Using its "value" attribute, this element allows the definition of an
724    internal link target alias for the enclosing element. This alias can
725    then be used with the &lt;<x:ref>ref</x:ref>> element for intra-document
726    references.
727  </t>
728  <t>
729    Note that the anchor alias is not subject to the naming constraints that
730    apply to anchor elements (which are <eref target="http://www.w3.org/TR/REC-xml/#NT-Name">XML
731    names</eref>).
732  </t>
733</section>
734
735<!--<section title="&lt;include-author> element" anchor="ext.element.include-author">
736  <iref item="Extension Elements" subitem="include-author" primary="true"/>
737  <iref item="include-author Extension Element" primary="true"/>
738  <x:anchor-alias value="include-author"/>
739  <t>
740    This element can be used to include an author's contact information in
741    place where a paragraphj (&lt;t>) would be allowed otherwise.
742  </t>
743</section> -->
744
745<section title="&lt;bcp14> element" anchor="ext.element.bcp14">
746  <iref item="Extension Elements" subitem="bcp14" primary="true"/>
747  <iref item="bcp14 Extension Element" primary="true"/>
748  <x:anchor-alias value="bcp14"/>
749  <t>
750    This element marks the content as being one of the normative keywords
751    defined in <xref target="RFC2119"/>.
752  </t>
753  <figure>
754    <preamble>
755      The DOCTYPE definition below allows using these keywords using XML
756      entity expansion: such as in "...server &amp;MUST; accept...".
757    </preamble>
758    <artwork type="example">
759&lt;!DOCTYPE rfc [
760 &lt;!ENTITY MAY "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
761   >MAY&lt;/bcp14>">
762 &lt;!ENTITY MUST "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
763   >MUST&lt;/bcp14>">
764 &lt;!ENTITY MUST-NOT "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
765   >MUST NOT&lt;/bcp14>">
766 &lt;!ENTITY OPTIONAL "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
767   >OPTIONAL&lt;/bcp14>">
768 &lt;!ENTITY RECOMMENDED "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
769   >RECOMMENDED&lt;/bcp14>">
770 &lt;!ENTITY REQUIRED "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
771   >REQUIRED&lt;/bcp14>">
772 &lt;!ENTITY SHALL "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
773   >SHALL&lt;/bcp14>">
774 &lt;!ENTITY SHALL-NOT "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
775   >SHALL NOT&lt;/bcp14>">
776 &lt;!ENTITY SHOULD "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
777   >SHOULD&lt;/bcp14>">
778 &lt;!ENTITY SHOULD-NOT "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'
779   >SHOULD NOT&lt;/bcp14>">]></artwork>
780  </figure>
781</section>
782
783<section title="&lt;bb> element" anchor="ext.element.bb">
784  <iref item="Extension Elements" subitem="bb" primary="true"/>
785  <iref item="bb Extension Element" primary="true"/>
786  <x:anchor-alias value="bb"/>
787  <t>
788    Marking up a string as &lt;bb> indicates that it represents the bottom
789    line of a box drawing, replacing the "+" and "-" characters accordingly.
790  </t>
791</section>
792
793<section title="&lt;bc> element" anchor="ext.element.bc">
794  <iref item="Extension Elements" subitem="bc" primary="true"/>
795  <iref item="bc Extension Element" primary="true"/>
796  <x:anchor-alias value="bc"/>
797  <t>
798    Marking up a string as &lt;bc> indicates that it represents a center
799    line of a box drawing, replacing the "|" character accordingly.
800  </t>
801</section>
802
803<section title="&lt;blockquote> element" anchor="ext.element.blockquote">
804  <iref item="Extension Elements" subitem="blockquote" primary="true"/>
805  <iref item="blockquote Extension Element" primary="true"/>
806  <x:anchor-alias value="blockquote"/>
807  <t>
808    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"/> 
809    (note this is a block-level element!). It should contain one or more
810    &lt;t> child elements.
811  </t>
812</section>
813
814<section title="&lt;boilerplate> element" anchor="ext.element.boilerplate">
815  <iref item="Extension Elements" subitem="boilerplate" primary="true"/>
816  <iref item="boilerplate Extension Element" primary="true"/>
817  <x:anchor-alias value="boilerplate"/>
818  <t>
819    Can be used to include boilerplate (status, copyright, ...) into the
820    front or back section. &lt;section> elements within &lt;x:boilerplate>
821    appear as unnumbered sections in the output.
822  </t>
823  <t>
824    <spanx>This element currently can not be "down-translated" for use
825    in xml2rfc!</spanx>
826  </t>
827</section>
828
829<section title="&lt;bt> element" anchor="ext.element.bt">
830  <iref item="Extension Elements" subitem="bt" primary="true"/>
831  <iref item="bt Extension Element" primary="true"/>
832  <x:anchor-alias value="bt"/>
833  <t>
834    Marking up a string as &lt;bt> indicates that it represents the top
835    line of a box drawing, replacing the "+" and "-" characters accordingly.
836  </t>
837</section>
838
839<section title="&lt;dfn> element" anchor="ext.element.dfn">
840  <iref item="Extension Elements" subitem="dfn" primary="true"/>
841  <iref item="dfn Extension Element" primary="true"/>
842  <x:anchor-alias value="dfn"/>
843  <t>
844    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"/>.
845  </t>
846</section>
847
848<section title="&lt;h> element" anchor="ext.element.h">
849  <iref item="Extension Elements" subitem="h" primary="true"/>
850  <iref item="h Extension Element" primary="true"/>
851  <x:anchor-alias value="h"/>
852  <t>
853    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"/>.
854  </t>
855</section>
856
857<section title="&lt;highlight> element" anchor="ext.element.highlight">
858  <iref item="Extension Elements" subitem="highlight" primary="true"/>
859  <iref item="highlight Extension Element" primary="true"/>
860  <x:anchor-alias value="highlight"/>
861  <t>
862    Used to highlight text passages, currently only allowed in &lt;artwork>.
863  </t>
864  <t>
865    <x:h>Note:</x:h> this is stripped when generating input for xml2rfc,
866    so please use with care.
867  </t>
868</section>
869
870<section title="&lt;length-of> element" anchor="ext.element.length-of">
871  <iref item="Extension Elements" subitem="length-of" primary="true"/>
872  <iref item="length-of Extension Element" primary="true"/>
873  <x:anchor-alias value="length-of"/>
874  <t>
875    This element can be used to insert the length of another formatted
876    section (in decimal).
877  </t>
878  <figure>
879    <preamble>Example: computing the Content-Length header value</preamble>
880    <artwork type="example">
881&lt;artwork>
882...
883Content-Length: &lt;x:length-of target="req"/>
884 
885&lt;x:span anchor="req">123456789
886&lt;x:span>&lt;artwork/>
887</artwork>
888  </figure>
889  <t>
890    The lenght computation counts line ends as two characters (CRLF).
891  </t>
892  <t>
893    Note that indentation characters in artwork <spanx>will</spanx> be
894    counted. The "indented" attribute allows to specify the amount of
895    indentation to be substracted from the computed length.
896  </t>
897</section>
898
899<section title="&lt;link> element" anchor="ext.element.link">
900  <iref item="Extension Elements" subitem="link" primary="true"/>
901  <iref item="link Extension Element" primary="true"/>
902  <x:anchor-alias value="link"/>
903  <t>
904    This element can be added as a top-level child element below
905    &lt;rfc> to indicate additional link information. It's currently
906    used only when generating HTML output, in which case an HTML
907    <eref target="http://www.w3.org/TR/html4/struct/links.html#edef-LINK">&lt;link></eref> element with identical attributes gets generated.
908  </t>
909  <figure>
910    <preamble>Example: generating HTML link element</preamble>
911    <artwork type="example">
912        &lt;x:link xmlns="http://purl.org/net/xml2rfc/ext"
913            rel="Bookmark"
914            title="IETF WEBDAV Working Group"
915            href="http://ftp.ics.uci.edu/pub/ietf/webdav/"/></artwork>
916  </figure>
917</section>
918
919<section title="&lt;lt> element" anchor="ext.element.lt">
920  <iref item="Extension Elements" subitem="lt" primary="true"/>
921  <iref item="lt Extension Element" primary="true"/>
922  <x:anchor-alias value="lt"/>
923  <t>
924    Used for grouping multiple &lt;t&gt; elements into a single list item.
925  </t>
926</section>
927
928<section title="&lt;note> element" anchor="ext.element.note">
929  <iref item="Extension Elements" subitem="note" primary="true"/>
930  <iref item="note Extension Element" primary="true"/>
931  <x:anchor-alias value="note"/>
932  <t>
933    Can be used to add a note, usually indented by a few characters.
934    It should contain one or more &lt;t> child elements.
935  </t>
936</section>
937
938<section title="&lt;parse-xml> element" anchor="ext.element.parse-xml">
939  <iref item="Extension Elements" subitem="parse-xml" primary="true"/>
940  <iref item="parse-xml Extension Element" primary="true"/>
941  <x:anchor-alias value="parse-xml"/>
942  <t>
943    This element instructs the processor to parse the contents as XML and
944    to warn when there's a problem (requires either MSXML or Saxon8 or newer).
945  </t>
946</section>
947
948<section title="&lt;q> element" anchor="ext.element.q">
949  <iref item="Extension Elements" subitem="q" primary="true"/>
950  <iref item="q Extension Element" primary="true"/>
951  <x:anchor-alias value="q"/>
952  <t>
953    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"/>.
954  </t>
955</section>
956
957<section title="&lt;ref> element" anchor="ext.element.ref">
958  <iref item="Extension Elements" subitem="ref" primary="true"/>
959  <iref item="ref Extension Element" primary="true"/>
960  <x:anchor-alias value="ref"/>
961  <t>
962    This element is a simplified variant of the &lt;xref> element, in that
963    no "target" attribute needs to be specified, instead the text contents
964    acts as identifier.  That in itself wouldn't be terribly useful,
965    but together with the &lt;<x:ref>anchor-alias</x:ref>>, it allows
966    referring to other parts of the document with minimal additional markup.
967  </t>
968  <t>
969    For instance, given an alias definition such as
970  </t>
971  <figure>
972    <artwork type="example">
973      &lt;section title="Test" anchor="test">
974        &lt;x:anchor-alias value="alias1"/>
975        &lt;x:anchor-alias value="alias 2"/>
976        ...
977      &lt;/section></artwork>
978  </figure>
979  <t>
980    the following simple references
981  </t>
982  <figure>
983    <artwork type="example">
984      &lt;x:ref>test&lt;/x:ref>
985      &lt;x:ref>alias1&lt;/x:ref>
986      &lt;x:ref>alias 2&lt;/x:ref></artwork>
987  </figure>
988  <t>
989    are equivalent to...:
990  </t>
991  <figure>
992    <artwork type="example">
993      &lt;xref target="test">test&lt;/xref>
994      &lt;xref target="test">alias1&lt;/xref>
995      &lt;xref target="test">alias 2&lt;/xref></artwork>
996  </figure>
997</section>
998
999<section title="&lt;source> element" anchor="ext.element.source">
1000  <iref item="Extension Elements" subitem="source" primary="true"/>
1001  <iref item="source Extension Element" primary="true"/>
1002  <x:anchor-alias value="source"/>
1003  <t>
1004    Can be used to enhance a &lt;reference> with information about the
1005    location for the XML source. This can be used by the &lt;xref>
1006    processing code to automatically extract the target section number.
1007  </t>
1008  <figure>
1009    <preamble>
1010      For example:
1011    </preamble>
1012    <artwork type="example">
1013      ...
1014      &lt;xref target="RFC2616" x:fmt="of" x:rel="#PUT" />
1015      ...
1016   
1017      &lt;reference target="RFC2616"/>
1018        ...
1019        &lt;x:source href="rfc2616.xml"/>
1020        ...
1021    </artwork>
1022  </figure>
1023</section>
1024
1025<section title="&lt;sup> element" anchor="ext.element.sup">
1026  <iref item="Extension Elements" subitem="sup" primary="true"/>
1027  <iref item="sup Extension Element" primary="true"/>
1028  <x:anchor-alias value="sup"/>
1029  <t>
1030    This element is like the "<eref target="http://www.w3.org/TR/html401/struct/text.html#edef-SUP">sup</eref>" element in <xref target="HTML"/>.
1031  </t>
1032  <t>
1033    Note: the down conversion to RFC2629 format replaces
1034    "x<x:sup>y</x:sup>" by "x^y".
1035  </t>
1036</section>
1037
1038<section title="Extensions to Xml2rfc &lt;artwork&gt; element" anchor="ext-rfc2629.artwork">
1039<t>
1040  Sometimes, artwork occurs inside lists. To get it indent properly in xml2rfc's
1041  text output, it needs to be indented in the source. This is sub-optimal, as
1042  this whitespace will also appear in the HTML output, where it's already
1043  indented due to HTML's semantics.
1044</t>
1045<t>
1046  As a workaround, a "x:indent-with" attribute can be specified, containing
1047  a string that will be prepended to each line when <spanx style="verb">clean-for-DTD.xslt</spanx>
1048  is run (see <xref target="clean-for-dtd"/>).
1049</t>
1050</section>
1051
1052<section title="Extensions to Xml2rfc &lt;iref&gt; element" anchor="ext-rfc2629.iref">
1053<t>
1054  The extension attribute below is allowed on the standard &lt;iref&gt; element:
1055  <list style="symbols">
1056    <t>x:for-anchor specifies that the &lt;iref&gt; will also be automatically
1057    inserted whenever the specified anchor is cross-referenced -- this may
1058    save entering lots of &lt;iref&gt; instances. As a special case, a value of
1059    "" (empty string) refers to the anchor attribute of the closest ancestor.</t>
1060  </list>
1061</t>
1062</section>
1063
1064<section title="Extensions to Xml2rfc &lt;list&gt; element" anchor="ext-rfc2629.list">
1065<t>
1066  The extension attribute below is allowed on the standard &lt;list&gt; element:
1067  <list style="symbols">
1068    <t>x:indent specifies the amount of indentation for list items in hanging
1069    lists. This can be useful when the output format, such as XSL-FO, does not
1070    support automatical formatting. The value takes an XSL-FO width, such as "5em".
1071    The default is <spanx>length of longest label in characters</spanx> times
1072    <spanx>0.8em</spanx>.</t>
1073  </list>
1074</t>
1075<t>
1076  Also, the &lt;list&gt; element can take &lt;x:<x:ref>lt</x:ref>&gt; child elements instead of
1077  &lt;t&gt;, allowing to insert multiple paragraphs into a single list item.
1078</t>
1079</section>
1080
1081<section title="Extensions to Xml2rfc &lt;rfc&gt; element" anchor="ext-rfc2629.rfc">
1082<t>
1083  The extension attributes below are allowed on the standard &lt;rfc&gt; element:
1084  <list style="symbols">
1085    <t>grddl:transformation can be used to reference a GRDDL transform.</t>
1086    <t>x:maturiy-level can be used to specify the IETF Standards Track
1087    Maturity Level of "proposed", "draft" or "internet" (see <xref target="RFC2026" x:fmt="of" x:sec="4.1"/>).</t>
1088  </list>
1089</t>
1090</section>
1091
1092<section title="Extensions to Xml2rfc &lt;section&gt; element" anchor="ext-rfc2629.section">
1093<t>
1094  The extension attribute below is allowed on the standard &lt;list&gt; element:
1095  <list style="symbols">
1096    <t>x:fixed-section-number can be used to specify a fixed section number.
1097    This can be useful when formatting historic documents that used a different
1098    numbering style.</t>
1099  </list>
1100</t>
1101</section>
1102
1103<section title="Extensions to Xml2rfc &lt;xref&gt; element" anchor="ext-rfc2629.xref">
1104<t>
1105  Three extension attributes are allowed on the standard &lt;xref&gt; element:
1106  <list style="numbers">
1107    <t>x:sec can be specified to point to a specific section of the referenced document,</t>
1108    <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>
1109    <t>x:fmt defines the text format to be used.</t>
1110  </list>
1111</t>
1112<t>
1113  The following formats are defined for the x:fmt attribute:
1114  <list style="hanging">
1115    <t hangText=", (Comma)">
1116      [<spanx>reference</spanx>], Section <spanx>sec</spanx>
1117    </t>
1118    <t hangText="()">
1119      [<spanx>reference</spanx>] (Section <spanx>sec</spanx>)
1120    </t>
1121    <t hangText="anchor">
1122      Like the default format, but without brackets.
1123    </t>
1124    <t hangText="of">
1125      Section <spanx>sec</spanx> of [<spanx>reference</spanx>]
1126    </t>
1127    <t hangText="number">
1128      <spanx>sec</spanx>
1129    </t>
1130    <t hangText="none">
1131      No output (can be used to have xrefs to references without
1132      having them rendered as such)
1133    </t>
1134    <t hangText="sec">
1135      Section <spanx>sec</spanx>
1136    </t>
1137  </list>
1138</t>
1139<t>
1140  These extensions are currently only supported for &lt;xref&gt; elements without
1141  child nodes.
1142</t>
1143<t>
1144  If the processor knows how to reference the target section, it will generate
1145  a link directly to the target section, such as in <xref target="RFC2119" x:fmt="," x:sec="5"/>.
1146</t>
1147</section>
1148
1149</section>
1150
1151<section title="Utilities" anchor="utilities">
1152
1153<section title="Checking References" anchor="checking-references">
1154<t>
1155  <spanx style="verb">check-references.xslt</spanx> can be used to check
1156  all references to RFC- and ID-series IETF publications and to W3C publications (note
1157  this script requires local copies of
1158  <eref target="ftp://ftp.isi.edu/in-notes/rfc-index.xml"/> and
1159  <eref target="http://www.w3.org/2002/01/tr-automation/tr.rdf"/> and
1160  will use the XML status information provided at <eref target="http://tools.ietf.org/"/>).
1161</t>
1162<t>
1163  If the document is supposed to be published on the IETF standards track,
1164  the desired level can be specified using the parameter <spanx style='verb'>intended-level</spanx>
1165  as 'proposed', 'draft' or 'internet'. Alternatively, it can be specified
1166  inside the document using the attribute x:maturity-level on the &lt;rfc> element.
1167</t>
1168<t>
1169  <x:h>Note:</x:h> Downward references should be
1170  annotated using the &lt;annotate> element, containing an &lt;xref> to
1171  <xref target="BCP97"/>.
1172</t>
1173<t>
1174  When an XSLT 2.0 processor is used, links in the document can be checked as well
1175  using the <spanx style='verb'>link-check</spanx> paramerer ('yes' or 'no').
1176  Note that this only works for http links to documents of tytpe text/*.
1177</t>
1178<figure>
1179<preamble>
1180For instance, as of 2008-07-12, the script produces for <eref target="http://greenbytes.de/tech/webdav/rfc2518.xml"/>:
1181</preamble>
1182<artwork type="example">
1183> saxon rfc2518.xml check-references.xslt intended-status=PROPOSED \
1184  link-check=yes
1185
1186Normative References:
1187ISO-11578: not checked
1188ISO-639: not checked
1189ISO-8601: not checked
1190REC-xml-19980210: [FirstEdition] obsoleted by REC-xml-20001006
1191REC-xml-names-19990114: [FirstEdition] obsoleted by
1192 REC-xml-names-20060816
1193RFC1766: [PROPOSED STANDARD] obsoleted by RFC3066 RFC3282
1194RFC2068: [PROPOSED STANDARD] obsoleted by RFC2616
1195RFC2069: [PROPOSED STANDARD] obsoleted by RFC2617
1196RFC2119: [BEST CURRENT PRACTICE] (-> BCP0014) ok
1197RFC2141: [PROPOSED STANDARD] ok
1198RFC2277: [BEST CURRENT PRACTICE] (-> BCP0018) ok
1199RFC2396: [DRAFT STANDARD] obsoleted by RFC3986
1200RFC2279: [DRAFT STANDARD] obsoleted by RFC3629
1201
1202Informational References:
1203REC-PICS-labels-961031: [REC] ok
1204RFC1807: [INFORMATIONAL] ok
1205RFC2026: [BEST CURRENT PRACTICE] (-> BCP0009) ok
1206RFC2291: [INFORMATIONAL] ok
1207RFC2376: [INFORMATIONAL] obsoleted by RFC3023
1208RFC2413: [INFORMATIONAL] obsoleted by RFC5013
1209USMARC: not checked
1210WF: not checked
1211
1212Link Targets
1213&lt;http://www.w3.org/TR/1998/REC-xml-19980210>: ok
1214&lt;http://www.w3.org/TR/1999/REC-xml-names-19990114>: ok
1215&lt;http://www.dlib.org/dlib/july96/lagoze/07lagoze.html>: ok
1216&lt;http://www.w3.org/pub/WWW/TR/REC-PICS-labels-961031.html>: ok
1217</artwork></figure>
1218<t>
1219  Recognized formats in the &lt;seriesInfo> element are:
1220  <list style="symbols">
1221    <t>for RFCs, the name attribute must be "RFC", and the value attribute must
1222    be the number of the RFC,</t>
1223    <t>for Internet Drafs, the name attribute must be "ID" or "Internet-Draft", and the value attribute must
1224    be the file name of the draft (including the two-digit running number, but excluding a file extension),</t>
1225    <t>for W3C documents, the name attribute must be "W3C", must start with "W3C&#160;", or
1226    must start with "World Wide Web Consortium&#160;", and the value attribute
1227    must be the "shorthand" name of the specification, such as "REC-xml-19980210".</t>
1228  </list>
1229</t>
1230
1231</section>
1232
1233<section title="Generating Graphs from References">
1234<t>
1235  <spanx style="verb">gen-reference-graph.xslt</spanx> generates a graph
1236  of RFC dependencies, using the same base data as in <spanx style="verb">check-references.xslt</spanx>
1237  (see <xref target="checking-references"/>). Its output is a "dot" file,
1238  to be processed by GraphViz (see <eref target="http://www.graphviz.org/"/>).
1239</t>
1240<figure>
1241<preamble>
1242The picture below shows the RFC dependencies in RFC2629.
1243</preamble>
1244<artwork src="rfc2629xslt-fig2.png" type="image/png">
1245(PNG output obtained from GraphViz)
1246</artwork>
1247</figure>
1248</section>
1249
1250<section title="Producing reference entries for books">
1251<t>
1252  <spanx style="verb">amazon-asin.xslt</spanx> uses the Amazon web services
1253  to generate a &lt;reference> element for a given ASIN (ISBN).
1254</t>
1255<figure>
1256<preamble>For instance:</preamble>
1257<artwork type="example">
1258&lt;?xml version="1.0" encoding="utf-8"?>
1259&lt;references>
1260 &lt;reference target="urn:isbn:0134516591">
1261   &lt;front>
1262     &lt;title>Simple Book, The: An Introduction to Internet Management,
1263               Revised Second Edition&lt;/title>
1264     &lt;author surname="Rose"
1265                fullname="Marshall T. Rose" initials="M. T. ">
1266       &lt;organization/>
1267     &lt;/author>
1268     &lt;author surname="Marshall"
1269                fullname="Rose T. Marshall" initials="R. T.">
1270       &lt;organization/>
1271     &lt;/author>
1272     &lt;date year="1996" month="March"/>
1273   &lt;/front>
1274   &lt;seriesInfo name="Prentice Hall" value=""/>
1275 &lt;/reference>
1276&lt;/references>
1277</artwork></figure>
1278<t>
1279  Note that the resulting XML usually requires checking, in this case Amazon's
1280  database is playing tricks with Marshall's name...
1281</t>
1282</section>
1283
1284<section title="Down-converting to RFC2629bis DTD" anchor="clean-for-dtd">
1285<t>
1286  <spanx style="verb">clean-for-DTD.xslt</spanx> can be used to down-convert
1287  some extensions to a format that is supported by the base xml2rfc
1288  distribution.  Note that these extensions are experimental (feedback
1289  appreciated).
1290</t>
1291<t>
1292  The following mappings are done:
1293  <list style="symbols">
1294    <t>
1295      &lt;iref> elements inside &lt;artwork> elements are moved in front
1296      of the enclosing &lt;figure> element.
1297    </t>
1298    <t>
1299      &lt;xref> elements inside &lt;artwork> are expanded just like in
1300      regular text (that is, the markup is stripped, but the element
1301      is replaced by the applicable replacement text).
1302    </t>
1303    <t>
1304      &lt;x:<x:ref>anchor-alias</x:ref>> elements get stripped.
1305    </t>
1306    <t>
1307      &lt;x:<x:ref>bcp14</x:ref>> elements get stripped.
1308    </t>
1309    <t>
1310      &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.
1311    </t>
1312    <t>
1313      &lt;x:<x:ref>blockquote</x:ref>> elements get converted to
1314      indented text (through a &lt;list> element).
1315    </t>
1316    <t>
1317      &lt;x:<x:ref>dfn</x:ref>> elements get stripped.
1318    </t>
1319    <t>
1320      &lt;x:<x:ref>h</x:ref>> elements get stripped.
1321    </t>
1322    <t>
1323      &lt;x:<x:ref>link</x:ref>> elements get stripped.
1324    </t>
1325    <t>
1326      &lt;x:<x:ref>note</x:ref>> elements get converted to
1327      indented text (through a &lt;list> element).
1328    </t>
1329    <t>
1330      &lt;x:<x:ref>q</x:ref>> elements get stripped, with apostrophes
1331      added around the text.
1332    </t>
1333    <t>
1334      &lt;x:<x:ref>ref</x:ref>> elements get replaced by &lt;xref>
1335      elements, targetting either the anchor or another anchor with
1336      matching &lt;x:<x:ref>anchor-alias</x:ref>> child element.
1337    </t>
1338  </list>
1339</t>
1340</section>
1341
1342<section title="Extracting artwork" anchor="extract-artwork">
1343<t>
1344  With <spanx style="verb">extract-artwork.xslt</spanx>, artwork elements
1345  named through the "name" attribute can be extracted. This can be used
1346  to automatically check their syntax (for instance, when ABNFs appear
1347  within a figure element).
1348</t>
1349<figure><preamble>For instance:</preamble>
1350<artwork type="example">saxon rfc3986.xml extract-artwork.xslt name=uri.abnf
1351</artwork>
1352</figure>
1353<t>
1354  In addition, artwork of a specific type can be extracted, such as with:
1355</t>
1356<figure>
1357<artwork type="example">saxon rfc3986.xml extract-artwork.xslt type=abnf
1358</artwork>
1359</figure>
1360</section>
1361
1362<section title="GRRDL" anchor="grddl">
1363<t>
1364  <spanx style="verb">rfc2629grddl.xslt</spanx> extracts RDF
1365  information. This is experimental work-in-progress. See
1366  <eref target="http://www.w3.org/TR/grddl/"/> for more information.
1367</t>
1368</section>
1369</section>
1370
1371 
1372
1373</middle>
1374
1375<back>
1376<references title="Informative References">
1377
1378<reference anchor='RFC2026'>
1379  <front>
1380    <title abbrev='Internet Standards Process'>The Internet Standards Process -- Revision 3</title>
1381    <author initials='S.' surname='Bradner' fullname='Scott O. Bradner'>
1382      <organization>Harvard University</organization>
1383      <address>
1384        <email>sob@harvard.edu</email>
1385      </address>
1386    </author>
1387    <date year='1996' month='October' />
1388  </front>
1389  <seriesInfo name='BCP' value='9' />
1390  <seriesInfo name='RFC' value='2026' />
1391</reference>
1392
1393<reference anchor="RFC2119">
1394  <front>
1395    <title abbrev="RFC Key Words">Key words for use in RFCs to Indicate Requirement Levels</title>
1396    <author initials="S." surname="Bradner" fullname="Scott Bradner">
1397      <organization>Harvard University</organization>
1398      <address>
1399        <email>sob@harvard.edu</email>
1400      </address>
1401    </author>
1402    <date month="March" year="1997"/>
1403  </front>
1404  <seriesInfo name="BCP" value="14"/>
1405  <seriesInfo name="RFC" value="2119"/>
1406</reference>
1407
1408<reference anchor="RFC2616">
1409  <front>
1410  <title abbrev="HTTP/1.1">Hypertext Transfer Protocol -- HTTP/1.1</title>
1411  <author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
1412  <organization>University of California, Irvine, Information and Computer Science</organization>
1413  <address>
1414  <postal>
1415  <street/>
1416  <city>Irvine</city>
1417  <region>CA</region>
1418  <code>92697-3425</code>
1419  <country>US</country></postal>
1420  <phone>+1 949 824 1715</phone>
1421  <email>fielding@ics.uci.edu</email></address></author>
1422  <author initials="J." surname="Gettys" fullname="James Gettys">
1423  <organization>World Wide Web Consortium, MIT Laboratory for Computer Science</organization>
1424  <address>
1425  <postal>
1426  <street>545 Technology Square</street>
1427  <city>Cambridge</city>
1428  <region>MA</region>
1429  <code>02139</code>
1430  <country>US</country></postal>
1431  <phone/>
1432  <facsimile>+1 617 258 8682</facsimile>
1433  <email>jg@w3.org</email></address></author>
1434  <author initials="J.C." surname="Mogul" fullname="Jeffrey C. Mogul">
1435  <organization>Compaq Computer Corporation, Western Research Laboratory</organization>
1436  <address>
1437  <postal>
1438  <street>250 University Avenue</street>
1439  <city>Palo Alto</city>
1440  <region>CA</region>
1441  <code>94301</code>
1442  <country>US</country></postal>
1443  <phone/>
1444  <email>mogul@wrl.dec.com</email></address></author>
1445  <author initials="H.F." surname="Nielsen" fullname="Henrik Frystyk Nielsen">
1446  <organization>World Wide Web Consortium, MIT Laboratory for Computer Science</organization>
1447  <address>
1448  <postal>
1449  <street>545 Technology Square</street>
1450  <city>Cambridge</city>
1451  <region>MA</region>
1452  <code>02139</code>
1453  <country>US</country></postal>
1454  <phone/>
1455  <facsimile>+1 617 258 8682</facsimile>
1456  <email>frystyk@w3.org</email></address></author>
1457  <author initials="L." surname="Masinter" fullname="Larry Masinter">
1458  <organization>Xerox Corporation</organization>
1459  <address>
1460  <postal>
1461  <street>3333 Coyote Hill Road</street>
1462  <city>Palo Alto</city>
1463  <region>CA</region>
1464  <code>94034</code>
1465  <country>US</country></postal>
1466  <phone/>
1467  <email>masinter@parc.xerox.com</email></address></author>
1468  <author initials="P.J." surname="Leach" fullname="Paul J. Leach">
1469  <organization>Microsoft Corporation</organization>
1470  <address>
1471  <postal>
1472  <street>1 Microsoft Way</street>
1473  <city>Redmond</city>
1474  <region>WA</region>
1475  <code>98052</code>
1476  <country>US</country></postal>
1477  <phone/>
1478  <email>paulle@microsoft.com</email></address></author>
1479  <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1480  <organization>World Wide Web Consortium, MIT Laboratory for Computer Science</organization>
1481  <address>
1482  <postal>
1483  <street>545 Technology Square</street>
1484  <city>Cambridge</city>
1485  <region>MA</region>
1486  <code>02139</code>
1487  <country>US</country></postal>
1488  <phone>+1 617 258 8682</phone>
1489  <facsimile/>
1490  <email>timbl@w3.org</email></address></author>
1491  <date month="June" year="1999"/>
1492  </front>
1493  <seriesInfo name="RFC" value="2616"/>
1494</reference>
1495
1496<reference anchor='RFC2629'>
1497  <front>
1498    <title>Writing I-Ds and RFCs using XML</title>
1499    <author initials='M.T.' surname='Rose' fullname='Marshall T. Rose'>
1500      <organization>Invisible Worlds, Inc.</organization>
1501      <address>
1502        <postal>
1503          <street>660 York Street</street>
1504          <city>San Francisco</city>
1505          <region>CA</region>
1506          <code>94110</code>
1507          <country>US</country>
1508        </postal>
1509        <phone>+1 415 695 3975</phone>
1510        <email>mrose@not.invisible.net</email>
1511        <uri>http://invisible.net/</uri>
1512      </address>
1513    </author>
1514    <date month='June' year='1999' />
1515  </front>
1516  <seriesInfo name='RFC' value='2629' />
1517</reference>
1518
1519<reference anchor='RFC2648'>
1520  <front>
1521    <title>A URN Namespace for IETF Documents</title>
1522    <author initials='R.' surname='Moats' fullname='Ryan Moats'>
1523      <organization>AT&amp;T</organization>
1524      <address>
1525      <postal>
1526        <street>15621 Drexel Circle</street>
1527        <city>Omaha</city>
1528        <region>NE</region>
1529        <code>68135-2358</code>
1530        <country>US</country>
1531      </postal>
1532      <email>jayhawk@att.com</email></address>
1533    </author>
1534    <date month='August' year='1999' />
1535  </front>
1536  <seriesInfo name='RFC' value='2648' />
1537</reference>
1538
1539<reference anchor='RFC2731'>
1540  <front>
1541    <title>Encoding Dublin Core Metadata in HTML</title>
1542    <author initials='J.A.' surname='Kunze' fullname='John A. Kunze'>
1543      <organization>University of California, San Francisco,  Center for Knowledge Management</organization>
1544      <address>
1545        <postal>
1546          <street>530 Parnassus Ave</street>
1547          <street>Box 0840</street>
1548          <city>San Francisco</city>
1549          <region>CA</region>
1550          <code>94143-0840</code>
1551          <country>US</country>
1552        </postal>
1553        <facsimile>+1 415 476 4653</facsimile>
1554        <email>jak@ckm.ucsf.edu</email>
1555      </address>
1556    </author>
1557    <date month='December' year='1999' />
1558  </front>
1559  <seriesInfo name='RFC' value='2731' />
1560</reference>
1561
1562<reference anchor='DC-HTML' target="http://dublincore.org/documents/2008/08/04/dc-html/">
1563  <front>
1564    <title>Expressing Dublin Core metadata using HTML/XHTML meta and link elements</title>
1565    <author initials='P.' surname='Johnston' fullname='Pete Johnston'>
1566      <organization>Eduserv Foundation</organization>
1567      <address>
1568        <email>pete.johnston@eduserv.org.uk</email>
1569      </address>
1570    </author>
1571    <author initials='A.' surname='Powell' fullname='Andy Powell'>
1572      <organization>Eduserv Foundation</organization>
1573      <address>
1574        <email>andy.powell@eduserv.org.uk</email>
1575      </address>
1576    </author>
1577    <date month='August' year='2008' />
1578  </front>
1579  <seriesInfo name='Dublin Core Metadata Initiative' value='' />
1580</reference>
1581
1582<reference anchor="RFC5234">
1583  <front>
1584    <title abbrev="ABNF for Syntax Specifications">Augmented BNF for Syntax Specifications: ABNF</title>
1585    <author initials="D." surname="Crocker" fullname="Dave Crocker" role="editor">
1586      <organization>Brandenburg InternetWorking</organization>
1587      <address>
1588      <postal>
1589      <street>675 Spruce Dr.</street>
1590      <city>Sunnyvale</city>
1591      <region>CA</region>
1592      <code>94086</code>
1593      <country>US</country></postal>
1594      <phone>+1.408.246.8253</phone>
1595      <email>dcrocker@bbiw.net</email></address> 
1596    </author>
1597    <author initials="P." surname="Overell" fullname="Paul Overell">
1598      <organization>THUS plc.</organization>
1599      <address>
1600      <postal>
1601      <street>1/2 Berkeley Square</street>
1602      <street>99 Berkely Street</street>
1603      <city>Glasgow</city>
1604      <code>G3 7HR</code>
1605      <country>UK</country></postal>
1606      <email>paul.overell@thus.net</email></address>
1607    </author>
1608    <date month="January" year="2008"/>
1609  </front>
1610  <seriesInfo name="STD" value="68"/>
1611  <seriesInfo name="RFC" value="5234"/>
1612</reference>
1613
1614<reference anchor="HTML" target="http://www.w3.org/TR/html401/">
1615  <front>
1616    <title>HTML 4.01 Specification</title>
1617    <author initials="D." surname="Raggett" fullname="David Raggett">
1618      <organization>W3C</organization>
1619      <address>
1620        <email>dsr@w3.org</email>
1621      </address>
1622    </author>
1623    <author initials="A." surname="Hors" fullname="Arnaud Le Hors">
1624      <organization>W3C</organization>
1625    </author>
1626    <author initials="I." surname="Jacobs" fullname="Ian Jacobs">
1627      <organization>W3C</organization>
1628    </author>
1629    <date month="December" day="24" year="1999" />
1630  </front>
1631  <seriesInfo name="W3C" value="REC-html401-19991224" />
1632</reference>
1633
1634<reference anchor="XHTML2" target="http://www.w3.org/TR/xhtml2">
1635  <front>
1636    <title>XHTML&#8482; 2.0</title>
1637    <author initials="J." surname="Axelsson" fullname="Jonny Axelsson">
1638      <organization>Opera Software</organization>
1639    </author>
1640    <author initials="M." surname="Birbeck" fullname="Mark Birbeck">
1641      <organization>x-port.net</organization>
1642    </author>
1643    <author initials="M." surname="Dubinko" fullname="Micah Dubinko">
1644      <organization></organization>
1645    </author>
1646    <author initials="B." surname="Epperson" fullname="Beth Epperson">
1647      <organization>Websense</organization>
1648    </author>
1649    <author initials="M." surname="Ishikawa" fullname="Masayasu Ishikawa">
1650      <organization>W3C</organization>
1651    </author>
1652    <author initials="S." surname="McCarron" fullname="Shane McCarron">
1653      <organization>Applied Testing and Technology</organization>
1654    </author>
1655    <author initials="A." surname="Navarro" fullname="Ann Navarro">
1656      <organization>WebGeek, Inc.</organization>
1657    </author>
1658    <author initials="S." surname="Pemberton" fullname="Steven Pemberton">
1659      <organization>CWI</organization>
1660    </author>
1661    <date month="July" day="26" year="2006" />
1662  </front>
1663  <seriesInfo name="W3C" value="WD-xhtml2-20060726" />
1664</reference>
1665
1666<reference anchor="XSL-FO" target="http://www.w3.org/TR/2006/REC-xsl11-20061205/">
1667  <front>
1668    <title>Extensible Stylesheet Language (XSL) Version 1.1</title>
1669    <author initials="A." surname="Berglund" fullname="Anders Berglund">
1670      <organization>IBM</organization>
1671      <address>
1672        <email>alrb@us.ibm.com</email>
1673      </address>
1674    </author>
1675    <date month="Dec" day="5" year="2006" />
1676  </front>
1677  <seriesInfo name="W3C" value="REC-xsl11-20061205" />
1678</reference>
1679
1680<reference anchor="RNC" target="http://www.oasis-open.org/committees/relax-ng/compact-20021121.html">
1681  <front>
1682    <title>RELAX NG Compact Syntax</title>
1683    <author initials="J." surname="Clark" fullname="James Clark">
1684      <organization/>
1685      <address>
1686        <email>jjc@jclark.com</email>
1687      </address>
1688    </author>
1689    <date month="Nov" day="21" year="2002" />
1690  </front>
1691  <seriesInfo name="OASIS" value=""/>
1692</reference>
1693
1694<reference anchor='BCP97'>
1695  <front>
1696    <title>Handling Normative References to Standards-Track Documents</title>
1697    <author initials='J.' surname='Klensin' fullname='J. Klensin'>
1698      <organization />
1699      <address>
1700        <email>klensin+ietf@jck.com</email>
1701      </address>
1702    </author>
1703    <author initials='S.' surname='Hartman' fullname='S. Hartman'>
1704      <organization>MIT</organization>
1705      <address>
1706        <email>hartmans-ietf@mit.edu</email>
1707      </address>
1708    </author>
1709    <date year='2007' month='June' />
1710  </front>
1711  <seriesInfo name='BCP' value='97' />
1712  <seriesInfo name='RFC' value='4897' />
1713</reference>
1714
1715<reference anchor="XML" target="http://www.w3.org/TR/2008/REC-xml-20081126/">
1716  <front>
1717    <title>Extensible Markup Language (XML) 1.0 (Fifth Edition)</title>
1718    <author initials="T." surname="Bray" fullname="Tim Bray">
1719      <organization>Textuality and Netscape</organization>
1720      <address>
1721        <email>tbray@textuality.com</email>
1722      </address>
1723    </author>
1724    <author initials="J." surname="Paoli" fullname="Jean Paoli">
1725      <organization>Microsoft</organization>
1726      <address>
1727        <email>jeanpa@microsoft.com</email>
1728      </address>
1729    </author>
1730    <author initials="C.M." surname="Sperberg-McQueen" fullname="C. M. Sperberg-McQueen">
1731      <organization>W3C</organization>
1732      <address>
1733        <email>cmsmcq@w3.org</email>
1734      </address>
1735    </author>
1736    <author initials="E." surname="Maler" fullname="Eve Maler">
1737      <organization>Sun Microsystems</organization>
1738      <address>
1739        <email>eve.maler@east.sun.com</email>
1740      </address>
1741    </author>
1742    <author initials="F." surname="Yergeau" fullname="Francois Yergeau">
1743      <organization/>
1744    </author>
1745    <date day="26" month="November" year="2008"/>
1746  </front>
1747  <seriesInfo name="W3C" value="REC-xml-20081126"/>
1748</reference>
1749</references>
1750
1751  <section title="RELAX NG Compact Schema" anchor="grammar">
1752  <iref item="Grammar" primary="true"/>
1753  <iref item="Schema" primary="true"/>
1754  <iref item="RELAX NG Compact Schema" primary="true"/>
1755  <t>
1756    The RelaxNG schema (<xref target="RNC"/>) below can be used to validate
1757    input documents (for instance, with <eref target="http://www.thaiopensource.com/relaxng/jing.html">Jing</eref>).
1758  </t>
1759  <t>
1760    <spanx>Note that this is work in progress, and doesn't yet cover all
1761    extensions completely.</spanx>
1762  </t>
1763  <figure>
1764    <artwork type="application/relax-ng-compact-syntax" name="rfc2629-ext.rnc" x:extraction-note="# Automatically extracted from rfc2629xslt.xml. DO NOT EDIT!&#10;">
1765<spanx># WORK IN PROGRESS! PLEASE REPORT PROBLEMS TO THE AUTHOR.</spanx>
1766
1767<spanx># Define our extension namespace</spanx>
1768namespace x = "http://purl.org/net/xml2rfc/ext"
1769
1770<spanx># Define GRDDL namespace</spanx>
1771namespace grddl = "http://www.w3.org/2003/g/data-view#"
1772
1773<spanx># Define RDF namespace</spanx>
1774namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1775
1776<spanx># Include rfc2629bis RNC grammar</spanx>
1777include "rfc2629.rnc" {
1778 
1779  <spanx># Redefine &lt;artwork> to allow markup</spanx>
1780  artwork =
1781    element artwork {
1782      attlist.artwork,
1783      (TEXT
1784        <spanx style="strong">| eref</spanx> 
1785        <spanx style="strong">| iref</spanx> 
1786        <spanx style="strong">| spanx</spanx> 
1787        <spanx style="strong">| xref</spanx>
1788        <spanx style="strong">| <x:ref>x_abnf-char-sequence</x:ref></spanx>
1789        <spanx style="strong">| <x:ref>x_bb</x:ref></spanx>
1790        <spanx style="strong">| <x:ref>x_bc</x:ref></spanx>
1791        <spanx style="strong">| <x:ref>x_bt</x:ref></spanx>
1792        <spanx style="strong">| <x:ref>x_highlight</x:ref></spanx>
1793        <spanx style="strong">| <x:ref>x_length-of</x:ref></spanx>
1794        <spanx style="strong">| <x:ref>x_parse-xml</x:ref></spanx>
1795        <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>
1796        <spanx style="strong">| <x:ref>x_span</x:ref></spanx>
1797        <spanx style="strong">| <x:ref>x_x</x:ref></spanx>)*
1798    }
1799
1800  <spanx># Redefine &lt;back> to allow boilerplate</spanx>
1801  back =
1802    element back {
1803      attlist.back,
1804      references*,
1805      section*,
1806      <spanx style="strong"><x:ref>x_boilerplate</x:ref>?</spanx>
1807    }
1808
1809  <spanx># Redefine &lt;c> to allow our extension elements</spanx>
1810  c =
1811    element c {
1812      attlist.c,
1813      (TEXT
1814        | xref
1815        | eref
1816        | iref
1817        | cref
1818        | spanx
1819        <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>)*
1820    }
1821
1822  <spanx># Redefine &lt;cref> to allow more child elements</spanx>
1823  cref =
1824    element cref {
1825      attlist.cref,
1826      (TEXT
1827        | eref
1828        | xref)*
1829    }
1830
1831  <spanx># Redefine &lt;front> to allow boilerplate</spanx>
1832  front =
1833    element front {
1834      attlist.front,
1835      title,
1836      author+,
1837      date,
1838      area*,
1839      workgroup*,
1840      keyword*,
1841      <spanx style="strong"><x:ref>x_boilerplate</x:ref>?,</spanx>
1842      abstract?,
1843      note*
1844    }
1845 
1846  <spanx># Redefine &lt;list> element to allow &lt;x:<x:ref>lt</x:ref>> child elements</spanx>
1847  \list =
1848    element list {
1849      attlist.list,
1850      (t+ <spanx style="strong">| <x:ref>x_lt</x:ref>+</spanx>)
1851    }   
1852   
1853  <spanx># Redefine &lt;preamble> to allow our extension elements</spanx>
1854  preamble =
1855    element preamble {
1856      attlist.preamble,
1857      (TEXT
1858        | xref
1859        | eref
1860        | iref
1861        | cref
1862        | spanx
1863        <spanx style="strong">| <x:ref>x_anchor-alias</x:ref></spanx>)*
1864    }
1865
1866  <spanx># Redefine &lt;postamble> to allow our extension elements</spanx>
1867  postamble =
1868    element postamble {
1869      attlist.postamble,
1870      (TEXT
1871        | xref
1872        | eref
1873        | iref
1874        | cref
1875        | spanx
1876        <spanx style="strong">| <x:ref>x_bcp14</x:ref></spanx>)*
1877    }
1878
1879  <spanx># Redefine &lt;reference> to allow our extension elements</spanx>
1880  reference =
1881    element reference {
1882      attlist.reference,
1883      front,
1884      seriesInfo*,
1885      format*,
1886      annotation*,
1887      <spanx style="strong"><x:ref>x_source</x:ref>?</spanx>
1888    }
1889
1890  <spanx># Redefine &lt;rfc> to allow our extension elements</spanx>
1891  rfc =
1892    element rfc {
1893      attlist.rfc,
1894      <spanx style="strong"><x:ref>x_link</x:ref>*,</spanx>
1895      <spanx style="strong"><x:ref>x_assign-section-number</x:ref>*,</spanx>
1896      front,
1897      middle,
1898      back?
1899    }
1900
1901  <spanx># Redefine &lt;section> to allow our extension elements</spanx>
1902  section =
1903    element section {
1904      attlist.section,
1905      (t
1906       | figure
1907       | texttable
1908       | iref
1909       | section
1910       <spanx style="strong">| <x:ref>x_anchor-alias</x:ref></spanx>
1911       <spanx style="strong">| <x:ref>x_blockquote</x:ref></spanx>
1912       <spanx style="strong">| <x:ref>x_include-author</x:ref></spanx>
1913       <spanx style="strong">| <x:ref>x_note</x:ref></spanx>
1914       <spanx style="strong">| <x:ref>rdf_Description</x:ref></spanx>)*
1915    }
1916
1917  <spanx># Redefine &lt;spanx> to allow some markup</spanx>
1918  spanx =
1919    element spanx {
1920      attlist.spanx,
1921      (TEXT
1922        <spanx style="strong">| iref</spanx>
1923        <spanx style="strong">| xref</spanx>
1924        <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>)*
1925    }
1926
1927  <spanx># Redefine &lt;t> to allow our extension elements</spanx>
1928  t =
1929    element t {
1930      attlist.t,
1931      (TEXT
1932       | \list
1933       | figure
1934       | xref
1935       | eref
1936       | iref
1937       | cref
1938       | spanx
1939       | vspace
1940       <spanx style="strong">| <x:ref>x_abnf-char-sequence</x:ref></spanx>
1941       <spanx style="strong">| <x:ref>x_anchor-alias</x:ref></spanx>
1942       <spanx style="strong">| <x:ref>x_bcp14</x:ref></spanx>
1943       <spanx style="strong">| <x:ref>x_dfn</x:ref></spanx>
1944       <spanx style="strong">| <x:ref>x_h</x:ref></spanx>
1945       <spanx style="strong">| <x:ref>x_q</x:ref></spanx>
1946       <spanx style="strong">| <x:ref>x_ref</x:ref></spanx>
1947       <spanx style="strong">| <x:ref>x_sup</x:ref></spanx>)*
1948    }
1949}
1950
1951<spanx># Allow x:indent-with attribute on &lt;artwork></spanx>
1952attlist.artwork &amp;=
1953  attribute x:indent-with { ATEXT }?
1954
1955<spanx># Allow anchor attribute on &lt;author></spanx>
1956attlist.author &amp;=
1957  attribute anchor { xsd:ID }?
1958 
1959  <spanx># Extend attribute set for &lt;iref> (see <xref target="ext-rfc2629.iref"/>)</spanx>
1960attlist.iref &amp;=
1961  attribute x:for-anchor { ATEXT }?
1962
1963<spanx># Extend attribute set for &lt;list> (see <xref target="ext-rfc2629.list"/>)</spanx>
1964attlist.list &amp;=
1965  attribute x:indent { ATEXT }?
1966
1967<spanx># Extend attribute set for &lt;preamble></spanx>
1968attlist.preamble &amp;=
1969  attribute anchor { xsd:ID }?
1970
1971<spanx># Extend attribute set for &lt;rfc></spanx>
1972attlist.rfc &amp;=
1973  attribute grddl:transformation { ATEXT }?,
1974  attribute x:maturity-level { "proposed" | "draft" | "internet" }?
1975
1976<spanx># Extend attribute set for &lt;section> (see <xref target="ext-rfc2629.section"/>)</spanx>
1977attlist.section &amp;=
1978  attribute x:fixed-section-number { ATEXT }?
1979
1980<spanx># Allow anchor attribute on &lt;spanx></spanx>
1981attlist.spanx &amp;=
1982  attribute anchor { xsd:ID }?
1983
1984<spanx># Extend attribute set for &lt;xref> (see <xref target="ext-rfc2629.xref"/>)</spanx>
1985attlist.xref &amp;=
1986  attribute x:fmt  { "()" | "," | "anchor" | "of" | "number" | "sec" |
1987                     "none" }?,
1988  attribute x:rel  { ATEXT }?,
1989  attribute x:sec  { ATEXT }?
1990
1991<spanx anchor="x_abnf-char-sequence"><iref item="abnf-char-sequence Extension Element"/><iref item="Extension Elements" subitem="abnf-char-sequence"
1992/># Conversion to ABNF char sequence (see <xref target="ext.element.abnf-char-sequence"/>)</spanx>
1993<x:ref>x_abnf-char-sequence</x:ref> =
1994  element x:abnf-char-sequence {
1995    TEXT
1996  }
1997
1998<spanx anchor="x_anchor-alias"><iref item="anchor-alias Extension Element"/><iref item="Extension Elements" subitem="anchor-alias"
1999/># Aliasing of anchors (see <xref target="ext.element.anchor-alias"/>)</spanx>
2000<x:ref>x_anchor-alias</x:ref> =
2001  element x:anchor-alias {
2002    attribute value { TEXT },
2003    empty
2004  }
2005
2006<spanx anchor="x_include-author"><iref item="include-author Extension Element"/><iref item="Extension Elements" subitem="include-author"
2007/># Including Author information
2008# (experimental)</spanx>
2009<x:ref>x_include-author</x:ref> =
2010  element x:include-author {
2011    attribute target { xsd:IDREF }
2012  }
2013
2014<spanx anchor="x_assign-section-number"><iref item="assign-section-number Extension Element"/><iref item="Extension Elements" subitem="assign-section-number"
2015/># Setting section numbers for internally generated sections
2016# (experimental)</spanx>
2017<x:ref>x_assign-section-number</x:ref> =
2018  element x:assign-section-number {
2019    attribute builtin-target { "authors" },
2020    attribute number { TEXT },
2021    empty
2022  }
2023
2024<spanx anchor="x_bb"><iref item="bb Extension Element"/><iref item="Extension Elements" subitem="bb"
2025/># Bottom line of box drawing (see <xref target="ext.element.bb"/>)</spanx>
2026<x:ref>x_bb</x:ref> =
2027  element x:bb {
2028    (TEXT
2029      | iref
2030      | xref
2031      | <x:ref>x_bb</x:ref>
2032      | <x:ref>x_bc</x:ref>
2033      | <x:ref>x_bt</x:ref>
2034      | <x:ref>x_ref</x:ref>)*
2035  }
2036
2037<spanx anchor="x_bc"><iref item="bc Extension Element"/><iref item="Extension Elements" subitem="bc"
2038/># Center line of box drawing (see <xref target="ext.element.bc"/>)</spanx>
2039<x:ref>x_bc</x:ref> =
2040  element x:bc {
2041    (TEXT
2042      | iref
2043      | xref
2044      | <x:ref>x_bb</x:ref>
2045      | <x:ref>x_bc</x:ref>
2046      | <x:ref>x_bt</x:ref>
2047      | <x:ref>x_ref</x:ref>)*
2048  }
2049
2050<spanx anchor="x_bcp14"><iref item="bcp14 Extension Element"/><iref item="Extension Elements" subitem="bcp14"
2051/># BCP14/RFC2119 keywords (see <xref target="ext.element.bcp14"/>)</spanx>
2052<x:ref>x_bcp14</x:ref> =
2053  element x:bcp14 {
2054    "MAY"
2055    | "MUST"
2056    | "MUST NOT"
2057    | "NOT RECOMMENDED"
2058    | "OPTIONAL"
2059    | "RECOMMENDED"
2060    | "REQUIRED"
2061    | "SHALL"
2062    | "SHALL NOT"
2063    | "SHOULD"
2064    | "SHOULD NOT"
2065  }
2066 
2067<spanx anchor="x_blockquote"><iref item="blockquote Extension Element"/><iref item="Extension Elements" subitem="blockquote"
2068/># Blockquote (see <xref target="ext.element.blockquote"/>)</spanx>
2069<x:ref>x_blockquote</x:ref> =
2070  element x:blockquote {
2071    attribute cite { URI }?,
2072    t+
2073  }
2074
2075<spanx anchor="x_boilerplate"><iref item="boilerplate Extension Element"/><iref item="Extension Elements" subitem="boilerplate"
2076/># Boilerplate (see <xref target="ext.element.blockquote"/>) </spanx>
2077<x:ref>x_boilerplate</x:ref> =
2078  element x:boilerplate {
2079    section+
2080  }
2081
2082<spanx anchor="x_bt"><iref item="bt Extension Element"/><iref item="Extension Elements" subitem="bt"
2083/># Top line of box drawing (see <xref target="ext.element.bt"/>)</spanx>
2084<x:ref>x_bt</x:ref> =
2085  element x:bt {
2086    (TEXT
2087      | iref
2088      | xref
2089      | <x:ref>x_bb</x:ref>
2090      | <x:ref>x_bc</x:ref>
2091      | <x:ref>x_bt</x:ref>
2092      | <x:ref>x_ref</x:ref>)*
2093  }
2094
2095<spanx anchor="x_dfn"><iref item="dfn Extension Element"/><iref item="Extension Elements" subitem="dfn"
2096/># Definition (see <xref target="ext.element.dfn"/>)</spanx>
2097<x:ref>x_dfn</x:ref> =
2098  element x:dfn {
2099    attribute anchor { xsd:ID }?,
2100    (TEXT
2101      | iref)*
2102  }
2103 
2104<spanx anchor="x_h"><iref item="h Extension Element"/><iref item="Extension Elements" subitem="h"
2105/># Heading (see <xref target="ext.element.h"/>)</spanx>
2106<x:ref>x_h</x:ref> =
2107  element x:h {
2108    TEXT
2109  }
2110
2111<spanx anchor="x_highlight"><iref item="highlight Extension Element"/><iref item="Extension Elements" subitem="highlight"
2112/># Heading (see <xref target="ext.element.highlight"/>)</spanx>
2113<x:ref>x_highlight</x:ref> =
2114  element x:highlight {
2115    TEXT
2116  }
2117
2118<spanx anchor="x_length-of"><iref item="length-of Extension Element"/><iref item="Extension Elements" subitem="length-of"
2119/># Length Measurement (see <xref target="ext.element.length-of"/>)</spanx>
2120<x:ref>x_length-of</x:ref> =
2121  element x:length-of {
2122    attribute indented { NUMBER }?,
2123    attribute target { xsd:IDREF },
2124    empty
2125  }
2126
2127<spanx anchor="x_link"><iref item="link Extension Element"/><iref item="Extension Elements" subitem="link"
2128/># Link (see <xref target="ext.element.link"/>)</spanx>
2129<x:ref>x_link</x:ref> =
2130  element x:link {
2131    attribute href { URI },
2132    attribute title { TEXT }?,
2133    attribute rel { TEXT },
2134    empty
2135  }
2136 
2137<spanx anchor="x_lt"><iref item="lt Extension Element"/><iref item="Extension Elements" subitem="lt"
2138/># Extended list item (see <xref target="ext.element.lt"/>)</spanx>
2139<x:ref>x_lt</x:ref> =
2140  element x:lt {
2141    attribute anchor { xsd:ID }?,
2142    attribute hangText { TEXT }?,
2143    t+
2144  }
2145
2146<spanx anchor="x_note"><iref item="note Extension Element"/><iref item="Extension Elements" subitem="note"
2147/># Note (see <xref target="ext.element.note"/>)</spanx>
2148<x:ref>x_note</x:ref> =
2149  element x:note {
2150    t+
2151  }
2152
2153<spanx anchor="x_parse-xml"><iref item="parse-xml Extension Element"/><iref item="Extension Elements" subitem="parse-xml"
2154/># Signal XML content (see <xref target="ext.element.parse-xml"/>)</spanx>
2155<x:ref>x_parse-xml</x:ref> =
2156  element x:parse-xml {
2157    TEXT
2158  }
2159
2160<spanx anchor="x_q"><iref item="q Extension Element"/><iref item="Extension Elements" subitem="q"
2161/># Inline quote (see <xref target="ext.element.q"/>)</spanx>
2162<x:ref>x_q</x:ref> =
2163  element x:q {
2164    TEXT
2165  }
2166
2167<spanx anchor="x_ref"><iref item="ref Extension Element"/><iref item="Extension Elements" subitem="ref"
2168/># Anchor reference (see <xref target="ext.element.ref"/>)</spanx> 
2169<x:ref>x_ref</x:ref> =
2170  element x:ref {
2171    attribute anchor { xsd:ID }?,
2172    TEXT
2173  }
2174
2175<spanx anchor="x_source"><iref item="source Extension Element"/><iref item="Extension Elements" subitem="source"
2176/># source information (see <xref target="ext.element.source"/>)</spanx> 
2177<x:ref>x_source</x:ref> =
2178  element x:source {
2179    attribute basename { ATEXT }?,
2180    attribute href { URI },
2181    empty
2182  }
2183
2184<spanx anchor="x_sup"><iref item="sup Extension Element"/><iref item="Extension Elements" subitem="sup"
2185/># superscript (see <xref target="ext.element.sup"/>)</spanx>
2186<x:ref>x_sup</x:ref> =
2187  element x:sup {
2188    TEXT
2189  }
2190
2191<spanx anchor="x_span"><iref item="span Extension Element"/><iref item="Extension Elements" subitem="span"
2192/># Inline Span <!--(see <xref target="ext.element.span"/>)--></spanx>
2193<x:ref>x_span</x:ref> =
2194  element x:span {
2195    attribute anchor { xsd:ID }?,
2196    (TEXT
2197      | <x:ref>x_parse-xml</x:ref>)*
2198  }
2199
2200<spanx anchor="x_x"><iref item="x Extension Element"/><iref item="Extension Elements" subitem="x"
2201/># Nop (for alignment in source)</spanx>
2202<x:ref>x_x</x:ref> =
2203  element x:x {
2204    empty
2205  }
2206
2207<spanx anchor="rdf_Description"><iref item="rdf:Description Extension Element"/><iref item="Extension Elements" subitem="rdf:Description"
2208/># Embed RDF statements </spanx>
2209<x:ref>rdf_Description</x:ref> =
2210  element rdf:Description {
2211    rdf_content
2212  }
2213 
2214rdf_content =
2215  ( TEXT | element * { rdf_content })*
2216</artwork></figure>
2217  </section>
2218 
2219  <section title="Implementation Notes">
2220 
2221  <section title="Recognized type attributes for &lt;artwork> element">
2222  <t>
2223    Specific values in the &lt;artwork> element's "type" attribute are
2224    recognized and cause a different visual style to be used:
2225  </t>
2226  <texttable>
2227    <ttcol>Media Type</ttcol>
2228    <ttcol>Comment</ttcol>
2229   
2230    <c>abnf</c><c>ABNF as per <xref target="RFC5234"/></c>
2231    <c>abnf2616</c><c>ABNF as per <xref target="RFC2616" x:fmt="," x:sec="2.1" /></c>
2232    <c>application/relax-ng-compact-syntax</c><c>Relax NG Compact Syntax as per <xref target="RNC"/></c>
2233    <c>application/xml-dtd</c><c>XML DTD</c>
2234    <c>message/http; msgtype="request"</c><c>HTTP message, as per <xref target="RFC2616" x:fmt="," x:sec="19.1" /></c>
2235    <c>message/http; msgtype="response"</c><c>HTTP message, as per <xref target="RFC2616" x:fmt="," x:sec="19.1" /></c>
2236  </texttable>
2237  </section>
2238 
2239  </section>
2240 
2241  <section title="Examples" anchor="examples">
2242
2243  <section title="Using the 'Internal Subset'" anchor="examples.internalsubset">
2244  <t>
2245    The prolog of the XML document can both be used to refer to an external
2246    DTD, and also to define internal entities (<xref target="XML" x:fmt="of" x:sec="2.8" x:rel="#sec-prolog-dtd"/>):
2247  </t>
2248  <figure><artwork type="example">
2249&lt;?xml version="1.0"?>
2250&lt;?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
2251
2252&lt;!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
2253
2254  &lt;!-- <spanx>use "&amp;MAY;" for a BCP 14 "MAY", see <xref target="ext.element.bcp14"/></spanx> -->
2255  &lt;!ENTITY MAY
2256  "&lt;bcp14 xmlns='http://purl.org/net/xml2rfc/ext'>MAY&lt;/bcp14>">
2257
2258  &lt;!-- <spanx>re-declare "&amp;nbsp;" as code point 160 (non-breaking space)</spanx> -->
2259  &lt;!-- <spanx>you may need this for UAs that do not read external DTDs</spanx> -->
2260  &lt;!ENTITY nbsp
2261  "&amp;#160;">
2262
2263  &lt;!-- <spanx>allow later RFC2616 reference using "&amp;rfc2616;"</spanx> -->
2264  "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2616.xml">
2265
2266]>
2267</artwork>
2268<postamble>
2269  Note: including entities from a remote site will not work in Firefox,
2270  see <eref target="https://bugzilla.mozilla.org/show_bug.cgi?id=22942"/>.</postamble>
2271</figure>
2272 
2273  </section>
2274
2275  <section title="Customization" anchor="examples.customizing">
2276  <t>
2277    The XSLT code can be customized by creating a custom XSLT file that
2278    uses &lt;xsl:import> to include the original code, and just overrides
2279    particular rules.
2280  </t>
2281  <figure>
2282  <preamble>For instance, the code below overrides several attributes in
2283  <spanx style="verb">rfc2629toFO.xslt</spanx>, changing the color, spacing and font family for
2284  headers.</preamble>
2285  <artwork type="example">
2286&lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2287               version="1.0">
2288
2289  &lt;xsl:import href="rfc2629toFO.xslt"/>
2290 
2291  &lt;xsl:attribute-set name="h1">
2292    &lt;xsl:attribute name="color">darkblue&lt;/xsl:attribute>
2293    &lt;xsl:attribute name="font-family">sans-serif&lt;/xsl:attribute>
2294    &lt;xsl:attribute name="space-before">24pt&lt;/xsl:attribute>
2295  &lt;/xsl:attribute-set>
2296 
2297  &lt;xsl:attribute-set name="h2">
2298    &lt;xsl:attribute name="color">darkblue&lt;/xsl:attribute>
2299    &lt;xsl:attribute name="font-family">sans-serif&lt;/xsl:attribute>
2300    &lt;xsl:attribute name="space-before">18pt&lt;/xsl:attribute>
2301    &lt;xsl:attribute name="space-after">3pt&lt;/xsl:attribute>
2302  &lt;/xsl:attribute-set>
2303 
2304  &lt;xsl:attribute-set name="h3">
2305    &lt;xsl:attribute name="color">darkblue&lt;/xsl:attribute>
2306    &lt;xsl:attribute name="font-family">sans-serif&lt;/xsl:attribute>
2307    &lt;xsl:attribute name="space-before">16pt&lt;/xsl:attribute>
2308    &lt;xsl:attribute name="space-after">2pt&lt;/xsl:attribute>
2309  &lt;/xsl:attribute-set>
2310
2311&lt;/xsl:transform>
2312</artwork></figure>
2313<x:note>
2314  <t>
2315    <x:h>Note:</x:h> the name for the attribute sets may change in the future
2316    as more working is done with respect to customizability. In any case,
2317    overriding the settings in a separate file will be easier to maintain.
2318    Please contact the author if you find yourself trying to override style
2319    definitions that currently do not use attribute sets.
2320  </t>
2321  <t>
2322    <x:h>Note:</x:h> the CSS style information used in <spanx style="verb">rfc2629.xslt</spanx>
2323    can be overriden in a similar (but less granular) way: just overwrite the
2324    template called "insertCss". As for XSL-FO, the class names may change in
2325    future.
2326  </t>
2327</x:note>
2328
2329
2330  </section>
2331
2332  </section>
2333 
2334  <section title="License" anchor="license">
2335  <t>
2336Copyright (c) 2006-2009, Julian Reschke (julian.reschke@greenbytes.de)
2337  </t>
2338  <t>
2339All rights reserved.
2340  </t>
2341  <t>
2342Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
2343  <list style="symbols">
2344    <t>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</t>
2345    <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>
2346    <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>
2347  </list>
2348  </t>
2349  <t>
2350THIS 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.
2351  </t>
2352  </section>
2353
2354  <section title="Change Logs">
2355   
2356 
2357    <section title="Package">
2358      <t><list style="hanging">
2359<t hangText="2006-01-01">
2360    Switch to BSD License.
2361</t>
2362<t hangText="2007-01-12">
2363    Update to xml2rfc v1.33pre2.
2364</t>
2365<t hangText="2007-03-31">
2366    Update to xml2rfc v1.33pre3.
2367</t>
2368<t hangText="2007-05-01">
2369    Add XSLT test cases.
2370</t>
2371<t hangText="2008-07-18">
2372    Experimental support for inlined rdf:Description elements (ignored
2373    by the formatter, extracted by rfc2629grddl).
2374</t>
2375<t hangText="2008-12-04">
2376    Update to xml2rfc v1.34pre2.
2377</t>
2378<t hangText="2009-02-24">
2379    Experimental support for February 2009 boilerplate changes, and for
2380    the x:boilerplate element.
2381</t>
2382<t hangText="2009-07-08">
2383    Support new boilerplate ordering in RFCs published since July 2009.
2384    Fix problems with one-column text tables.
2385</t>
2386<t hangText="2009-07-19">
2387    When possible, calculate the actual Expiry date for Internet Drafts
2388    (full date must be available).
2389</t>
2390<t hangText="2009-08-01">
2391    For '$xml2rfc-ext-authors-section='end'", move the index in front of the
2392    authors section.
2393</t>
2394<t hangText="2009-08-04">
2395    Consider /rfc/@ipr="pre5378Trust200902" when producing RFCs, not IDs.
2396</t>
2397<t hangText="2009-08-29">
2398    Support alignment for artwork containing images (as opposed to, well,
2399    artwork).
2400</t>
2401<t hangText="2009-09-01">
2402    Allow xref in cref (as extension).
2403</t>
2404<t hangText="2009-09-14">
2405    Refactor handling of processing instructions.
2406</t>
2407<t hangText="2009-09-24">
2408    Fix typo in Status Of This Memo, present since November 2008.
2409                Fix formatting of iprExtract attribute.
2410                Starting with Internet Draft publication dates after 2009-11-30: use new Trust
2411                Legal Provisions text; for Internet Drafts: move Abstract up, and
2412                move "pre5378" escape clause to the Copyright Notice.
2413                Add support for refparent PI. For RFCs: use new TLP text as of September 2009.
2414    Incorporate xml2rfc v1.34pre4.
2415</t>
2416<t hangText="2009-10-06">
2417                Starting with Internet Draft publication dates after 2009-10-31: use new Trust
2418                Legal Provisions text; for Internet Drafts: move Abstract up, and
2419                move "pre5378" escape clause to the Copyright Notice.
2420    Incorporate xml2rfc v1.34pre5.
2421</t>
2422<t hangText="2009-10-27">
2423    Upgrade to xml2rfc v1.34.
2424</t>
2425      </list></t>
2426    </section>
2427   
2428    <section title="amazon-asin.xslt">
2429    <t><list style="hanging">
2430<t hangText="2003-11-16">
2431     Initial release.
2432</t>
2433<t hangText="2005-04-02">
2434     Fix two DTD issues.
2435</t>
2436    </list></t>
2437    </section>
2438
2439    <section title="check-references.xslt">
2440    <t><list style="hanging">
2441<t hangText="2003-11-16">
2442     Initial release.
2443</t>
2444<t hangText="2004-05-11">
2445     Add document status; print references type.
2446</t>
2447<t hangText="2005-01-01">
2448     Add experimental check for ID status.
2449</t>
2450<t hangText="2005-04-01">
2451     Add fixes from Bill Fenner.
2452</t>
2453<t hangText="2005-12-03">
2454    Add checks against local copy of <eref target="http://www.w3.org/2002/01/tr-automation/tr.rdf"/>
2455</t>
2456<t hangText="2006-07-22">
2457    Add checks for standards levels.
2458</t>
2459<t hangText="2006-08-06">
2460    "check-ietf-references.xslt" replaced by "check-references.xslt".
2461</t>
2462<t hangText="2007-01-04">
2463    Use information online at <eref target="http://tools.ietf.org/"/> to
2464    retrieve Internet-Draft status information.
2465</t>
2466<t hangText="2007-06-16">
2467    Fix bug looking up ref type when inside change markup.
2468</t>
2469<t hangText="2008-06-14">
2470    Enhance output when draft was updated, and then published as RFC.
2471</t>
2472<t hangText="2008-07-12">
2473    Add XSLT2-based link target checking.
2474</t>
2475<t hangText="2008-08-10">
2476    Change keywords for "intended-level" to proposed/draft/internet,
2477    optionally extract intended level from /rfc/@x:maturity-level attribute.
2478</t>
2479    </list></t>
2480    </section>
2481   
2482    <section title="gen-reference-graph.xslt">
2483    <t><list style="hanging">
2484<t hangText="2006-09-03">
2485  New.
2486</t>
2487<t hangText="2007-06-07">
2488  Use <eref target="http://dpcarlisle.blogspot.com/2007/05/exslt-node-set-function.html">Carlisle method</eref> to define exslt:node-set in
2489  msxsml (which means that the stylesheet can now be used with MSXML as well).
2490</t>
2491<t hangText="2007-10-15">
2492  Use W3C data from tr.rdf as well (experimental).
2493</t>
2494    </list></t>
2495    </section>
2496
2497    <section title="rfc2629.xslt">
2498      <t><list style="hanging">
2499<t hangText="2001-03-28">
2500    Code rearranged, generate numbered section anchors for paragraphs (t)
2501    as well. Fixes in index handling.
2502</t>
2503<t hangText="2001-04-12">
2504    Moved HTML output into XHTML namespace.
2505</t>
2506<t hangText="2001-10-02">
2507    Fixed default location for RFCs and numbering of section references.
2508    Support ?rfc editing processing instruction.
2509</t>
2510<t hangText="2001-10-07">
2511    Made telephone number links active.
2512</t>
2513<t hangText="2001-10-08">
2514    Support for vspace element.
2515</t>
2516<t hangText="2001-10-09">
2517    Experimental support for rfc-issue PI.
2518</t>
2519<t hangText="2001-11-11">
2520    Support rfc private PI. Removed bogus code reporting the WG in the header.
2521</t>
2522<t hangText="2001-11-11">
2523    Support rfc private PI. Removed bogus code reporting the WG in the header.
2524</t>
2525<t hangText="2001-12-17">
2526    Support title attribute on references element
2527</t>
2528<t hangText="2002-01-05">
2529    Support for list/@style="@format"
2530</t>
2531<t hangText="2002-01-09">
2532    Display "closed" RFC issues as deleted
2533</t>
2534<t hangText="2002-01-14">
2535    Experimentally and optionally parse XML encountered in artwork elements
2536    (requires MSXSL).
2537</t>
2538<t hangText="2002-01-27">
2539    Some cleanup. Moved RFC issues from PIs into namespaced elements.
2540</t>
2541<t hangText="2002-01-29">
2542    Added support for sortrefs PI. Added support for figure names.
2543</t>
2544<t hangText="2002-02-07">
2545    Highlight parts of artwork which are too wide (72 characters).
2546</t>
2547<t hangText="2002-02-12">
2548    Code rearrangement for static texts. Fixes for section numbering.
2549    TOC generation rewritten.
2550</t>
2551<t hangText="2002-02-15">
2552    Support for irefs in sections; support iref @primary=true
2553</t>
2554<t hangText="2002-03-03">
2555    Moved anchor prefix into a constant. Added sanity checks on user anchor
2556    names.
2557</t>
2558<t hangText="2002-03-23">
2559    Bugfix in detection of matching org names when creating the header. Fixed
2560    sorting in subitems.
2561</t>
2562<t hangText="2002-04-02">
2563    Fix TOC link HTML generation when no TOC is generated (created broken
2564    HTML table code).
2565</t>
2566<t hangText="2002-04-03">
2567    Made rendering of references more tolerant re: missing parts.
2568</t>
2569<t hangText="2002-04-08">
2570    Fixed reference numbering when references are split into separate sections.
2571</t>
2572<t hangText="2002-04-16">
2573    Fix default namespace (shouldn't be set for HTML output method).
2574</t>
2575<t hangText="2002-04-19">
2576    Lowercase internal CSS selectors for Mozilla compliance. Do not put TOC
2577    into ul element.
2578</t>
2579<t hangText="2002-04-21">
2580    Make numbered list inside numbered lists use alphanumeric numbering.
2581</t>
2582<t hangText="2002-05-05">
2583    Updated issue/editing support.
2584</t>
2585<t hangText="2002-05-15">
2586    Bugfix for section numbering after introduction of ed:replace
2587</t>
2588<t hangText="2002-06-21">
2589    When producing private documents, do not include document status, copyright etc.
2590</t>
2591<t hangText="2002-07-08">
2592    Fix xrefs to Appendices.
2593</t>
2594<t hangText="2002-07-19">
2595    Make artwork lightyellow for easier reading. (fielding)
2596</t>
2597<t hangText="2002-10-09">
2598    Translate references title to anchor name to avoid non-uri characters. (fielding)
2599</t>
2600<t hangText="2002-10-13">
2601    Support for tocdepth PI.
2602</t>
2603<t hangText="2002-11-03">
2604    Added temporariry workaround for Mozilla/Transformiix result tree fragment problem.
2605    (search for 'http://bugzilla.mozilla.org/show_bug.cgi?id=143668')
2606</t>
2607<t hangText="2002-12-25">
2608    xref code: attempt to uppercase "section" and "appendix" when at the start
2609    of a sentence.
2610</t>
2611<t hangText="2003-02-02">
2612    fixed code for vspace blankLines="0", enhanced display for list with "format" style,
2613    got rid of HTML blockquote elements, added support for "hangIndent"
2614</t>
2615<t hangText="2003-04-10">
2616    experimental support for appendix and spanx elements
2617</t>
2618<t hangText="2003-04-19">
2619    fixed counting of list numbers in "format %" styles (one counter
2620    per unique format string). Added more spanx styles.
2621</t>
2622<t hangText="2003-05-02">
2623    experimental texttable support
2624</t>
2625<t hangText="2003-05-02">
2626    Make mailto links optional (default = none) (jre: default and PI name changed) (fielding)
2627</t>
2628<t hangText="2003-05-04">
2629    experimental support for HTML link elements; fix default for table header
2630    alignment default
2631</t>
2632<t hangText="2003-05-06">
2633    support for "background" PI.
2634</t>
2635<t hangText="2003-05-11">
2636    change %c format to lowercase alphabetic. add support for keyword
2637    elements (generate META tag). fix various HTML conformance problems.
2638    added experimental support for role attribute. do not number paragraphs
2639    in unnumbered sections. update boilerplate texts. support for
2640    "iprnotified" PI. bugfix list numbering. strip whitespace when
2641    building tel: URIs.
2642</t>
2643<t hangText="2003-05-12">
2644    more conformance fixes (layout moved into CSS, move lists and figures
2645    out of para content, do not use tables for list formatting)
2646</t>
2647<t hangText="2003-05-13">
2648    add DC.Creator meta tag, refactoring
2649</t>
2650<t hangText="2003-05-16">
2651    put nbsps between "section" and section number (xref).
2652</t>
2653<t hangText="2003-05-18">
2654    author summary: add missing comma.
2655</t>
2656<t hangText="2003-06-06">
2657    fix index generation bug (transposed characters in key generation). Enhance
2658    sentence start detection (xref starting a section was using lowercase
2659    "section").
2660</t>
2661<t hangText="2003-06-22">
2662    exp. support for xref/@format. Add missing support for eref w/o content.
2663    exp. support for annotations in reference elements. Code cleanup
2664    reference table formatting.
2665</t>
2666<t hangText="2003-07-09">
2667    Another fix for DC.Creator meta tag creation based on RFC2731
2668</t>
2669<t hangText="2003-07-24">
2670    Fix namespace name for DC.Creator.
2671</t>
2672<t hangText="2003-08-06">
2673    Cleanup node-set support (only use exslt (saxon, xalan, libxslt) extension
2674    functions; remove Transformix workarounds that stopped to work in Moz 1.4)
2675</t>
2676<t hangText="2003-08-09">
2677    Generate HTML lang tag.
2678</t>
2679<t hangText="2003-08-10">
2680    Map spanx/verb to HTML "samp" element. Fix author name display in
2681    references (reverse surname/initials for last author), add "Ed.".
2682    Fix internal bookmark generation.
2683</t>
2684<t hangText="2003-08-17">
2685    Add DCMI dates, identifiers and abstract. Add PI to suppress DCMI
2686    generation.  Do not add TOC entry to Copyright Statement when there is
2687    none. Align RFC2629 PI names and parameter names. Change style for
2688    inline URIs generated by eref. Add header and footer support.
2689    Enhance CSS paging properties. Support topblock PI. Added hooks for
2690    proper XHTML generation through separate XSLT. Enhance warning and
2691    error messages. Add support for artwork image display. Table formatting
2692    fixes (borders, thead continuation).
2693</t>
2694<t hangText="2003-08-18">
2695    Add workaround for MSXML4 node-set and Mozilla node-set issues (fallback
2696    just displays are warning).
2697</t>
2698<t hangText="2003-10-06">
2699    Add workaround for broken pre/ins handling in Mozilla
2700    (see <eref target="http://bugzilla.mozilla.org/show_bug.cgi?id=204401"/>). Make use
2701    of cite attribute on ed:replace. CSS cleanup.
2702</t>
2703<t hangText="2003-10-08">
2704    Fix minor issue detecting the same org for the header (caused by IE's
2705    non-standard whitespace handling). Fix default handling for /rfc/@category.
2706</t>
2707<t hangText="2003-11-09">
2708    Inherit ed:entered-by from ancestor elements. Change CSS color for inserted
2709    text to green. Generate issues-list anchor. Do not complain about missing
2710    targets when the xref element is below ed:del. Remove code that attempted
2711    to distinguish section/Section when producing links - always use
2712    uppercase. Fix date rendering for issue resolutions.
2713</t>
2714<t hangText="2003-11-29">
2715    Fix color values for table backgrounds for issue rendering. Change
2716    rendering of issue links to use inline-styles. Add colored issue markers to
2717    issues.
2718</t>
2719<t hangText="2003-12-13">
2720    Fix inheritance of ed:entered-by attribute. Display note elements inside
2721    change tracking as well.
2722</t>
2723<t hangText="2004-01-18">
2724    When PI compact = 'yes', make most CSS print page breaks conditional.
2725</t>
2726<t hangText="2004-02-20">
2727    Support for RFC3667 IPR changes (xml2rfc 1.22); see
2728    <eref target="http://lists.xml.resource.org/pipermail/xml2rfc/2004-February/001088.html"/>.
2729</t>
2730<t hangText="2004-03-11">
2731    Add "(if approved)" to "updates" and "obsoletes" unless the document has
2732    an RFC number.
2733</t>
2734<t hangText="2004-04-01">
2735    Fix RFC3667 output, see <eref target="http://lists.xml.resource.org/pipermail/xml2rfc/2004-April/001208.html"/>.
2736</t>
2737<t hangText="2004-04-04">
2738    Add support for section/top attribute. Move references into plain
2739    section container.
2740</t>
2741<t hangText="2004-04-06">
2742    Do not emit identical para anchors for deleted content.
2743</t>
2744<t hangText="2004-04-14">
2745    Fix references TOC generation when there are no references.
2746</t>
2747<t hangText="2004-04-24">
2748    Fix RFC3667 output, see <eref target="http://xml.resource.org/pipermail/xml2rfc/2004-April/001246.html"/>.
2749</t>
2750<t hangText="2004-05-09">
2751    Add custom support for generating compound index documents. Add anchors
2752    for each Index letter. Add experimental cref support. Fix conditional page
2753    breaks before References section.
2754</t>
2755<t hangText="2004-05-16">
2756    Refactor external index generation.
2757</t>
2758<t hangText="2004-05-20">
2759    Rewrite anchor generation for comments.
2760</t>
2761<t hangText="2004-05-22">
2762    Enhance issues rendering (add links to changes).
2763</t>
2764<t hangText="2004-05-30">
2765    Allow single quote as delimiter in processing instructions as well. Move
2766    block-level issue pointers to floats. Disable issue pointers for print
2767    media. Add "purple numbers". Add hrefs to section headings. Add non-printing
2768    index key letter list to start of index.
2769</t>
2770<t hangText="2004-06-01">
2771    Use &amp;#xb6; instead of # for PNs.
2772</t>
2773<t hangText="2004-07-18">
2774    Add support for list style=letters (thanks Roy F.). Make PNs optional;
2775    add new PI.
2776</t>
2777<t hangText="2004-09-05">
2778    Fix index links into unnumbered sections.  Bring IPR boilerplate in-line
2779    with xml2rfc 1.25.  Add experimental CSS3 paged media support.  Various
2780    HTML fixes.
2781</t>
2782<t hangText="2004-09-21">
2783    Enhance checking of artwork width.
2784</t>
2785<t hangText="2004-09-26">
2786    Add check for unused references. Uppercase letters in list style letters
2787    when nested into another list.
2788</t>
2789<t hangText="2004-10-10">
2790    Fix internal change track pointers.
2791</t>
2792<t hangText="2004-11-01">
2793    Allow change tracking on references (as a whole).  Rewrite artwork handling
2794    so that it allows change tracking inside artwork.  Also allow a subset of
2795    text markup inside artwork, such as xrefs (note this requires post-processing
2796    the source to make it compliant to RFC2629bis).
2797</t>
2798<t hangText="2004-11-03">
2799    Enhanced placement of iref anchors.
2800</t>
2801<t hangText="2004-11-06">
2802    Index: display irefs that appeared (with primary=true) inside artwork elements
2803    in a monospaced font.
2804</t>
2805<t hangText="2004-11-14">
2806    Add special code so that changes in section titles can be change-tracked.
2807</t>
2808<t hangText="2005-01-14">
2809    Bugfixes for HtmlToXhtml converter.
2810</t>
2811<t hangText="2005-01-22">
2812    Enhance generation of HTML h* elements (for Mozilla Outliner).
2813</t>
2814<t hangText="2005-01-31">
2815    Put vertical space around top-level TOC entries in TOC.  Switch to
2816    pt-based CSS. Re-arrange top section. Make hr elements reflect new-page
2817    settings in TXT output (compact-PI).  Fix page number in footer (CSS
2818    print) and add some more experimental support for paged media (tested
2819    with Prince 4.1 alpha).  Rewrite TOC and Index generation to generate HTML
2820    lists.  Cleanup id generation for paragraphs.  Reduce whitespace in output.
2821    Fix vspace implementation. Use right/left dqoutes and copyright sign
2822    where appropriate.
2823</t>
2824<t hangText="2005-02-04">
2825    Add &lt;link> element to references section.  Fix newly introduced bug
2826    in references processing.
2827</t>
2828<t hangText="2005-02-05">
2829    Integrate various fixes/enhancements by Roy Fielding: spelling of
2830    "Authors' Addresses", comma setting in references, position of "Authors"
2831    section, optionally place authors addresses at end (PI), trailing dots
2832    in section numbers, switch to verdana default font in CSS.  Add
2833    experimental support for centered artwork.
2834</t>
2835<t hangText="2005-02-09">
2836    Fixes in spacing and links of references section titles.  Enhance sorting
2837    in references when change tracking is in place.  Re-add figure centering
2838    support.  Add missing 2nd part of "Author's Adresses" fix.
2839</t>
2840<t hangText="2005-02-25">
2841    Align section number format with xml2rfc1.29.
2842</t>
2843<t hangText="2005-03-28">
2844    Get rid of table elements in Author's section.  Add experimental hCard
2845    (<eref target="http://developers.technorati.com/wiki/hCard"/>) support.
2846</t>
2847<t hangText="2005-04-03">
2848    Add RFC3978-style IPR statement support. (fenner@research.att.com)
2849</t>
2850<t hangText="2005-04-11">
2851    Cleanup author display. hCard related fixes.
2852</t>
2853<t hangText="2005-05-07">
2854    Minor fixes to allow change tracking in doc title.  Add experimental
2855    support for table border styles. CSS cleanup.
2856</t>
2857<t hangText="2005-06-18">
2858    Implement missing support for references to texttables.
2859</t>
2860<t hangText="2005-09-25">
2861    Use (-moz-)column-count when printing the index.
2862</t>
2863<t hangText="2005-10-04">
2864    Report missing element templates with xsl:message.
2865</t>
2866<t hangText="2005-10-15">
2867    Process t/@anchor.
2868</t>
2869<t hangText="2005-10-23">
2870    More workarounds for Mozilla's broken del/ins handling (this time for
2871    figures).
2872</t>
2873<t hangText="2005-10-27">
2874    lowercase hCard class names
2875</t>
2876<t hangText="2005-11-22">
2877    Enhance diagnostics for XML-in-artwork extension
2878</t>
2879<t hangText="2005-11-26">
2880    Fix formatting of section numbers for sections inserted into &lt;back>.
2881</t>
2882<t hangText="2005-12-12">
2883    Fix some validity problems when change tracking occured inside lists.
2884</t>
2885<t hangText="2005-12-18">
2886    Add change tracking inside the index.
2887</t>
2888<t hangText="2006-02-04">
2889    Add prev/next links to highlighted changes (change tracking extension).
2890</t>
2891<t hangText="2006-02-10">
2892    Catch errors instantiating MSXML component.
2893</t>
2894<t hangText="2006-02-11">
2895    References: add "work in progress" for Internet Drafts.
2896</t>
2897<t hangText="2006-02-27">
2898    Fix front matter (lowercase Internet-Draft, say "Intended status" for
2899    non-RFC documents). Start work on experimental extension for 
2900    simplified internal links.
2901</t>
2902<t hangText="2006-03-19">
2903    Tweaks to IESG Copyright stuff; support submissionType attribute.
2904    Fix duplicate reference anchors in HTML output.  Reduce HTML Tidy warnings.
2905    Fix reference to normative ASCII version (now requires trailing ".txt").
2906    Tweaks to hCard generation.  Started to move non-issue-tracking
2907    extensions into namespace "http://purl.org/net/xml2rfc/ext".
2908</t>
2909<t hangText="2006-03-27">
2910    Moved "simple reference" extension into namespace "http://purl.org/net/xml2rfc/ext"
2911    and add documentation.  HTML conformance enhancements.
2912</t>
2913<t hangText="2006-04-02">
2914    Cleanup special code for automated XHTML XSLT generation.
2915</t>
2916<t hangText="2006-04-21">
2917    Generate &lt;CITE> elements where appropiate.
2918    Introduce x:blockquote, x:dfn, x:h and x:q elements.
2919</t>
2920<t hangText="2006-05-06">
2921    Introduce x:bcp14 element.
2922</t>
2923<t hangText="2006-05-14">
2924  Fix content model for x:blockquote.
2925</t>
2926<t hangText="2006-06-18">
2927  Add box drawing support (x:bt, x:bc, x:bb).
2928</t>
2929<t hangText="2006-06-20">
2930  HTML validity fixes (legal chars in anchors in index).
2931</t>
2932<t hangText="2006-06-24">
2933  Reduce leading empty lines in artwork. Move &lt;dt> style info into CSS.
2934</t>
2935<t hangText="2006-07-14">
2936  Fix rendering of multiple street address entries (missing line break).
2937</t>
2938<t hangText="2006-07-24">
2939  Add extension for deep linking into RFCs, do not generate empty list
2940  items in TOC output, avoid empty &lt;dt> elements for list items
2941  without hangText attribute.
2942</t>
2943<t hangText="2006-08-01">
2944  Allow @anchor on more elements; start work on Relax NG grammar for
2945  extensions. Reduce generated style elements (use CSS classes instead).
2946  Consistently use "id" instead of "name". Change default target for RFC
2947  links to "http://tools.ietf.org/html/rfcNNNN".
2948</t>
2949<t hangText="2006-08-06">
2950  Include appendices defined in &lt;appendix> elements in TOC (please
2951  consider them deprecated anyhow!). Generate links to
2952  "http://tools.ietf.org/html/draft-*" for Internet Drafts.
2953  Replace x:frag by x:rel, allowing any kind of relative reference instead
2954  of just fragments.
2955</t>
2956<t hangText="2006-08-30">
2957  Reduce textual differences between HTML output and what xml2rfc produces
2958  in TXT output mode (section refs/reference targets). Add small workaround
2959  for Opera 9.0.1's problem with node-set().
2960</t>
2961<t hangText="2006-10-29">
2962  Fix problem generating internal links to change markup within references
2963  section. Enhancements when generating numbered references for deleted
2964  references.
2965  Allow inclusion of references into the index (through include-references-in-index
2966  extension).
2967  Fix a bug that caused the newer version of the IETF boilerplate to be
2968  produced rather than the pre-RFC3667 one.
2969  Update to RFC4287 boilerplate.
2970</t>
2971<t hangText="2006-11-11">
2972  Add extension attribute x:for-anchor to &lt;iref&gt; handling.
2973</t>
2974<t hangText="2006-11-26">
2975  Experimental (and limited) support for &lt;x:lt&gt;.
2976</t>
2977<t hangText="2006-12-04">
2978  Fix bugs in processing documents that have both the ipr and the number attribute
2979  set on the rfc root element. Add support for x:fmt='none' on xrefs.
2980  Add different pre style based on artwork type attributes (experimental).
2981</t>
2982<t hangText="2006-12-13">
2983  Add x:fmt='anchor' for xref elements.
2984</t>
2985<t hangText="2007-01-07">
2986  Fix root template for compatibility for the exslt:node-set implementation
2987  in Firefox3.
2988</t>
2989<t hangText="2007-01-29">
2990  Avoid empty table entry in front matter when organization is not specified
2991  for an author.
2992</t>
2993<t hangText="2007-02-10">
2994  Allow change tracking in table rows.
2995</t>
2996<t hangText="2007-03-09">
2997  Add hcard profile URI (<eref target="http://www.w3.org/2006/03/hcard"/>) to head element.
2998  Add warning for misplaced &lt;t> elements (after section).
2999</t>
3000<t hangText="2007-03-21">
3001  Fix internal linking from reference entries in index for some xref types.
3002  Minor CSS tweaks contributed by MTR. Allow turning on text justification through
3003  a PI. Improve iref anchor generation to generate less instable anchors.
3004</t>
3005<t hangText="2007-03-28">
3006  Fixes for numbering of ed:inserted references sections.
3007</t>
3008<t hangText="2007-05-04">
3009  Do not generate anchors for edits in deleted sections. Enhance HTML
3010  conformance.
3011</t>
3012<t hangText="2007-05-19">
3013  Enhance diagnostics when using Saxon (needs Saxon's "-l" command line
3014  parameter to keep line number information). Add warning when symref PI
3015  is missing (default will change in the future).
3016  Add support for overriding computed section numbers (when formatting
3017  historic documents).
3018</t>
3019<t hangText="2007-06-07">
3020  Change default for symrefs PI to "yes" (see change in xml2rfc 1.33pre4).
3021  Warn about docName attributes that appear to contain a file extension.
3022</t>
3023<t hangText="2007-06-26">
3024  Workaround author/@initials values without trailing dot, as in xml2rfc.tcl.
3025</t>
3026<t hangText="2007-07-14">
3027  Enhance index generation for references that use @x:sec attribute.
3028</t>
3029<t hangText="2007-09-09">
3030  Fix: sortrefs is a nop when symrefs=no.
3031</t>
3032<t hangText="2007-10-17">
3033  Work in progress: add support for referencing sections in sibling
3034  documents by anchor name.
3035</t>
3036<t hangText="2007-10-17">
3037  Work in progress (continued): support for referencing sections in sibling
3038  documents by anchor name.
3039</t>
3040<t hangText="2007-12-31">
3041  Emit warning when updating/obsoleting stuff that's not referenced.
3042</t>
3043<t hangText="2008-02-03">
3044  Support xml2rfc-1.33pre5's suppress-title attribute on texttable and figure.
3045</t>
3046<t hangText="2008-02-06">
3047  Extension: allow &lt;eref> below &lt;cref>.
3048</t>
3049<t hangText="2008-02-17">
3050  Extensions: add x:span and x:length-of.
3051</t>
3052<t hangText="2008-02-20">
3053  Add new RFC boilerplate (as changed in 2007-08).
3054</t>
3055<t hangText="2008-02-27">
3056  Improve diagnostics for artwork width problems; add defaulting of publication
3057  dates (requires XSLT processor supporting exslt:date, or msxml).
3058</t>
3059<t hangText="2008-02-29">
3060  Enhance CSS for link elements in the front header, update rules for
3061  generating "Acknowledgment" statement.
3062</t>
3063<t hangText="2008-03-01">
3064  Use line numbers in diagnostics in Saxon8/9 as well.
3065</t>
3066<t hangText="2008-03-02">
3067  Fix a bug in the logic choosing the boilerplate, resulting in obsolete
3068  text being inserted into IDs.
3069</t>
3070<t hangText="2008-04-01">
3071  Add support for superscript element.
3072</t>
3073<t hangText="2008-06-28">
3074  Add sanity checks for email addresses, allow multiple email elements.
3075</t>
3076<t hangText="2008-07-06">
3077  Add x:abnf-char-sequence.
3078</t>
3079<t hangText="2008-08-21">
3080  Add x:note.
3081</t>
3082<t hangText="2008-09-06">
3083  Add experimental support for SVG images.
3084</t>
3085<t hangText="2008-09-17">
3086  Add experimental support for x:author. Fix xref/@format=none.
3087</t>
3088<t hangText="2008-10-10">
3089  Fix a huge bug, causing text content after an XML comment to be ignored.
3090</t>
3091<t hangText="2009-02-24">
3092  Use table/caption when needed.
3093</t>
3094<t hangText="2009-03-07">
3095  Fix bug that caused text to disappear in the output in presence of
3096  processing instructions.
3097</t>
3098<t hangText="2009-03-12">
3099  Make inlined comments bookmarkable.
3100</t>
3101<t hangText="2009-04-09">
3102  Upgrade to DC-HTML from RFC 2731 (affects head/@profile).
3103</t>
3104<t hangText="2009-07-08">
3105  Remove table/@summary in output; the value getting inserted was just
3106  repeating stuff that appeared in the preamble.
3107</t>
3108<t hangText="2009-08-01">
3109  Implement table alignment (HTML output only for now).
3110</t>
3111<t hangText="2009-08-18">
3112  Replicate Dublin Core "abstract" metadata into meta/@name=description
3113  (search engines do use it).
3114</t>
3115<t hangText="2009-09-02">
3116  Fix default/left alignment of table columns, remove silly table summmary
3117  attributes.
3118</t>
3119<t hangText="2009-09-24">
3120  Support double-sided layout using CSS page:left/right selectors.
3121</t>
3122      </list></t>
3123    </section>
3124    <section title="rfc2629toFO.xslt">
3125      <t><list style="hanging">
3126<t hangText="2003-11-16">
3127    Initial release.
3128</t>
3129<t hangText="2003-11-29">
3130    Enhance handling of unknown list styles.
3131</t>
3132<t hangText="2004-04-04">
3133    Update reference section handling.
3134</t>
3135<t hangText="2004-04-17">
3136    Use XSL-WD-1.1-style fo:bookmark and index handling and add postprocessors for
3137    existing implementations. Unify PDF info generation by using XEP (postprocessors)
3138    will convert.
3139</t>
3140<t hangText="2004-04-20">
3141    Add experimental cref support.
3142</t>
3143<t hangText="2004-06-14">
3144    Set correct index-item defaults.
3145</t>
3146<t hangText="2004-07-18">
3147    Add list style=letters.
3148</t>
3149<t hangText="2004-09-03">
3150    Make URLs in text break where they are allowed to break by inserting
3151    zero-width spaces.
3152</t>
3153<t hangText="2004-09-26">
3154    Fix letter-style inside nested lists.
3155</t>
3156<t hangText="2004-10-31">
3157    Update handling of artwork.
3158</t>
3159<t hangText="2004-11-13">
3160    Fix handling of references inside ed:* markup.  Fix whitespace handling
3161    in artwork.
3162</t>
3163<t hangText="2004-11-27">
3164    Irefs in artwork generate monospaced entries in index.
3165</t>
3166<t hangText="2005-01-31">
3167    Fix TOC generation that was broken after changes in main XSLT.
3168</t>
3169<t hangText="2005-02-05">
3170    Bring in sync with cosmetic changes in rfc2629.xslt.
3171</t>
3172<t hangText="2005-05-07">
3173    Minor fix for change tracking in document title.  Support for table
3174    styles.
3175</t>
3176<t hangText="2005-06-18">
3177    Fix references to tables.
3178</t>
3179<t hangText="2005-10-15">
3180    Process t/@anchor.
3181</t>
3182<t hangText="2006-02-11">
3183    References: add "work in progress" for Internet Drafts.
3184</t>
3185<t hangText="2006-06-02">
3186    Use XSL 1.1 WD Feb 2006.
3187</t>
3188<t hangText="2007-03-21">
3189    Support optional text justification.
3190</t>
3191<t hangText="2007-05-19">
3192    Various improvements in spacing; also allow overriding the automatic
3193    list indentation via list/x:indent.
3194</t>
3195<t hangText="2009-04-08">
3196    Fix spacing in headers; add support for formatting for double-sided printing.
3197</t>
3198<t hangText="2009-08-01">
3199    Remove surplus empty pages when not generating double-sided output.
3200</t>
3201     </list></t>
3202    </section>
3203
3204    <section title="xsl11toAn.xslt">
3205    <t><list style="hanging">
3206<t hangText="2004-05-17">
3207     Initial release.
3208</t>
3209<t hangText="2006-06-02">
3210    Use XSL 1.1 WD Feb 2006.
3211</t>
3212    </list></t>
3213    </section>
3214
3215    <section title="xsl11toFop.xslt">
3216    <t><list style="hanging">
3217<t hangText="2004-05-17">
3218     Initial release.
3219</t>
3220<t hangText="2006-06-02">
3221    Use XSL 1.1 WD Feb 2006.
3222</t>
3223    </list></t>
3224    </section>
3225
3226    <section title="xsl11toFop-0.95.xslt">
3227    <t><list style="hanging">
3228<t hangText="2009-09-12">
3229    Support for FOP 0.20.5 and FOP 0.93 removed. Please use FOP 0.95.
3230</t>
3231<t hangText="2008-03-15">
3232    Add a workaround to the fo:inline workaround (sigh).
3233</t>
3234    </list></t>
3235    </section>
3236
3237    <section title="xsl11toXep.xslt">
3238    <t><list style="hanging">
3239<t hangText="2004-05-17">
3240     Initial release.
3241</t>
3242<t hangText="2004-09-04">
3243     Fix xep:index-item attributes.
3244</t>
3245<t hangText="2006-06-02">
3246    Use XSL 1.1 WD Feb 2006.
3247</t>
3248    </list></t>
3249    </section>
3250  </section>
3251
3252</back>
3253</rfc>
Note: See TracBrowser for help on using the repository browser.