source: rfc2629xslt/testcase.xml

Last change on this file was 2761, checked in by julian.reschke@…, 13 months ago

update XSLTs

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 69.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
3<?rfc toc="yes"?>
4<?rfc symrefs="yes"?>
5<?rfc comments="yes"?>
6<?rfc inline="no"?>
7<?rfc-ext include-references-in-index="yes" ?>
8<?rfc-ext parse-xml-in-artwork="yes" ?>
9<?rfc-ext allow-markup-in-artwork="yes" ?>
10<?rfc-ext html-pretty-print="prettyprint https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"?>
11<?rfc-ext vspace-pagebreak="999" ?>
12<?rfc multiple-initials="yes"?>
13<?rfc private="XML2RFC Test Cases"?>
14<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
15  <!ENTITY nbsp "&#160;">
16  <!ENTITY thinsp "&#8202;">
17  <!ENTITY nbhy "&#8209;">
18  <!ENTITY ndash "&#8211;">
19  <!ENTITY mdash "&#8212;">
20]>
21<rfc xmlns:x="http://purl.org/net/xml2rfc/ext">
22        <front>
23        <title>Test cases for XML2RFC formatting</title>
24
25        <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
26                <organization abbrev="greenbytes">greenbytes GmbH</organization>
27        <address>
28                <postal>
29                <street>Hafenweg 16</street>
30            <code>48155</code><city>Muenster</city>
31                <country>Germany</country>
32                </postal>
33                  <phone>+49 251 2807760</phone>       
34                  <email>julian.reschke@greenbytes.de</email>   
35                  <email>julian.reschke@gmx.de</email> 
36                  <uri>http://greenbytes.de/tech/webdav/</uri> 
37                  </address>
38
39
40        </author>
41
42    <date/>
43    <keyword>RFC2629</keyword>
44    <keyword>test case</keyword>
45    <keyword>xml2rfc</keyword>
46        </front>
47
48        <middle>
49
50<section title="Lists" anchor="lists">
51
52<section title="hanging list">
53<section title="default">
54<t>default
55<list style="hanging">
56  <t hangText="A:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
57  <t hangText="AB:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
58  <t hangText="ABC:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
59  <t hangText="ABCD:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
60  <t hangText="ABCDE:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
61  <t hangText="ABCDEF:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
62</list></t>
63<?rfc compact="yes"?>
64<t>compact="yes"
65<list style="hanging">
66  <t hangText="A:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
67  <t hangText="AB:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
68  <t hangText="ABC:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
69  <t hangText="ABCD:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
70  <t hangText="ABCDE:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
71  <t hangText="ABCDEF:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
72</list></t>
73<?rfc compact="yes" subcompact="yes"?>
74<t>compact="yes" subcompact="yes"
75<list style="hanging">
76  <t hangText="A:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
77  <t hangText="AB:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
78  <t hangText="ABC:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
79  <t hangText="ABCD:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
80  <t hangText="ABCDE:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
81  <t hangText="ABCDEF:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
82</list></t>
83<?rfc compact="yes" subcompact="no"?>
84<t>compact="yes" subcompact="no"
85<list style="hanging">
86  <t hangText="A:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
87  <t hangText="AB:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
88  <t hangText="ABC:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
89  <t hangText="ABCD:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
90  <t hangText="ABCDE:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
91  <t hangText="ABCDEF:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
92</list></t>
93<?rfc compact="no" subcompact="yes"?>
94<t>compact="no" subcompact="yes"
95<list style="hanging">
96  <t hangText="A:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
97  <t hangText="AB:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
98  <t hangText="ABC:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
99  <t hangText="ABCD:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
100  <t hangText="ABCDE:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
101  <t hangText="ABCDEF:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
102</list></t>
103<?rfc compact="no" subcompact="no"?>
104<t>compact="no" subcompact="no"
105<list style="hanging">
106  <t hangText="A:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
107  <t hangText="AB:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
108  <t hangText="ABC:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
109  <t hangText="ABCD:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
110  <t hangText="ABCDE:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
111  <t hangText="ABCDEF:">The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</t>
112</list></t>
113<?rfc compact="no" subcompact="no"?>
114<t>compact="no" subcompact="yes", empty entries
115<list style="hanging">
116  <t hangText="A:"/>
117  <t hangText="AB:"/>
118  <t hangText="ABC:"/>
119  <t hangText="ABCD:"/>
120  <t hangText="ABCDE:"/>
121</list>
122</t>
123</section>
124
125<section title="hanging list with hangIndent 7">
126<t><list style="hanging" hangIndent="7">
127  <t hangText="0">0</t>
128  <t hangText="01">01</t>
129  <t hangText="012">012</t>
130  <t hangText="0123">0123</t>
131  <t hangText="01234">01234</t>
132  <t hangText="012345">012345</t>
133  <t hangText="0123456">0123456</t>
134  <t hangText="01234567">01234567</t>
135  <t hangText="012345678">012345678</t>
136  <t hangText="0123456789">0123456789</t>
137</list></t></section>
138
139<section title="hanging list with hangIndent 0">
140<t><list style="hanging" hangIndent="0">
141  <t hangText="0">0</t>
142  <t hangText="01">01</t>
143  <t hangText="012">012</t>
144  <t hangText="0123">0123</t>
145  <t hangText="01234">01234</t>
146  <t hangText="012345">012345</t>
147  <t hangText="0123456">0123456</t>
148  <t hangText="01234567">01234567</t>
149  <t hangText="012345678">012345678</t>
150  <t hangText="0123456789">0123456789</t>
151</list></t></section>
152</section>
153
154<section title="numbered list" anchor="ordered.list.numbers">
155<t>
156A numbered list:
157<list style="numbers">
158  <t>one</t>
159  <t>two</t>
160  <t anchor="ordered.list.numbers.last">three</t>
161</list>
162</t>
163</section>
164
165<section title="ordered list (letters)" anchor="ordered.list.letters">
166<t>
167An ordered list using letters:
168<list style="letters">
169  <t>one</t>
170  <t>two</t>
171  <t>three</t>
172  <t>one</t>
173  <t>two</t>
174  <t>three</t>
175  <t>one</t>
176  <t>two</t>
177  <t>three</t>
178  <t>one</t>
179  <t>two</t>
180  <t>three</t>
181  <t>one</t>
182  <t>two</t>
183  <t>three</t>
184  <t>one</t>
185  <t>two</t>
186  <t>three</t>
187  <t>one</t>
188  <t>two</t>
189  <t>three</t>
190  <t>one</t>
191  <t>two</t>
192  <t>three</t>
193  <t>one</t>
194  <t>two</t>
195  <t>three</t>
196  <t>one</t>
197  <t>two</t>
198  <t anchor="ordered.list.letters.last">three</t>
199</list>
200</t>
201</section>
202
203<section title="no explicit counters">
204<t>
205  Example for numbered list with user-defined-format:
206  <list style="format R%d:">
207    <t>R1</t>
208    <t>R2</t>
209  </list>
210</t>
211<t>
212  Another list:
213  <list style="format S%d:">
214    <t>S1</t>
215    <t>S2</t>
216  </list>
217</t>
218<t>
219  Same with character-based numbering:
220  <list style="format c-%c:">
221    <t>c-a</t>
222    <t>c-b</t>
223  </list>
224</t>
225</section>
226
227<section title="with explicit counters">
228<t>
229  A few requirements:
230  <list style="format R%d:" counter="requirements">
231    <t>req R1</t>
232    <t>req R2</t>
233  </list>
234</t>
235<t>
236  More requirements:
237  <list style="format R%d:" counter="requirements">
238    <t>req R3</t>
239    <t>req R4</t>
240  </list>
241</t>
242<t>
243  A few rules:
244  <list style="format R%d:" counter="rules">
245    <t>rule R1</t>
246    <t>rule R2</t>
247    <t>rule R3</t>
248  </list>
249</t>
250</section>
251
252<section title="Nested lists">
253<section title="numbers/letters">
254  <t>
255    <list style="numbers">
256      <t>One</t>
257      <t>Two
258        <list style="letters">
259          <t>17</t>
260          <t>42</t>
261        </list>
262      </t>
263      <t>Three</t>
264    </list>
265  </t>
266</section>
267<section title="numbers/numbers">
268  <t>
269    <list style="numbers">
270      <t>One</t>
271      <t>Two
272        <list style="numbers">
273          <t>17</t>
274          <t>42</t>
275        </list>
276      </t>
277      <t>Three</t>
278      <t>
279        <list style="numbers">
280          <t>17</t>
281          <t>42</t>
282        </list>
283      </t>
284    </list>
285  </t>
286</section>
287<section title="letters/letters">
288  <t>
289    <list style="letters">
290      <t>One</t>
291      <t>Two
292        <list style="letters">
293          <t>17</t>
294          <t>42</t>
295        </list>
296      </t>
297      <t>Three</t>
298    </list>
299  </t>
300</section>
301<section title="letters/letters/letters">
302  <t>
303    <list style="letters">
304      <t>One</t>
305      <t>Two
306        <list style="letters">
307          <t>17</t>
308          <t>42
309            <list style="letters">
310              <t>X</t>
311              <t>Y</t>
312            </list>
313          </t>
314        </list>
315      </t>
316      <t>Three</t>
317    </list>
318  </t>
319</section>
320<section title="symbols/symbols/symbols">
321  <t>
322    <list style="symbols">
323      <t>One</t>
324      <t>Two
325        <list style="symbols">
326          <t>17</t>
327          <t>42
328            <list style="symbols">
329              <t>X</t>
330              <t>Y</t>
331            </list>
332          </t>
333        </list>
334      </t>
335      <t>Three</t>
336    </list>
337  </t>
338</section>
339<section title="hanging/hanging">
340  <t>
341    <list style="hanging">
342      <t hangText="ABC">One
343        <list style="hanging">
344          <t hangText="GHI">One</t>
345          <t hangText="JKL">Two</t>
346        </list>
347      </t>
348      <t hangText="DEF">
349        <list style="hanging">
350          <t hangText="MNO">Three</t>
351          <t hangText="PQR">Four</t>
352        </list>
353      </t>
354    </list>
355  </t>
356</section>
357</section>
358
359<section title="list without style">
360<t>No style attribute:<list>
361  <t>One</t>
362  <t>Two</t>
363  <t>Three</t>
364</list></t>
365</section>
366
367<section title="list with multiple paragraphs in a single list item">
368<t><list style="numbers">
369  <x:lt><t>Simple list item.</t></x:lt>
370  <x:lt>
371    <t>This one has two paragraphs. This is the first one.</t>
372    <t>This one has two paragraphs. This is the second one.</t>
373  </x:lt>
374  <x:lt><t>Another simple list item.</t></x:lt>
375</list></t></section>
376
377<section title="style=format...">
378<section title="lists with fancy formats: %c">
379<t><list style="format %c">
380  <t>test</t>
381</list></t></section>
382
383<section title="lists with fancy formats: %C">
384<t><list style="format %C">
385  <t>test</t>
386</list></t></section>
387
388<section title="lists with fancy formats: %d">
389<t><list style="format %d">
390  <t>test</t>
391</list></t></section>
392
393<section title="lists with fancy formats: %i">
394<t><list style="format %i">
395  <t>test</t>
396</list></t></section>
397
398<section title="lists with fancy formats: %I">
399<t><list style="format %I">
400  <t>test</t>
401</list></t></section>
402
403<section title="lists with fancy formats: %o">
404<t><list style="format %o">
405  <t>test</t>
406</list></t></section>
407
408<section title="lists with fancy formats: %x">
409<t><list style="format %x">
410  <t>test</t>
411</list></t></section>
412
413<section title="lists with fancy formats: %X">
414<t><list style="format %X">
415  <t>test</t>
416</list></t></section>
417
418<section title="lists with fancy formats: %% %d">
419<t><list style="format %% %d">
420  <t>test</t>
421</list></t></section>
422
423<section title="lists with fancy formats: REQUIREMENT-%i plus hangIndent=20">
424<t><list style="format REQUIREMENT-%i" hangIndent="20">
425  <t>test</t>
426  <t>test</t>
427  <t>test</t>
428  <t>test</t>
429  <t>test</t>
430  <t>test</t>
431  <t>test</t>
432  <t>test</t>
433  <t>test</t>
434  <t>test</t>
435  <t>test</t>
436</list></t></section>
437
438<section title="lists with fancy formats: %c.">
439<t><list style="format %c.">
440  <t>test</t>
441</list></t></section>
442
443<section title="lists with fancy formats: %C.">
444<t><list style="format %C.">
445  <t>test</t>
446</list></t></section>
447
448<section title="lists with fancy formats: %d.">
449<t><list style="format %d.">
450  <t>test</t>
451</list></t></section>
452
453<section title="lists with fancy formats: %i.">
454<t><list style="format %i.">
455  <t>test</t>
456</list></t></section>
457
458<section title="lists with fancy formats: %I.">
459<t><list style="format %I.">
460  <t>test</t>
461</list></t></section>
462</section>
463
464<section title="style inheritance">
465<t>Numbers:<list style="numbers">
466  <t>test</t>
467  <t>test</t>
468  <t>test</t>
469  <t>Nested, without style:<list>
470    <t>test</t>
471    <t>test</t>
472    <t>test</t>
473  </list>
474  </t>
475</list></t>
476<t>Symbols:<list style="symbols">
477  <t>test</t>
478  <t>test</t>
479  <t>test</t>
480  <t>Nested, without style:<list>
481    <t>test</t>
482    <t>test</t>
483    <t>test</t>
484  </list>
485  </t>
486</list></t>
487<t>Letters:<list style="letters">
488  <t>test</t>
489  <t>test</t>
490  <t>test</t>
491  <t>Nested, without style:<list>
492    <t>test</t>
493    <t>test</t>
494    <t>test</t>
495  </list>
496  </t>
497</list></t>
498<t>Empty:<list style="empty">
499  <t>test</t>
500  <t>test</t>
501  <t>test</t>
502  <t>Nested, without style:<list>
503    <t>test</t>
504    <t>test</t>
505    <t>test</t>
506  </list>
507  </t>
508</list></t>
509</section>
510
511<section title="v3 list extensions">
512<section title="dl/spacing">
513<t>regular dl</t>
514<dl>
515  <dt>dt</dt>
516  <dd>dd</dd>
517  <dt>dt</dt>
518  <dd>dd</dd>
519</dl>
520<t>dl/spacing=normal</t>
521<dl spacing="normal">
522  <dt>dt</dt>
523  <dd>dd</dd>
524  <dt>dt</dt>
525  <dd>dd</dd>
526</dl>
527<t>dl/spacing=compact</t>
528<dl spacing="compact">
529  <dt>dt</dt>
530  <dd>dd</dd>
531  <dt>dt</dt>
532  <dd>dd</dd>
533</dl>
534</section>
535
536<section title="ul/spacing">
537<t>regular ul</t>
538<ul>
539  <li>X</li>
540  <li>Y</li>
541</ul>
542<t>ul/spacing=normal</t>
543<ul spacing="normal">
544  <li>X</li>
545  <li>Y</li>
546</ul>
547<t>ul/spacing=compact</t>
548<ul spacing="compact">
549  <li>X</li>
550  <li>Y</li>
551</ul>
552</section>
553</section>
554
555</section>
556
557
558
559<section title="spanx">
560<t>
561This is <spanx>default</spanx>.
562</t>
563<t>
564This is <spanx style="emph">emph(asized)</spanx>.
565</t>
566<t>
567This is <spanx style="strong">strong</spanx>.
568</t>
569<t>
570This is <spanx style="verb">verb(atim)</spanx>.
571</t>
572<t>
573Here is <spanx style="verb">a carriage return
574inside</spanx> a spanx element.
575</t>
576</section>
577
578<section title="Tables">
579<texttable>
580<preamble>The list of valid keywords are:</preamble>
581<ttcol width="20%" align="right">keyword</ttcol>
582<ttcol width="20%" align="center">default</ttcol>
583<ttcol align="left">meaning</ttcol>
584<ttcol>not aligned</ttcol>
585
586<c>strict</c>
587<c>no</c>
588<c>try to enforce the ID-nits conventions and DTD validity</c>
589<c>a</c>
590
591<c>iprnotified</c>
592<c>no</c>
593<c>include boilerplate from Section 10.4(d) of <xref target="RFC2026"/></c>
594<c>bb bb</c>
595
596<c>compact</c>
597<c>no</c>
598<c>when producing a txt/nroff file, try to conserve vertical whitespace</c>
599<c>ccc ccc ccc</c>
600   
601<c>subcompact</c>
602<c>compact</c>
603<c>if compact is "yes", then setting this to "no" will make things a little less
604compact</c>
605<c>dddd dddd dddd dddd</c>
606   
607<!--
608    ...                                                          ...
609   
610  -->
611   
612<c>needLines</c>
613<c>n/a</c>
614<c>an integer hint indicating how many contiguous lines are needed at this point
615in the output</c>
616<c>eeeee eeeee eeeee eeeee eeeee </c>
617
618<c>here come empty cells</c>
619<c></c>
620<c/>
621<c/>
622
623<postamble>Remember,
624that as with everything else in XML,
625keywords and values are case-sensitive.</postamble>
626</texttable>
627
628<section title="no borders">
629<texttable style="none" anchor="tablenoborder" title="a table with no borders">
630<preamble>The table below should appear with no borders.</preamble>
631<ttcol>C1</ttcol>
632<ttcol>C2</ttcol>
633<c>11</c>
634<c>12</c>
635<c>21</c>
636<c>22</c>
637</texttable>
638</section>
639
640<section title="borders around headers">
641<texttable style="headers">
642<preamble>The table below should appear with borders just around the headers.</preamble>
643<ttcol>C1</ttcol>
644<ttcol>C2</ttcol>
645<c>11</c>
646<c>12</c>
647<c>21</c>
648<c>22</c>
649</texttable>
650</section>
651
652<section title="example from xml2rc README">
653       <texttable anchor='table_example'>
654           <preamble>So,
655           putting it all together, we have, e.g.,</preamble>
656           <ttcol align='center'>ttcol #1</ttcol>
657           <ttcol align='center'>ttcol #2</ttcol>
658           <c>c #1</c>
659           <c>c #2</c>
660           <c>c #3</c>
661           <c>c #4</c>
662           <c>c #5</c>
663           <c>c #6</c>
664           <postamble>which is a very simple example.</postamble>
665       </texttable>
666</section>
667
668<section title="no column titles">
669<texttable anchor="tablenotitles" title="a table with no column titles">
670<preamble>The table below should appear with no titles.</preamble>
671<ttcol></ttcol>
672<ttcol></ttcol>
673<c>11</c>
674<c>12</c>
675<c>21</c>
676<c>22</c>
677</texttable>
678<texttable anchor="tableonetitle" title="a table with a single column title">
679<preamble>The table below should appear with column titles (one being non-empty).</preamble>
680<ttcol>FOO</ttcol>
681<ttcol></ttcol>
682<c>11</c>
683<c>12</c>
684<c>21</c>
685<c>22</c>
686</texttable>
687</section>
688
689<section title="referencing tables">
690  <t>
691    <xref target="tablenoborder"/> shows a table with no borders.
692  </t>
693  <t>
694    <xref target="tablenoborder">The table above</xref> shows a table with no borders.
695  </t>
696</section>
697
698<section title="table captions">
699<texttable>
700<preamble>No anchor, no title</preamble>
701<ttcol>Anchor</ttcol>
702<ttcol>Title</ttcol>
703<c>-</c>
704<c>-</c>
705</texttable>
706
707<texttable anchor="texttable1">
708<preamble>Anchor (not being referenced), no title</preamble>
709<ttcol>Anchor</ttcol>
710<ttcol>Title</ttcol>
711<c>yes</c>
712<c>-</c>
713</texttable>
714
715<texttable title="title">
716<preamble>No anchor, with title</preamble>
717<ttcol>Anchor</ttcol>
718<ttcol>Title</ttcol>
719<c>-</c>
720<c>"title"</c>
721</texttable>
722
723<texttable anchor="texttable2" title="title">
724<preamble>Both anchor and title</preamble>
725<ttcol>Anchor</ttcol>
726<ttcol>Title</ttcol>
727<c>yes</c>
728<c>"title"</c>
729</texttable>
730
731<texttable anchor="texttable3" suppress-title="true">
732<preamble>anchor, suppress-title, and in use</preamble>
733<ttcol>Anchor</ttcol>
734<ttcol>Title</ttcol>
735<c>yes</c>
736<c>-</c>
737</texttable>
738<t>
739  Table above is: <xref target="texttable3"/>.
740</t>
741
742</section>
743
744
745<section title="single column">
746<texttable>
747<ttcol>title</ttcol>
748<c>1</c>
749<c>2</c>
750</texttable>
751</section>
752
753<section title="empty body">
754<texttable>
755<ttcol>title</ttcol>
756</texttable>
757</section>
758
759<section title="table alignment">
760
761<section title="left">
762<texttable align="left" title="left-aligned table">
763<ttcol>left</ttcol>
764<c>1</c>
765</texttable>
766</section>
767
768<section title="center">
769<texttable align="center" title="centered table">
770<ttcol>center</ttcol>
771<c>1</c>
772</texttable>
773</section>
774
775<section title="right">
776<texttable align="right" title="right-aligned table">
777<ttcol>right</ttcol>
778<c>1</c>
779</texttable>
780</section>
781
782<section title="default">
783<texttable title="default-aligned table">
784<ttcol>default</ttcol>
785<c>1</c>
786</texttable>
787</section>
788</section>
789
790</section>
791
792
793<section title="Figures">
794<section title="with preamble, no title...">
795<figure>
796  <preamble>with preamble, no title...</preamble>
797  <artwork>
798  +--+
799  |  |
800  +--+
801</artwork>
802</figure>
803</section>
804
805<section title="with postamble and title...">
806<figure title="another figure" anchor="testfig">
807  <artwork>
808  +--+
809  |  |
810  +--+
811</artwork>
812<postamble>with postamble and title...</postamble>
813</figure>
814<t>
815  The figure above has the title "<xref target="testfig" format="title" />".
816</t>
817</section>
818
819<section title="Whitespace handling">
820<t>
821  Para...
822</t> 
823<figure>
824  <preamble>Leading whitespace</preamble>
825  <artwork>
826test test (leading ws)</artwork>
827</figure>
828<t>
829  Para...
830</t> 
831<figure>
832  <preamble>Trailing whitespace</preamble>
833  <artwork>test test (trailing ws)
834   </artwork>
835</figure>
836<t>
837  Para...
838</t> 
839<figure>
840  <preamble>No whitespace</preamble>
841  <artwork>test test (no ws)</artwork>
842</figure>
843<t>
844  Para...
845</t> 
846</section>
847
848<!-- as proposed by Bill F -->
849<section title="Whitespace around figures">
850<t>spacing paragraph</t>
851<figure><artwork>ART</artwork></figure>
852<t>spacing paragraph</t>
853<figure><preamble>preamble, then</preamble><artwork>ART</artwork></figure>
854<t>spacing paragraph</t>
855<figure><artwork>ART</artwork><postamble>then postamble</postamble></figure>
856<t>spacing paragraph</t>
857</section>
858
859<section title="data URIs">
860<section title="data URI as source (both @alt and text content)" anchor="artwork.src.data.uri.alt.text">
861<figure>
862  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
863  type="image/gif" alt="Portrait of Larry Masinter (contents of alt attribute)">
864    Portrait of Larry Masinter (text content of &lt;artwork&gt; element)
865  </artwork>
866</figure>
867</section>
868
869<section title="data URI as source (only text content, no @alt)" anchor="artwork.src.data.uri.text">
870<figure>
871  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
872  type="image/gif">
873    Portrait of Larry Masinter (text content of &lt;artwork&gt; element)
874  </artwork>
875</figure>
876</section>
877
878<section title="data URI as source (only @alt attribute)" anchor="artwork.src.data.uri.alt">
879<figure>
880  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
881  type="image/gif" alt="Portrait of Larry Masinter (contents of alt attribute)"/>
882</figure>
883</section>
884</section>
885
886<section title="alignment">
887
888<section title="left" anchor="artwork.align.left">
889<figure>
890  <preamble>preamble</preamble>
891  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
892  type="image/gif" align="left"/>
893  <postamble>postamble</postamble>
894</figure>
895<figure>
896  <preamble>preamble</preamble>
897  <artwork align="left">FOO</artwork>
898  <postamble>postamble</postamble>
899</figure>
900</section>
901
902<section title="right" anchor="artwork.align.right">
903<figure>
904  <preamble>preamble</preamble>
905  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
906  type="image/gif" align="right"/>
907  <postamble>postamble</postamble>
908</figure>
909<figure>
910  <preamble>preamble</preamble>
911  <artwork align="right">FOO</artwork>
912  <postamble>postamble</postamble>
913</figure>
914</section>
915
916<section title="center" anchor="artwork.align.center">
917<figure>
918  <preamble>preamble</preamble>
919  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
920  type="image/gif" align="center"/>
921  <postamble>postamble</postamble>
922</figure>
923<figure>
924  <preamble>preamble</preamble>
925  <artwork align="center">FOO</artwork>
926  <postamble>postamble</postamble>
927</figure>
928</section>
929
930<section title="default" anchor="artwork.align.default">
931<figure>
932  <preamble>preamble</preamble>
933  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
934  type="image/gif"/>
935  <postamble>postamble</postamble>
936</figure>
937<figure>
938  <preamble>preamble</preamble>
939  <artwork>FOO</artwork>
940  <postamble>postamble</postamble>
941</figure>
942</section>
943</section>
944
945<section title="artwork width/height">
946
947<section title="width50%">
948<figure>
949  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
950  type="image/gif" width="50%"/>
951</figure>
952</section>
953
954<section title="width50">
955<figure>
956  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
957  type="image/gif" width="50"/>
958</figure>
959</section>
960
961<section title="height50">
962<figure>
963  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
964  type="image/gif" height="50"/>
965</figure>
966</section>
967
968<section title="height30width60">
969<figure>
970  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
971  type="image/gif" height="30" width="60"/>
972</figure>
973</section>
974
975</section>
976
977<section title="figure/artwork attribute overlap" anchor="figure.artwork.attribute.overlap">
978<section title="src overlap">
979<t>
980  Both figure and artwork having @src:
981</t>
982<figure src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%3E%0A%20%20%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2225%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22green%22%2F%3E%0A%3C%2Fsvg%3E%0A">
983  <preamble>Preamble...</preamble>
984  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
985  type="image/gif"/>
986</figure>
987</section>
988<section title="align overlap">
989<t>
990  figure/align=right, artwork/@align=center:
991</t>
992<figure align="right" title="title">
993  <preamble>Preamble...</preamble>
994  <artwork align="center">
995TEST
996  </artwork>
997  <postamble>Postamble...</postamble>
998</figure>
999</section>
1000<section title="align inheritance">
1001<t>
1002  figure/align=right, artwork/@align not specified:
1003</t>
1004<figure align="right" title="title">
1005  <preamble>Preamble...</preamble>
1006  <artwork>
1007TEST
1008  </artwork>
1009  <postamble>Postamble...</postamble>
1010</figure>
1011</section>
1012</section>
1013
1014<section title="titles/numbering" anchor="titles.numbering">
1015
1016<section title="just anchor" anchor="titles.numbering.just.anchor">
1017<figure anchor="just.anchor">
1018  <artwork>FOO</artwork>
1019</figure>
1020</section>
1021
1022<section title="just anchor (with suppress)" anchor="titles.numbering.just.anchor.with.suppress">
1023<figure anchor="just.anchor.with.suppress" suppress-title="true">
1024  <artwork>FOO</artwork>
1025</figure>
1026<t>
1027  Above is <xref target="just.anchor.with.suppress"/>.
1028</t>
1029</section>
1030
1031<section title="just title" anchor="titles.numbering.just.title">
1032<figure title="figure title">
1033  <artwork>FOO</artwork>
1034</figure>
1035</section>
1036
1037<section title="just title (with suppress)" anchor="titles.numbering.just.title.with.suppress">
1038<figure title="figure title" suppress-title="true">
1039  <artwork>FOO</artwork>
1040</figure>
1041</section>
1042
1043</section>
1044
1045<section title="SVG">
1046<t>
1047  Inclusion of SVG:
1048</t>
1049<figure><artwork src="testcase.svg" type="image/svg+xml">
1050  Fallback content for UAs that do not support SVG.
1051</artwork></figure>
1052</section>
1053
1054<section title="Code Components" anchor="code.components">
1055<t>
1056  Marking up Code Components according to the
1057  <eref target="http://trustee.ietf.org/docs/IETF-Trust-License-Policy.pdf">Legal Provisions Relating to IETF Documents</eref>:
1058</t>
1059<t>Using @x:is-code-component</t>
1060<figure><artwork type="code" x:is-code-component="yes" x:lang="">
1061int main(int argc, char **argv) {
1062  return -1;
1063}
1064</artwork></figure>
1065<t>Using @markers</t>
1066<sourcecode markers="true">
1067int main(int argc, char **argv) {
1068  return -1;
1069}
1070</sourcecode>
1071<t>Using @markers and @name</t>
1072<sourcecode markers="true" name="abc.c">
1073int main(int argc, char **argv) {
1074  return -1;
1075}
1076</sourcecode>
1077</section>
1078
1079<section title="inside &lt;t>">
1080<t>
1081  <figure>
1082    <artwork>FOOBAR</artwork>
1083  </figure>
1084</t>
1085</section>
1086
1087</section>
1088
1089<section title="xrefs" anchor="xrefs">
1090<t>
1091  This section contains test cases for &lt;xref/&gt;, testing 9 different types of targets. Each target is tested for all possible values of the @format attribute, and for &lt;xref/&gt; elements with and without content.
1092  <spanx>These tests were contributed by Erik Wilde.</spanx>
1093</t>
1094<section title="Tests for section-anchor" anchor="section-anchor-tests">
1095  <t>&lt;xref target="section-anchor"/&gt;: <xref target="section-anchor"/>
1096  </t>
1097  <t>&lt;xref target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="section-anchor">TEXT-CONTENT</xref>
1098  </t>
1099  <t>&lt;xref format="counter" target="section-anchor"/&gt;: <xref format="counter" target="section-anchor"/>
1100  </t>
1101  <t>&lt;xref format="counter" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="section-anchor">TEXT-CONTENT</xref>
1102  </t>
1103  <t>&lt;xref format="title" target="section-anchor"/&gt;: <xref format="title" target="section-anchor"/>
1104  </t>
1105  <t>&lt;xref format="title" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="section-anchor">TEXT-CONTENT</xref>
1106  </t>
1107  <t>&lt;xref format="none" target="section-anchor"/&gt;: <xref format="none" target="section-anchor"/>
1108  </t>
1109  <t>&lt;xref format="none" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="section-anchor">TEXT-CONTENT</xref>
1110  </t>
1111  <t>&lt;xref format="default" target="section-anchor"/&gt;: <xref format="default" target="section-anchor"/>
1112  </t>
1113  <t>&lt;xref format="default" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="section-anchor">TEXT-CONTENT</xref>
1114  </t>
1115</section>
1116<section title="Tests for t-anchor" anchor="t-anchor-tests">
1117  <t>&lt;xref target="t-anchor"/&gt;: <xref target="t-anchor"/>
1118  </t>
1119  <t>&lt;xref target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="t-anchor">TEXT-CONTENT</xref>
1120  </t>
1121  <t>&lt;xref format="counter" target="t-anchor"/&gt;: <xref format="counter" target="t-anchor"/>
1122  </t>
1123  <t>&lt;xref format="counter" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="t-anchor">TEXT-CONTENT</xref>
1124  </t>
1125  <t>&lt;xref format="title" target="t-anchor"/&gt;: <xref format="title" target="t-anchor"/>
1126  </t>
1127  <t>&lt;xref format="title" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="t-anchor">TEXT-CONTENT</xref>
1128  </t>
1129  <t>&lt;xref format="none" target="t-anchor"/&gt;: <xref format="none" target="t-anchor"/>
1130  </t>
1131  <t>&lt;xref format="none" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="t-anchor">TEXT-CONTENT</xref>
1132  </t>
1133  <t>&lt;xref format="default" target="t-anchor"/&gt;: <xref format="default" target="t-anchor"/>
1134  </t>
1135  <t>&lt;xref format="default" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="t-anchor">TEXT-CONTENT</xref>
1136  </t>
1137</section>
1138<section title="Tests for list-t-anchor-empty" anchor="list-t-anchor-empty-tests">
1139  <t>&lt;xref target="list-t-anchor-empty"/&gt;: <xref target="list-t-anchor-empty"/>
1140  </t>
1141  <t>&lt;xref target="list-t-anchor-empty"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="list-t-anchor-empty">TEXT-CONTENT</xref>
1142  </t>
1143  <t>&lt;xref format="counter" target="list-t-anchor-empty"/&gt;: <xref format="counter" target="list-t-anchor-empty"/>
1144  </t>
1145  <t>&lt;xref format="counter" target="list-t-anchor-empty"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="list-t-anchor-empty">TEXT-CONTENT</xref>
1146  </t>
1147  <t>&lt;xref format="title" target="list-t-anchor-empty"/&gt;: <xref format="title" target="list-t-anchor-empty"/>
1148  </t>
1149  <t>&lt;xref format="title" target="list-t-anchor-empty"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="list-t-anchor-empty">TEXT-CONTENT</xref>
1150  </t>
1151  <t>&lt;xref format="none" target="list-t-anchor-empty"/&gt;: <xref format="none" target="list-t-anchor-empty"/>
1152  </t>
1153  <t>&lt;xref format="none" target="list-t-anchor-empty"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="list-t-anchor-empty">TEXT-CONTENT</xref>
1154  </t>
1155  <t>&lt;xref format="default" target="list-t-anchor-empty"/&gt;: <xref format="default" target="list-t-anchor-empty"/>
1156  </t>
1157  <t>&lt;xref format="default" target="list-t-anchor-empty"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="list-t-anchor-empty">TEXT-CONTENT</xref>
1158  </t>
1159</section>
1160<section title="Tests for list-t-anchor-numbers" anchor="list-t-anchor-numbers-tests">
1161  <t>&lt;xref target="list-t-anchor-numbers"/&gt;: <xref target="list-t-anchor-numbers"/>
1162  </t>
1163  <t>&lt;xref target="list-t-anchor-numbers"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="list-t-anchor-numbers">TEXT-CONTENT</xref>
1164  </t>
1165  <t>&lt;xref format="counter" target="list-t-anchor-numbers"/&gt;: <xref format="counter" target="list-t-anchor-numbers"/>
1166  </t>
1167  <t>&lt;xref format="counter" target="list-t-anchor-numbers"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="list-t-anchor-numbers">TEXT-CONTENT</xref>
1168  </t>
1169  <t>&lt;xref format="title" target="list-t-anchor-numbers"/&gt;: <xref format="title" target="list-t-anchor-numbers"/>
1170  </t>
1171  <t>&lt;xref format="title" target="list-t-anchor-numbers"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="list-t-anchor-numbers">TEXT-CONTENT</xref>
1172  </t>
1173  <t>&lt;xref format="none" target="list-t-anchor-numbers"/&gt;: <xref format="none" target="list-t-anchor-numbers"/>
1174  </t>
1175  <t>&lt;xref format="none" target="list-t-anchor-numbers"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="list-t-anchor-numbers">TEXT-CONTENT</xref>
1176  </t>
1177  <t>&lt;xref format="default" target="list-t-anchor-numbers"/&gt;: <xref format="default" target="list-t-anchor-numbers"/>
1178  </t>
1179  <t>&lt;xref format="default" target="list-t-anchor-numbers"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="list-t-anchor-numbers">TEXT-CONTENT</xref>
1180  </t>
1181</section>
1182<section title="Tests for list-t-anchor-letters" anchor="list-t-anchor-letters-tests">
1183  <t>&lt;xref target="list-t-anchor-letters"/&gt;: <xref target="list-t-anchor-letters"/>
1184  </t>
1185  <t>&lt;xref target="list-t-anchor-letters"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="list-t-anchor-letters">TEXT-CONTENT</xref>
1186  </t>
1187  <t>&lt;xref format="counter" target="list-t-anchor-letters"/&gt;: <xref format="counter" target="list-t-anchor-letters"/>
1188  </t>
1189  <t>&lt;xref format="counter" target="list-t-anchor-letters"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="list-t-anchor-letters">TEXT-CONTENT</xref>
1190  </t>
1191  <t>&lt;xref format="title" target="list-t-anchor-letters"/&gt;: <xref format="title" target="list-t-anchor-letters"/>
1192  </t>
1193  <t>&lt;xref format="title" target="list-t-anchor-letters"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="list-t-anchor-letters">TEXT-CONTENT</xref>
1194  </t>
1195  <t>&lt;xref format="none" target="list-t-anchor-letters"/&gt;: <xref format="none" target="list-t-anchor-letters"/>
1196  </t>
1197  <t>&lt;xref format="none" target="list-t-anchor-letters"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="list-t-anchor-letters">TEXT-CONTENT</xref>
1198  </t>
1199  <t>&lt;xref format="default" target="list-t-anchor-letters"/&gt;: <xref format="default" target="list-t-anchor-letters"/>
1200  </t>
1201  <t>&lt;xref format="default" target="list-t-anchor-letters"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="list-t-anchor-letters">TEXT-CONTENT</xref>
1202  </t>
1203</section>
1204<section title="Tests for list-t-anchor-hanging" anchor="list-t-anchor-hanging-tests">
1205  <t>&lt;xref target="list-t-anchor-hanging"/&gt;: <xref target="list-t-anchor-hanging"/>
1206  </t>
1207  <t>&lt;xref target="list-t-anchor-hanging"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="list-t-anchor-hanging">TEXT-CONTENT</xref>
1208  </t>
1209  <t>&lt;xref format="counter" target="list-t-anchor-hanging"/&gt;: <xref format="counter" target="list-t-anchor-hanging"/>
1210  </t>
1211  <t>&lt;xref format="counter" target="list-t-anchor-hanging"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="list-t-anchor-hanging">TEXT-CONTENT</xref>
1212  </t>
1213  <t>&lt;xref format="title" target="list-t-anchor-hanging"/&gt;: <xref format="title" target="list-t-anchor-hanging"/>
1214  </t>
1215  <t>&lt;xref format="title" target="list-t-anchor-hanging"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="list-t-anchor-hanging">TEXT-CONTENT</xref>
1216  </t>
1217  <t>&lt;xref format="none" target="list-t-anchor-hanging"/&gt;: <xref format="none" target="list-t-anchor-hanging"/>
1218  </t>
1219  <t>&lt;xref format="none" target="list-t-anchor-hanging"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="list-t-anchor-hanging">TEXT-CONTENT</xref>
1220  </t>
1221  <t>&lt;xref format="default" target="list-t-anchor-hanging"/&gt;: <xref format="default" target="list-t-anchor-hanging"/>
1222  </t>
1223  <t>&lt;xref format="default" target="list-t-anchor-hanging"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="list-t-anchor-hanging">TEXT-CONTENT</xref>
1224  </t>
1225</section>
1226<section title="Tests for texttable-anchor" anchor="texttable-anchor-tests">
1227  <t>&lt;xref target="texttable-anchor"/&gt;: <xref target="texttable-anchor"/>
1228  </t>
1229  <t>&lt;xref target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="texttable-anchor">TEXT-CONTENT</xref>
1230  </t>
1231  <t>&lt;xref format="counter" target="texttable-anchor"/&gt;: <xref format="counter" target="texttable-anchor"/>
1232  </t>
1233  <t>&lt;xref format="counter" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="texttable-anchor">TEXT-CONTENT</xref>
1234  </t>
1235  <t>&lt;xref format="title" target="texttable-anchor"/&gt;: <xref format="title" target="texttable-anchor"/>
1236  </t>
1237  <t>&lt;xref format="title" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="texttable-anchor">TEXT-CONTENT</xref>
1238  </t>
1239  <t>&lt;xref format="none" target="texttable-anchor"/&gt;: <xref format="none" target="texttable-anchor"/>
1240  </t>
1241  <t>&lt;xref format="none" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="texttable-anchor">TEXT-CONTENT</xref>
1242  </t>
1243  <t>&lt;xref format="default" target="texttable-anchor"/&gt;: <xref format="default" target="texttable-anchor"/>
1244  </t>
1245  <t>&lt;xref format="default" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="texttable-anchor">TEXT-CONTENT</xref>
1246  </t>
1247</section>
1248<section title="Tests for figure-anchor" anchor="figure-anchor-tests">
1249  <t>&lt;xref target="figure-anchor"/&gt;: <xref target="figure-anchor"/>
1250  </t>
1251  <t>&lt;xref target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="figure-anchor">TEXT-CONTENT</xref>
1252  </t>
1253  <t>&lt;xref format="counter" target="figure-anchor"/&gt;: <xref format="counter" target="figure-anchor"/>
1254  </t>
1255  <t>&lt;xref format="counter" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="figure-anchor">TEXT-CONTENT</xref>
1256  </t>
1257  <t>&lt;xref format="title" target="figure-anchor"/&gt;: <xref format="title" target="figure-anchor"/>
1258  </t>
1259  <t>&lt;xref format="title" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="figure-anchor">TEXT-CONTENT</xref>
1260  </t>
1261  <t>&lt;xref format="none" target="figure-anchor"/&gt;: <xref format="none" target="figure-anchor"/>
1262  </t>
1263  <t>&lt;xref format="none" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="figure-anchor">TEXT-CONTENT</xref>
1264  </t>
1265  <t>&lt;xref format="default" target="figure-anchor"/&gt;: <xref format="default" target="figure-anchor"/>
1266  </t>
1267  <t>&lt;xref format="default" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="figure-anchor">TEXT-CONTENT</xref>
1268  </t>
1269</section>
1270<section title="Tests for reference-anchor" anchor="reference-anchor-tests">
1271  <t>&lt;xref target="reference-anchor"/&gt;: <xref target="reference-anchor"/>
1272  </t>
1273  <t>&lt;xref target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="reference-anchor">TEXT-CONTENT</xref>
1274  </t>
1275  <t>&lt;xref format="counter" target="reference-anchor"/&gt;: <xref format="counter" target="reference-anchor"/>
1276  </t>
1277  <t>&lt;xref format="counter" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="reference-anchor">TEXT-CONTENT</xref>
1278  </t>
1279  <t>&lt;xref format="title" target="reference-anchor"/&gt;: <xref format="title" target="reference-anchor"/>
1280  </t>
1281  <t>&lt;xref format="title" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="reference-anchor">TEXT-CONTENT</xref>
1282  </t>
1283  <t>&lt;xref format="none" target="reference-anchor"/&gt;: <xref format="none" target="reference-anchor"/>
1284  </t>
1285  <t>&lt;xref format="none" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="reference-anchor">TEXT-CONTENT</xref>
1286  </t>
1287  <t>&lt;xref format="default" target="reference-anchor"/&gt;: <xref format="default" target="reference-anchor"/>
1288  </t>
1289  <t>&lt;xref format="default" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="reference-anchor">TEXT-CONTENT</xref>
1290  </t>
1291</section>
1292<section title="Tests for cref-anchor" anchor="cref-anchor-tests">
1293  <t>&lt;xref target="cref-anchor"/&gt;: <xref target="cref-anchor"/>
1294  </t>
1295  <t>&lt;xref target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="cref-anchor">TEXT-CONTENT</xref>
1296  </t>
1297  <t>&lt;xref format="counter" target="cref-anchor"/&gt;: <xref format="counter" target="cref-anchor"/>
1298  </t>
1299  <t>&lt;xref format="counter" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="cref-anchor">TEXT-CONTENT</xref>
1300  </t>
1301  <t>&lt;xref format="title" target="cref-anchor"/&gt;: <xref format="title" target="cref-anchor"/>
1302  </t>
1303  <t>&lt;xref format="title" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="cref-anchor">TEXT-CONTENT</xref>
1304  </t>
1305  <t>&lt;xref format="none" target="cref-anchor"/&gt;: <xref format="none" target="cref-anchor"/>
1306  </t>
1307  <t>&lt;xref format="none" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="cref-anchor">TEXT-CONTENT</xref>
1308  </t>
1309  <t>&lt;xref format="default" target="cref-anchor"/&gt;: <xref format="default" target="cref-anchor"/>
1310  </t>
1311  <t>&lt;xref format="default" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="cref-anchor">TEXT-CONTENT</xref>
1312  </t>
1313</section>
1314<section title="Test Targets" anchor="section-anchor">
1315   <t>This section contains a couple of markup constructs carrying anchors (this is paragraph 1).</t>
1316   <t anchor="t-anchor">Some regular paragraph text... (this is paragraph 2)</t>
1317   <t>
1318      <list>
1319         <t anchor="list-t-anchor-empty">Some paragraph in a list... (this is list item 1 in a default style list)</t>
1320      </list>
1321   </t>
1322   <t>
1323      <list style="numbers">
1324         <t anchor="list-t-anchor-numbers">Some paragraph in a list... (this is list item 1 in a "numbers" style list)</t>
1325      </list>
1326   </t>
1327   <t>
1328      <list style="letters">
1329         <t anchor="list-t-anchor-letters">Some paragraph in a list... (this is list item 1 in a "letters" style list)</t>
1330      </list>
1331   </t>
1332   <t>
1333      <list style="hanging">
1334         <t anchor="list-t-anchor-hanging" hangText="foobar">Some paragraph in a list... (this is list item 1 in a "hanging" style list)</t>
1335      </list>
1336   </t>
1337   <texttable anchor="texttable-anchor" title="TEXTTABLE-TITLE">
1338      <ttcol>Some texttable text...</ttcol><c>Table cell</c>
1339   </texttable>
1340   <figure anchor="figure-anchor" title="FIGURE-TITLE">
1341      <artwork>Some figure text...</artwork>
1342   </figure>
1343   <t>
1344      <cref anchor="cref-anchor">A comment.</cref>
1345   </t>
1346</section>
1347</section>
1348
1349
1350<section title="More References" anchor="refs">
1351
1352<section title="xref to named &lt;spanx> element">
1353<t>
1354  <spanx anchor="spanx.anchor">With content</spanx>: see <xref target="spanx.anchor" format="none">this sentence</xref>.
1355</t>
1356</section>
1357
1358<section title="xref with no content and counter formatting">
1359<t>
1360See [<xref target="RFC2026" format="counter"/>, <xref target="RFC2396" format="counter"/>].
1361</t>
1362</section>
1363
1364<section title="eref with no content">
1365<t>
1366See also <eref target="http://greenbytes.de/tech/webdav" />. Here's another
1367one that is quite long: <eref target="http://greenbytes.de/tech/webdav/draft-reschke-rfc3744bis-issues.html#5.7_inherited-acl-set-protected"/>. Does it break properly?
1368</t>
1369</section>
1370
1371<section title="eref with content">
1372<t>
1373See also <eref target="http://greenbytes.de/tech/webdav">greenbytes WebDAV resources</eref>.
1374</t>
1375</section>
1376
1377<section title="iref inside paragraph">
1378<t>
1379This paragraph contains an <iref item="inline iref"/>inline iref.
1380</t>
1381</section>
1382
1383<section title="iref before paragraph">
1384<iref item="section iref"/>
1385<t>
1386This paragraph follows an iref.
1387</t>
1388</section>
1389
1390<section title="iref at start of paragraph with list">
1391<t>
1392<iref item="paragraph with list start iref"/>
1393<list>
1394  <t>foo</t>
1395</list>
1396</t>
1397</section>
1398
1399<section title="xref with pageno attribute" anchor="xref.pageno">
1400<t>
1401A reference to <xref target="xref.pageno" pageno="true"/>.
1402</t>
1403</section>
1404
1405<section anchor="xref.in.title">
1406  <name>xref in section title: <xref target="RFC2396" format="none">RFC 2396</xref></name>
1407<t>
1408  Bar.
1409</t>
1410</section>
1411
1412<section title="xref with x:fmt='none'">
1413  <t><xref target="RFC2396" x:fmt="none">plain text</xref>.</t>
1414</section>
1415
1416<section title="xref with markup in context">
1417  <t><xref target="RFC2396">the <em>old</em> URI spec</xref>.</t>
1418</section>
1419
1420</section>
1421
1422<section title="Paragraph formatting" anchor="formatting">
1423<t>
1424  This is the first sentence of the paragraph.  This is the second sentence of
1425  the paragraph (with two leading blanks).
1426  Here's another sentence that was started on a separate line in the input
1427  file.
1428</t>
1429<t>
1430  This is the second paragraph.
1431</t>
1432<t><?foo?>
1433  This paragraph has ignorable whitespace (but also contains processing instructions).
1434<?bar?></t>
1435<t>
1436  This paragraph has ignorable whitespace (but also contains processing instructions<?qux1?>).
1437</t>
1438<t>
1439  This paragraph has ignorable whitespace (but also contains processing <?qux2?> instructions).
1440</t>
1441<t><!--foo-->
1442  This paragraph has ignorable whitespace (but also contains comments).
1443<!--bar--></t>
1444<t>
1445  This paragraph has ignorable whitespace (but also contains comments<!--qux1-->).
1446</t>
1447<t>
1448  This paragraph has ignorable whitespace (but also contains <!--qux2--> comments).
1449</t>
1450<t><x:anchor-alias value="foo"/>
1451  This paragraph has ignorable whitespace (but also contains non-text-generating XML nodes).
1452<iref item="foo"/></t>
1453<t>
1454  This paragraph has ignorable whitespace (but also contains non-text-generating XML nodes<iref item="foo"/>).
1455</t>
1456</section>
1457
1458<section title="Sections">
1459
1460<section title="Subsection with TOC entry">
1461</section>
1462
1463<section title="Subsection without TOC entry" toc="exclude">
1464
1465<section title="Sub-subsection with TOC entry">
1466</section>
1467
1468</section>
1469
1470<section title="x.x">
1471<section title="x.x.x">
1472<section title="x.x.x.x">
1473<section title="x.x.x.x.x">
1474<section title="x.x.x.x.x.x">
1475<section title="x.x.x.x.x.x.x">
1476<section title="x.x.x.x.x.x.x.x">
1477</section>
1478</section>
1479</section>
1480</section>
1481</section>
1482</section>
1483</section>
1484
1485</section>
1486
1487<section title="Comments" anchor="comments">
1488<t>
1489  This line contains a few comments.
1490  <cref anchor="comment-test" source="JRE">No anchor, source given.</cref>
1491  This line contains a few comments.
1492  <cref anchor="comment1">Anchor given, no source.</cref>
1493  This line contains a few comments.
1494  <cref anchor="comment2" source="JRE">Both specified.</cref>
1495  This line contains a few comments.
1496  <cref>No anchor, no source.</cref>
1497  This line contains a few comments.
1498  <cref>No anchor, no source, but embedded markup: <eref target="http://xml.resource.org"/>.</cref>
1499  This line contains a few comments.
1500</t>
1501<t>
1502  <cref>A comment containing &lt;x:ref>: <x:ref>comments</x:ref>.</cref>
1503</t>
1504</section>
1505
1506<section title="Artwork Width">
1507<figure>
1508<preamble>
1509This should fit (69 characters plus three spaces of indentation in text output).
1510</preamble>
1511<artwork>
1512012345678901234567890123456789012345678901234567890123456789012345678
1513</artwork>
1514</figure>
1515<figure>
1516<preamble>
1517This shouldn't.
1518</preamble>
1519<artwork>
15200123456789012345678901234567890123456789012345678901234567890123456789
1521</artwork>
1522</figure>
1523<figure><artwork x:indent-with="**********">
1524(IN TEXT OUTPUT INDENTED BY 10)
1525012345678901234567890123456789012345678901234567890123456789012
1526</artwork></figure>
1527</section>
1528
1529<section title="Extensions" anchor="extensions">
1530<t>
1531  These are tests for extensions done in <spanx style="verb">rfc2629.xslt</spanx>.
1532  Do not expect them to work out-of-the-box in <spanx style="verb">xml2rfc</spanx>.
1533</t>
1534
1535<section title="Markup in figure/artwork">
1536<figure>
1537<artwork>
1538Internal References: a test reference to <xref target="RFC2396"/>
1539
1540External References: a test reference to <eref target="http://xml.resource.org"/>
1541
1542<iref item="&lt;iref> in &lt;artwork>"/>a test index entry inside a figure
1543
1544Styling: <spanx>&lt;spanx></spanx> inside artwork
1545</artwork>
1546</figure>
1547</section>
1548
1549<section title="Measuring Lengths">
1550<figure>
1551<artwork type="message/http; msgtype=&#34;request&#34;">
1552PUT / HTTP/1.1
1553Host: example.org
1554Content-Type: application/xml
1555Content-Length: <x:length-of target="req1"/>
1556
1557<x:span anchor="req1">&lt;foo/></x:span></artwork></figure>
1558
1559<figure>
1560<preamble>...without indentation:</preamble>
1561<artwork type="message/http; msgtype=&#34;request&#34;">
1562PUT / HTTP/1.1
1563Host: example.org
1564Content-Type: text/plain
1565Content-Length: <x:length-of target="req2"/>
1566
1567<x:span anchor="req2">Line 1
1568Line 2
1569</x:span></artwork></figure>
1570
1571<figure>
1572<preamble>...with indentation:</preamble>
1573<artwork type="message/http; msgtype=&#34;request&#34;">
1574  PUT / HTTP/1.1
1575  Host: example.org
1576  Content-Type: text/plain
1577  Content-Length: <x:length-of target="req3" indented="2"/>
1578
1579<x:span anchor="req3">  Line 1
1580  Line 2
1581</x:span></artwork></figure>
1582</section>
1583
1584<section title="Quotations">
1585  <t>
1586    Here's a quote:
1587    <x:q>This is a Quote.</x:q>
1588  </t>
1589  <t>
1590    Here's a block level quote:
1591  </t>
1592  <x:blockquote>
1593    <t>
1594      Here's a quote.
1595    </t>
1596    <t>
1597      More text.
1598    </t>
1599  </x:blockquote>
1600</section>
1601
1602<section title="Subsections">
1603  <t>
1604    <x:h>Foo</x:h>
1605  </t>
1606  <t>
1607    The line above should be marked up similar to a subsection heading.
1608  </t>
1609</section>
1610
1611<section title="Box Drawing">
1612<figure>
1613  <preamble>
1614    The figure below should use box drawing characters instead of
1615    "+", "-" and "|".
1616  </preamble>
1617  <artwork>
1618  <x:bt>+----------------+</x:bt>
1619  <x:bc>| This is a Box. |</x:bc>
1620  <x:bb>+----------------+</x:bb>
1621  </artwork>
1622</figure>
1623
1624</section>
1625
1626<section title="Computed Reference Targets" anchor="computed.reference.targets">
1627<t>
1628  Referring to this section by anchor name indirectly through the references:
1629  <xref target="TSTCS" x:fmt="of" x:rel="#computed.reference.targets"/>.
1630</t>
1631<t>
1632  (default formatting):
1633  <xref target="TSTCS" x:rel="#computed.reference.targets"/>.
1634</t>
1635<figure><artwork>
1636  Default inside a figure: <xref target="TSTCS" x:rel="#computed.reference.targets"/>
1637</artwork></figure>
1638<t>
1639  With a broken anchor:
1640  <xref target="TSTCS" x:rel="#a-target-that-isnt-defined"/>.
1641</t>
1642<t>
1643  To unnumbered section:
1644  <xref target="TSTCS" x:rel="#contributors"/>.
1645</t>
1646<t anchor="testpara">
1647  To paragraph:
1648  <xref target="TSTCS" x:rel="#testpara"/>.
1649</t>
1650</section>
1651
1652<section title="ABNF Support" anchor="abnf.support">
1653<section title="Expanding strings">
1654<figure><artwork type="abnf">
1655case-insensitive1 = "abcdefghijlkmnopqrstuvwxyz"
1656case-insensitive2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1657case-sensitive1 = <x:abnf-char-sequence>"abcdefghijlkmnopqrstuvwxyz"</x:abnf-char-sequence>
1658case-sensitive2 = <x:abnf-char-sequence>"ABCDEFGHIJKLMNOPQRSTUVWXYZ"</x:abnf-char-sequence>
1659</artwork></figure>
1660</section>
1661
1662<section title="Highlighting">
1663<figure>
1664<preamble>Extensions from RFC 7230:</preamble>
1665<artwork type="abnf">
1666x = 1#2y
1667</artwork></figure>
1668<figure>
1669<preamble>Extensions from RFC 7405:</preamble>
1670<artwork type="abnf">
1671x = %s"case-sensitive"
1672y = %i"case-insensitive"
1673</artwork></figure>
1674<figure>
1675<preamble>Literals:</preamble>
1676<artwork type="abnf">
1677binary = %b00-11 %b00.01.10.11
1678dec    = %d13.10
1679hex    = %x0F.0A
1680DIGIT  = %x30-39
1681DIGIT2 = %x30.31.32.33.34.35.36.37.38.39
1682; comment
1683string = "abcde &lt;y&gt;"
1684string = "foo;bar"
1685</artwork></figure>
1686<figure>
1687<preamble>Broken literals:</preamble>
1688<artwork type="abnf">
1689binary = %b00-12
1690DIGIT  = %x30-39-4A
1691string = "abcde"fgh"
1692</artwork></figure>
1693<figure>
1694<preamble>Prose:</preamble>
1695<artwork type="abnf">
1696foo = &lt;simple prose string&gt;
1697bar = &lt;with "double quotes"&gt;
1698qux = &lt;with '&lt;' inside&gt;
1699</artwork></figure>
1700<t>Using &lt;sourcecode&gt;:</t>
1701<sourcecode type="abnf">
1702left = right ; comment
1703</sourcecode>
1704<figure>
1705<preamble>Broken prose and string literals:</preamble>
1706<artwork type="abnf">
1707foo = &lt;no ABNF available,
1708  but that does not justify a line break&gt;
1709extra = &lt;good&gt;bad ; comment
1710bar = "illegal characters in string literal: &#9;"
1711qux = "runaway string
1712qux2 = "in string literal"
1713</artwork></figure>
1714</section>
1715</section>
1716
1717<section title="Referencing extensions" anchor="referencing.extensions">
1718  <x:anchor-alias value="Referencing extensions"/>
1719<t>
1720  Simple &lt;x:ref&gt;: <x:ref>referencing.extensions</x:ref>.
1721</t>
1722<t>
1723  Aliased &lt;x:ref&gt;: <x:ref>Referencing extensions</x:ref>.
1724</t>
1725</section>
1726
1727
1728</section>
1729
1730<section title="Blank Lines">
1731<t>
1732Just a forced <vspace/>
1733line break.
1734</t>
1735<t>
1736One <vspace blankLines="1"/>
1737blank line.
1738</t>
1739<t>
1740Seven <vspace blankLines="7"/>
1741blank lines.
1742</t>
1743<t>
1744999 <vspace blankLines="999"/>
1745blank lines (this is likely an attempt to force a pagebreak, thus the
1746generated HTML should <spanx>not</spanx> contain the blank lines, but only
1747one).
1748</t>
1749</section>
1750
1751<section title="Other">
1752
1753<section title="Comments in Text">
1754<t>
1755  First sentence (before XML comment, invisible here).
1756<!-- a comment -->
1757  Second sentence.
1758</t>
1759</section>
1760
1761<section title="Special Characters">
1762<section title="Non-Breaking Space" anchor="nbsp">
1763<t>
1764  Non&nbsp;breaking&nbsp;space.
1765  Non&nbsp;breaking&nbsp;space.
1766  Non&nbsp;breaking&nbsp;space.
1767  Non&nbsp;breaking&nbsp;space.
1768  Non&nbsp;breaking&nbsp;space.
1769  Non&nbsp;breaking&nbsp;space.
1770  Non&nbsp;breaking&nbsp;space.
1771  Non&nbsp;breaking&nbsp;space.
1772  Non&nbsp;breaking&nbsp;space.
1773  Non&nbsp;breaking&nbsp;space.
1774  Non&nbsp;breaking&nbsp;space.
1775  Non&nbsp;breaking&nbsp;space.
1776  Non&nbsp;breaking&nbsp;space.
1777  Non&nbsp;breaking&nbsp;space.
1778  Non&nbsp;breaking&nbsp;space.
1779  Non&nbsp;breaking&nbsp;space.
1780  Non&nbsp;breaking&nbsp;space.
1781  Non&nbsp;breaking&nbsp;space.
1782  Non&nbsp;breaking&nbsp;space.
1783  Non&nbsp;breaking&nbsp;space.
1784  Non&nbsp;breaking&nbsp;space.
1785  Non&nbsp;breaking&nbsp;space.
1786</t>
1787</section>
1788<section title="Non-Breaking Hyphen" anchor="nbhy">
1789<t>
1790  Non&nbhy;breaking&nbhy;hyphen.
1791  Non&nbhy;breaking&nbhy;hyphen.
1792  Non&nbhy;breaking&nbhy;hyphen.
1793  Non&nbhy;breaking&nbhy;hyphen.
1794  Non&nbhy;breaking&nbhy;hyphen.
1795  Non&nbhy;breaking&nbhy;hyphen.
1796  Non&nbhy;breaking&nbhy;hyphen.
1797  Non&nbhy;breaking&nbhy;hyphen.
1798  Non&nbhy;breaking&nbhy;hyphen.
1799  Non&nbhy;breaking&nbhy;hyphen.
1800  Non&nbhy;breaking&nbhy;hyphen.
1801  Non&nbhy;breaking&nbhy;hyphen.
1802  Non&nbhy;breaking&nbhy;hyphen.
1803  Non&nbhy;breaking&nbhy;hyphen.
1804  Non&nbhy;breaking&nbhy;hyphen.
1805  Non&nbhy;breaking&nbhy;hyphen.
1806  Non&nbhy;breaking&nbhy;hyphen.
1807  Non&nbhy;breaking&nbhy;hyphen.
1808  Non&nbhy;breaking&nbhy;hyphen.
1809  Non&nbhy;breaking&nbhy;hyphen.
1810  (wrt Apache FOP, see <eref target="http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200905.mbox/%3C4A035745.10601@freemail.gr%3E"/>)
1811</t>
1812</section>
1813<section title="Dashes" anchor="dashes">
1814<t>
1815  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1816  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1817  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1818  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1819  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1820</t>
1821<t>
1822  mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces.
1823  mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces.
1824  mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces.
1825  mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces.
1826  mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces. mdash&mdash;with no spaces.
1827</t>
1828<t>
1829  mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces.
1830  mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces.
1831  mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces.
1832  mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces.
1833  mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces. mdash&thinsp;&mdash;&thinsp;with thin spaces.
1834</t>
1835</section>
1836<x:u-map>
1837<x:c c="A" n="65" d="LATIN CAPITAL LETTER A"/>
1838<x:c c="B" n="66" d="LATIN CAPITAL LETTER B"/>
1839<x:c c="C" n="67" d="LATIN CAPITAL LETTER C"/>
1840</x:u-map>
1841<section title="Non-ASCII">
1842<t>
1843  Expansions of "ABC":
1844</t>
1845<dl>
1846  <dt>num-lit-name</dt>
1847  <dd><u format="num-lit-name">ABC</u></dd>
1848  <dt>name-num-lit</dt>
1849  <dd><u format="num-lit-name">ABC</u></dd>
1850  <dt>name-num-lit</dt>
1851  <dd><u format="num-lit-name">ABC</u></dd>
1852  <dt>test {name} foo {lit} bar</dt>
1853  <dd><u format="test {name} foo {lit} bar">ABC</u></dd>
1854</dl>
1855</section>
1856</section>
1857
1858</section>
1859<section title="Includes">
1860<t>
1861  <xref target="RFC7749"/>.
1862</t>
1863<t>
1864  <xref target="RFC7749">with text content</xref>.
1865</t>
1866</section>
1867
1868    </middle>
1869
1870        <back>
1871  <references>
1872  <reference anchor='RFC2026'>
1873
1874<front>
1875<title abbrev='Internet Standards Process'>The Internet Standards Process -- Revision 3</title>
1876<author initials='S.' surname='Bradner' fullname='Scott O. Bradner'>
1877<organization>Harvard University</organization>
1878<address>
1879<postal>
1880<street>1350 Mass. Ave.</street>
1881<city>Cambridge</city>
1882<region>MA</region>
1883<code>02138</code>
1884<country>US</country></postal>
1885<phone>+1 617 495 3864</phone>
1886<email>sob@harvard.edu</email></address></author>
1887<date month='October' year='1996' />
1888<abstract>
1889<t>This memo documents the process used by the Internet community for the standardization of protocols and procedures.  It defines the stages in the standardization process, the requirements for moving a document between stages and the types of documents used during this process.  It also addresses the intellectual property rights and copyright issues associated with the standards process.</t></abstract></front>
1890
1891<seriesInfo name='BCP' value='9' />
1892<seriesInfo name='RFC' value='2026' />
1893<seriesInfo name='DOI' value='10.17487/RFC2026' />
1894</reference>
1895
1896<reference anchor='RFC10000'>
1897  <front>
1898    <title>FUTURERFC</title>
1899    <author initials='J.' surname='Doe' fullname='John Doe'/>
1900    <date month='October' year='2018' />
1901  </front>
1902  <seriesInfo name='RFC' value='10000' />
1903</reference>
1904
1905<reference anchor="RFC2396">
1906
1907<front>
1908<title abbrev="URI Generic Syntax">Uniform Resource Identifiers (URI): Generic Syntax</title>
1909<author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1910<organization>World Wide Web Consortium</organization>
1911<address>
1912<postal>
1913<street>MIT Laboratory for Computer Science, NE43-356</street>
1914<street>545 Technology Square</street>
1915<city>Cambridge</city>
1916<region>MA</region>
1917<code>02139</code></postal>
1918<facsimile>+1(617)258-8682</facsimile>
1919<email>timbl@w3.org</email></address></author>
1920<author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
1921<organization>Department of Information and Computer Science</organization>
1922<address>
1923<postal>
1924<street>University of California, Irvine</street>
1925<city>Irvine</city>
1926<region>CA</region>
1927<code>92697-3425</code></postal>
1928<facsimile>+1(949)824-1715</facsimile>
1929<email>fielding@ics.uci.edu</email></address></author>
1930<author initials="L." surname="Masinter" fullname="Larry Masinter">
1931<organization>Xerox PARC</organization>
1932<address>
1933<postal>
1934<street>3333 Coyote Hill Road</street>
1935<city>Palo Alto</city>
1936<region>CA</region>
1937<code>94034</code></postal>
1938<facsimile>+1(415)812-4333</facsimile>
1939<email>masinter@parc.xerox.com</email></address></author>
1940<date month="August" year="1998"/>
1941<area>Applications</area>
1942<keyword>uniform resource</keyword>
1943<keyword>URI</keyword>
1944</front>
1945<seriesInfo name="RFC" value="2396"/>
1946<annotation>
1947  This RFC will soon be updated, check
1948  <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/rfc2396bis.html" /> for the latest draft.
1949</annotation>
1950<annotation>
1951  The issues list is at <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/issues.html" />.
1952</annotation>
1953
1954</reference>
1955
1956<reference anchor="TSTCS">
1957  <?rfc multiple-initials="no"?>
1958  <front>
1959        <title>Test cases for RFC2629 formatting</title>
1960
1961        <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
1962                <organization abbrev="greenbytes">greenbytes GmbH</organization>
1963        <address>
1964                <postal>
1965                <street>Hafenweg 16</street>
1966            <city>Muenster</city><region>NW</region><code>48155</code>
1967                <country>Germany</country>
1968                </postal>
1969                  <phone>+49 251 2807760</phone>       
1970        <facsimile>+49 251 2807761</facsimile> 
1971                  <email>julian.reschke@greenbytes.de</email>   
1972                  <uri>http://greenbytes.de/tech/webdav/</uri> 
1973                </address>
1974        </author>
1975    <date month="March" year="2008"/>
1976        </front>
1977  <x:source href="testcase.xml"/>
1978</reference>
1979
1980<reference anchor="reference-anchor">
1981  <x:source href="testcase.xml"/>
1982</reference>
1983
1984  <!--RFC include with URI -->
1985  <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7749.xml"?>
1986
1987  <!--RFC include with base name -->
1988  <?rfc include="reference.RFC.7991.xml"?>
1989
1990  <!--ID include with URI -->
1991  <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml-ids/reference.I-D.iab-xml2rfcv2.xml"?>
1992
1993  <!--ID include base name -->
1994  <?rfc include="reference.I-D.iab-xml2rfc.xml"?>
1995
1996  <!-- include with query parameter -->
1997  <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml7/reference.DOI.10.6028/nist.sp.800-185.xml?anchor=NIST.SP.800_185"?>
1998 
1999  <!-- x:include -->
2000  <include xmlns="http://www.w3.org/2001/XInclude" href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml-ids/reference.I-D.reschke-hab.xml"/>
2001
2002<reference anchor="Err607" target="http://www.rfc-editor.org"> 
2003<front> 
2004<title x:quotes="false">Errata ID 607</title>
2005<author><organization>RFC Errata</organization></author> 
2006<date></date>
2007</front>
2008<seriesInfo name="RFC" value="4627"/>
2009<annotation>Test for Errata formatting.</annotation>
2010</reference>
2011
2012  </references>
2013 
2014  <section title="Contributors" numbered="false" anchor="contributors">
2015    <t><iref item="Test in unnumbered section"/>Test.</t>
2016    <t>
2017      xref To unnumbered section within unnumbered section:
2018      <xref target="TSTCS" x:rel="#contributors"/>.
2019    </t>
2020    <x:contributor fullname="A. Nonymous" surname="Nonymous" initials="A.">
2021      <organization>Example</organization>
2022      <address>
2023        <email>a.nonymous@example.org</email>
2024      </address>
2025    </x:contributor>
2026    <t>
2027      Using &lt;contact> instead of &lt;x:contributor>:
2028    </t>
2029    <contact fullname="A. Nonymous" surname="Nonymous" initials="A.">
2030      <organization>Example</organization>
2031      <address>
2032        <email>a.nonymous@example.org</email>
2033      </address>
2034    </contact>
2035  </section>
2036 
2037  </back>
2038</rfc>
Note: See TracBrowser for help on using the repository browser.