source: rfc2629xslt/testcase.xml @ 2610

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

bump up document dates, update to latest version of rfc2629.xslt

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/xml
File size: 51.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 vspace-pagebreak="999" ?>
11<?rfc multiple-initials="yes"?>
12<?rfc private="XML2RFC Test Cases"?>
13<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
14  <!ENTITY nbsp "&#160;">
15  <!ENTITY thinsp "&#8202;">
16  <!ENTITY nbhy "&#8209;">
17  <!ENTITY ndash "&#8211;">
18  <!ENTITY mdash "&#8212;">
19]>
20<rfc xmlns:x="http://purl.org/net/xml2rfc/ext">
21        <front>
22        <title>Test cases for XML2RFC formatting</title>
23
24        <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
25                <organization abbrev="greenbytes">greenbytes GmbH</organization>
26        <address>
27                <postal>
28                <street>Hafenweg 16</street>
29            <code>48155</code><city>Muenster</city>
30                <country>Germany</country>
31                </postal>
32                  <phone>+49 251 2807760</phone>       
33                  <email>julian.reschke@greenbytes.de</email>   
34                  <uri>http://greenbytes.de/tech/webdav/</uri> 
35                  </address>
36        </author>
37
38    <date/>
39    <keyword>RFC2629</keyword>
40    <keyword>test case</keyword>
41    <keyword>xml2rfc</keyword>
42        </front>
43
44        <middle>
45
46<section title="Lists" anchor="lists">
47
48<section title="hanging list">
49<section title="default">
50<t><list style="hanging">
51  <t hangText="Name:">timeout</t>
52  <t hangText="Namespace:">DAV:</t>
53  <t hangText="Purpose:">The timeout associated with a lock</t>
54  <t hangText="Value:">TimeType ;Defined in section 9.8</t>
55</list></t></section>
56
57<section title="hanging list with hangIndent 7">
58<t><list style="hanging" hangIndent="7">
59  <t hangText="0">0</t>
60  <t hangText="01">01</t>
61  <t hangText="012">012</t>
62  <t hangText="0123">0123</t>
63  <t hangText="01234">01234</t>
64  <t hangText="012345">012345</t>
65  <t hangText="0123456">0123456</t>
66  <t hangText="01234567">01234567</t>
67  <t hangText="012345678">012345678</t>
68  <t hangText="0123456789">0123456789</t>
69</list></t></section>
70
71<section title="hanging list with hangIndent 0">
72<t><list style="hanging" hangIndent="0">
73  <t hangText="0">0</t>
74  <t hangText="01">01</t>
75  <t hangText="012">012</t>
76  <t hangText="0123">0123</t>
77  <t hangText="01234">01234</t>
78  <t hangText="012345">012345</t>
79  <t hangText="0123456">0123456</t>
80  <t hangText="01234567">01234567</t>
81  <t hangText="012345678">012345678</t>
82  <t hangText="0123456789">0123456789</t>
83</list></t></section>
84</section>
85
86<section title="numbered list" anchor="ordered.list.numbers">
87<t>
88A numbered list:
89<list style="numbers">
90  <t>one</t>
91  <t>two</t>
92  <t anchor="ordered.list.numbers.last">three</t>
93</list>
94</t>
95</section>
96
97<section title="ordered list (letters)" anchor="ordered.list.letters">
98<t>
99An ordered list using letters:
100<list style="letters">
101  <t>one</t>
102  <t>two</t>
103  <t>three</t>
104  <t>one</t>
105  <t>two</t>
106  <t>three</t>
107  <t>one</t>
108  <t>two</t>
109  <t>three</t>
110  <t>one</t>
111  <t>two</t>
112  <t>three</t>
113  <t>one</t>
114  <t>two</t>
115  <t>three</t>
116  <t>one</t>
117  <t>two</t>
118  <t>three</t>
119  <t>one</t>
120  <t>two</t>
121  <t>three</t>
122  <t>one</t>
123  <t>two</t>
124  <t>three</t>
125  <t>one</t>
126  <t>two</t>
127  <t>three</t>
128  <t>one</t>
129  <t>two</t>
130  <t anchor="ordered.list.letters.last">three</t>
131</list>
132</t>
133</section>
134
135<section title="no explicit counters">
136<t>
137  Example for numbered list with user-defined-format:
138  <list style="format R%d:">
139    <t>R1</t>
140    <t>R2</t>
141  </list>
142</t>
143<t>
144  Another list:
145  <list style="format S%d:">
146    <t>S1</t>
147    <t>S2</t>
148  </list>
149</t>
150<t>
151  Next list should continue counting R's:
152  <list style="format R%d:">
153    <t>R3</t>
154    <t>R4</t>
155  </list>
156</t>
157<t>
158  Same with character-based numbering:
159  <list style="format c-%c:">
160    <t>c-a</t>
161    <t>c-b</t>
162  </list>
163</t>
164</section>
165
166<section title="with explicit counters">
167<t>
168  A few requirements:
169  <list style="format R%d:" counter="requirements">
170    <t>req R1</t>
171    <t>req R2</t>
172  </list>
173</t>
174<t>
175  More requirements:
176  <list style="format R%d:" counter="requirements">
177    <t>req R3</t>
178    <t>req R4</t>
179  </list>
180</t>
181<t>
182  A few rules:
183  <list style="format R%d:" counter="rules">
184    <t>rule R1</t>
185    <t>rule R2</t>
186    <t>rule R3</t>
187  </list>
188</t>
189<t>
190  Explicit counter with name matching it's format string:
191  <list style="format c-%c:" counter="c-%c:">
192    <t>c-c</t>
193    <t>c-d</t>
194  </list>
195</t>
196<t>
197  Same, without counter:
198  <list style="format c-%c:">
199    <t>c-e</t>
200    <t>c-f</t>
201  </list>
202 </t>
203</section>
204
205<section title="Nested lists">
206<section title="numbers/letters">
207  <t>
208    <list style="numbers">
209      <t>One</t>
210      <t>Two
211        <list style="letters">
212          <t>17</t>
213          <t>42</t>
214        </list>
215      </t>
216      <t>Three</t>
217    </list>
218  </t>
219</section>
220<section title="numbers/numbers">
221  <t>
222    <list style="numbers">
223      <t>One</t>
224      <t>Two
225        <list style="numbers">
226          <t>17</t>
227          <t>42</t>
228        </list>
229      </t>
230      <t>Three</t>
231    </list>
232  </t>
233</section>
234<section title="letters/letters">
235  <t>
236    <list style="letters">
237      <t>One</t>
238      <t>Two
239        <list style="letters">
240          <t>17</t>
241          <t>42</t>
242        </list>
243      </t>
244      <t>Three</t>
245    </list>
246  </t>
247</section>
248<section title="letters/letters/letters">
249  <t>
250    <list style="letters">
251      <t>One</t>
252      <t>Two
253        <list style="letters">
254          <t>17</t>
255          <t>42
256            <list style="letters">
257              <t>X</t>
258              <t>Y</t>
259            </list>
260          </t>
261        </list>
262      </t>
263      <t>Three</t>
264    </list>
265  </t>
266</section>
267<section title="symbols/symbols/symbols">
268  <t>
269    <list style="symbols">
270      <t>One</t>
271      <t>Two
272        <list style="symbols">
273          <t>17</t>
274          <t>42
275            <list style="symbols">
276              <t>X</t>
277              <t>Y</t>
278            </list>
279          </t>
280        </list>
281      </t>
282      <t>Three</t>
283    </list>
284  </t>
285</section>
286</section>
287
288<section title="list without style">
289<t>No style attribute:<list>
290  <t>One</t>
291  <t>Two</t>
292  <t>Three</t>
293</list></t>
294</section>
295
296<section title="list with multiple paragraphs in a single list item">
297<t><list style="numbers">
298  <x:lt><t>Simple list item.</t></x:lt>
299  <x:lt>
300    <t>This one has two paragraphs. This is the first one.</t>
301    <t>This one has two paragraphs. This is the second one.</t>
302  </x:lt>
303  <x:lt><t>Another simple list item.</t></x:lt>
304</list></t></section>
305
306<section title="style=format...">
307<section title="lists with fancy formats: %c">
308<t><list style="format %c">
309  <t>test</t>
310</list></t></section>
311
312<section title="lists with fancy formats: %C">
313<t><list style="format %C">
314  <t>test</t>
315</list></t></section>
316
317<section title="lists with fancy formats: %d">
318<t><list style="format %d">
319  <t>test</t>
320</list></t></section>
321
322<section title="lists with fancy formats: %i">
323<t><list style="format %i">
324  <t>test</t>
325</list></t></section>
326
327<section title="lists with fancy formats: %I">
328<t><list style="format %I">
329  <t>test</t>
330</list></t></section>
331
332<section title="lists with fancy formats: %o">
333<t><list style="format %o">
334  <t>test</t>
335</list></t></section>
336
337<section title="lists with fancy formats: %x">
338<t><list style="format %x">
339  <t>test</t>
340</list></t></section>
341
342<section title="lists with fancy formats: %X">
343<t><list style="format %X">
344  <t>test</t>
345</list></t></section>
346
347<section title="lists with fancy formats: %% %d">
348<t><list style="format %% %d">
349  <t>test</t>
350</list></t></section>
351
352<section title="lists with fancy formats: REQUIREMENT-%i plus hangIndent=20">
353<t><list style="format REQUIREMENT-%i" hangIndent="20">
354  <t>test</t>
355  <t>test</t>
356  <t>test</t>
357  <t>test</t>
358  <t>test</t>
359  <t>test</t>
360  <t>test</t>
361  <t>test</t>
362  <t>test</t>
363  <t>test</t>
364  <t>test</t>
365</list></t></section>
366</section>
367
368<section title="style inheritance">
369<t><list style="numbers">
370  <t>test</t>
371  <t>test</t>
372  <t>test</t>
373  <t><list>
374    <t>test</t>
375    <t>test</t>
376    <t>test</t>
377  </list>
378  </t>
379</list></t>
380</section>
381
382</section>
383
384
385
386<section title="spanx">
387<t>
388This is <spanx>default</spanx>.
389</t>
390<t>
391This is <spanx style="emph">emph(asized)</spanx>.
392</t>
393<t>
394This is <spanx style="strong">strong</spanx>.
395</t>
396<t>
397This is <spanx style="verb">verb(atim)</spanx>.
398</t>
399<t>
400Here is <spanx style="verb">a carriage return
401inside</spanx> a spanx element.
402</t>
403</section>
404
405<section title="Tables">
406<texttable>
407<preamble>The list of valid keywords are:</preamble>
408<ttcol width="20%" align="right">keyword</ttcol>
409<ttcol width="20%" align="center">default</ttcol>
410<ttcol align="left">meaning</ttcol>
411<ttcol>not aligned</ttcol>
412
413<c>strict</c>
414<c>no</c>
415<c>try to enforce the ID-nits conventions and DTD validity</c>
416<c>a</c>
417
418<c>iprnotified</c>
419<c>no</c>
420<c>include boilerplate from Section 10.4(d) of <xref target="RFC2026"/></c>
421<c>bb bb</c>
422
423<c>compact</c>
424<c>no</c>
425<c>when producing a txt/nroff file, try to conserve vertical whitespace</c>
426<c>ccc ccc ccc</c>
427   
428<c>subcompact</c>
429<c>compact</c>
430<c>if compact is "yes", then setting this to "no" will make things a little less
431compact</c>
432<c>dddd dddd dddd dddd</c>
433   
434<!--
435    ...                                                          ...
436   
437  -->
438   
439<c>needLines</c>
440<c>n/a</c>
441<c>an integer hint indicating how many contiguous lines are needed at this point
442in the output</c>
443<c>eeeee eeeee eeeee eeeee eeeee </c>
444
445<c>here come empty cells</c>
446<c></c>
447<c/>
448<c/>
449
450<postamble>Remember,
451that as with everything else in XML,
452keywords and values are case-sensitive.</postamble>
453</texttable>
454
455<section title="no borders">
456<texttable style="none" anchor="tablenoborder" title="a table with no borders">
457<preamble>The table below should appear with no borders.</preamble>
458<ttcol>C1</ttcol>
459<ttcol>C2</ttcol>
460<c>11</c>
461<c>12</c>
462<c>21</c>
463<c>22</c>
464</texttable>
465</section>
466
467<section title="borders around headers">
468<texttable style="headers">
469<preamble>The table below should appear with borders just around the headers.</preamble>
470<ttcol>C1</ttcol>
471<ttcol>C2</ttcol>
472<c>11</c>
473<c>12</c>
474<c>21</c>
475<c>22</c>
476</texttable>
477</section>
478
479<section title="example from xml2rc README">
480       <texttable anchor='table_example'>
481           <preamble>So,
482           putting it all together, we have, e.g.,</preamble>
483           <ttcol align='center'>ttcol #1</ttcol>
484           <ttcol align='center'>ttcol #2</ttcol>
485           <c>c #1</c>
486           <c>c #2</c>
487           <c>c #3</c>
488           <c>c #4</c>
489           <c>c #5</c>
490           <c>c #6</c>
491           <postamble>which is a very simple example.</postamble>
492       </texttable>
493</section>
494
495<section title="no column titles">
496<texttable anchor="tablenotitles" title="a table with no column titles">
497<preamble>The table below should appear with no titles.</preamble>
498<ttcol></ttcol>
499<ttcol></ttcol>
500<c>11</c>
501<c>12</c>
502<c>21</c>
503<c>22</c>
504</texttable>
505<texttable anchor="tableonetitle" title="a table with a single column title">
506<preamble>The table below should appear with column titles (one being non-empty).</preamble>
507<ttcol>FOO</ttcol>
508<ttcol></ttcol>
509<c>11</c>
510<c>12</c>
511<c>21</c>
512<c>22</c>
513</texttable>
514</section>
515
516<section title="referencing tables">
517  <t>
518    <xref target="tablenoborder"/> shows a table with no borders.
519  </t>
520  <t>
521    <xref target="tablenoborder">The table above</xref> shows a table with no borders.
522  </t>
523</section>
524
525<section title="table captions">
526<texttable>
527<preamble>No anchor, no title</preamble>
528<ttcol>Anchor</ttcol>
529<ttcol>Title</ttcol>
530<c>-</c>
531<c>-</c>
532</texttable>
533
534<texttable anchor="texttable1">
535<preamble>Anchor (not being referenced), no title</preamble>
536<ttcol>Anchor</ttcol>
537<ttcol>Title</ttcol>
538<c>yes</c>
539<c>-</c>
540</texttable>
541
542<texttable title="title">
543<preamble>No anchor, with title</preamble>
544<ttcol>Anchor</ttcol>
545<ttcol>Title</ttcol>
546<c>-</c>
547<c>"title"</c>
548</texttable>
549
550<texttable anchor="texttable2" title="title">
551<preamble>Both anchor and title</preamble>
552<ttcol>Anchor</ttcol>
553<ttcol>Title</ttcol>
554<c>yes</c>
555<c>"title"</c>
556</texttable>
557
558</section>
559
560
561<section title="single column">
562<texttable>
563<ttcol>title</ttcol>
564<c>1</c>
565<c>2</c>
566</texttable>
567</section>
568
569<section title="empty body">
570<texttable>
571<ttcol>title</ttcol>
572</texttable>
573</section>
574
575<section title="table alignment">
576<texttable align="left">
577<ttcol>left</ttcol>
578<c>1</c>
579</texttable>
580<texttable align="center">
581<ttcol>center</ttcol>
582<c>1</c>
583</texttable>
584<texttable align="right">
585<ttcol>right</ttcol>
586<c>1</c>
587</texttable>
588<texttable>
589<ttcol>default</ttcol>
590<c>1</c>
591</texttable>
592</section>
593
594</section>
595
596
597<section title="Figures">
598<section title="with preamble, no title...">
599<figure>
600  <preamble>with preamble, no title...</preamble>
601  <artwork>
602  +--+
603  |  |
604  +--+
605</artwork>
606</figure>
607</section>
608
609<section title="with postamble and title...">
610<figure title="another figure" anchor="testfig">
611  <artwork>
612  +--+
613  |  |
614  +--+
615</artwork>
616<postamble>with postamble and title...</postamble>
617</figure>
618<t>
619  The figure above has the title "<xref target="testfig" format="title" />".
620</t>
621</section>
622
623<section title="Whitespace handling">
624<t>
625  Para...
626</t> 
627<figure>
628  <preamble>Leading whitespace</preamble>
629  <artwork>
630test test (leading ws)</artwork>
631</figure>
632<t>
633  Para...
634</t> 
635<figure>
636  <preamble>Trailing whitespace</preamble>
637  <artwork>test test (trailing ws)
638   </artwork>
639</figure>
640<t>
641  Para...
642</t> 
643<figure>
644  <preamble>No whitespace</preamble>
645  <artwork>test test (no ws)</artwork>
646</figure>
647<t>
648  Para...
649</t> 
650</section>
651
652<!-- as proposed by Bill F -->
653<section title="Whitespace around figures">
654<t>spacing paragraph</t>
655<figure><artwork>ART</artwork></figure>
656<t>spacing paragraph</t>
657<figure><preamble>preamble, then</preamble><artwork>ART</artwork></figure>
658<t>spacing paragraph</t>
659<figure><artwork>ART</artwork><postamble>then postamble</postamble></figure>
660<t>spacing paragraph</t>
661</section>
662
663<section title="data URIs">
664<section title="data URI as source (both @alt and text content)" anchor="artwork.src.data.uri.alt.text">
665<figure>
666  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
667  type="image/gif" alt="Portrait of Larry Masinter (contents of alt attribute)">
668    Portrait of Larry Masinter (text content of &lt;artwork&gt; element)
669  </artwork>
670</figure>
671</section>
672
673<section title="data URI as source (only text content, no @alt)" anchor="artwork.src.data.uri.text">
674<figure>
675  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
676  type="image/gif">
677    Portrait of Larry Masinter (text content of &lt;artwork&gt; element)
678  </artwork>
679</figure>
680</section>
681
682<section title="data URI as source (only @alt attribute)" anchor="artwork.src.data.uri.alt">
683<figure>
684  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
685  type="image/gif" alt="Portrait of Larry Masinter (contents of alt attribute)"/>
686</figure>
687</section>
688</section>
689
690<section title="alignment">
691
692<section title="left" anchor="artwork.align.left">
693<figure>
694  <preamble>preamble</preamble>
695  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
696  type="image/gif" align="left"/>
697  <postamble>postamble</postamble>
698</figure>
699<figure>
700  <preamble>preamble</preamble>
701  <artwork align="left">FOO</artwork>
702  <postamble>postamble</postamble>
703</figure>
704</section>
705
706<section title="right" anchor="artwork.align.right">
707<figure>
708  <preamble>preamble</preamble>
709  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
710  type="image/gif" align="right"/>
711  <postamble>postamble</postamble>
712</figure>
713<figure>
714  <preamble>preamble</preamble>
715  <artwork align="right">FOO</artwork>
716  <postamble>postamble</postamble>
717</figure>
718</section>
719
720<section title="center" anchor="artwork.align.center">
721<figure>
722  <preamble>preamble</preamble>
723  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
724  type="image/gif" align="center"/>
725  <postamble>postamble</postamble>
726</figure>
727<figure>
728  <preamble>preamble</preamble>
729  <artwork align="center">FOO</artwork>
730  <postamble>postamble</postamble>
731</figure>
732</section>
733
734<section title="default" anchor="artwork.align.default">
735<figure>
736  <preamble>preamble</preamble>
737  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
738  type="image/gif"/>
739  <postamble>postamble</postamble>
740</figure>
741<figure>
742  <preamble>preamble</preamble>
743  <artwork>FOO</artwork>
744  <postamble>postamble</postamble>
745</figure>
746</section>
747</section>
748
749<section title="artwork width/height">
750
751<section title="width50%">
752<figure>
753  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
754  type="image/gif" width="50%"/>
755</figure>
756</section>
757
758<section title="width50">
759<figure>
760  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
761  type="image/gif" width="50"/>
762</figure>
763</section>
764
765<section title="height50">
766<figure>
767  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
768  type="image/gif" height="50"/>
769</figure>
770</section>
771
772<section title="height30width60">
773<figure>
774  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
775  type="image/gif" height="30" width="60"/>
776</figure>
777</section>
778
779</section>
780
781<section title="figure/artwork attribute overlap" anchor="figure.artwork.attribute.overlap">
782<section title="src overlap">
783<t>
784  Both figure and artwork having @src:
785</t>
786<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">
787  <preamble>Preamble...</preamble>
788  <artwork src="data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSpa/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJlZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uisF81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PHhhx4dbgYKAAA7"
789  type="image/gif"/>
790</figure>
791</section>
792<section title="align overlap">
793<t>
794  figure/align=right, artwork/@align=center:
795</t>
796<figure align="right" title="title">
797  <preamble>Preamble...</preamble>
798  <artwork align="center">
799TEST
800  </artwork>
801  <postamble>Postamble...</postamble>
802</figure>
803</section>
804<section title="align inheritance">
805<t>
806  figure/align=right, artwork/@align not specified:
807</t>
808<figure align="right" title="title">
809  <preamble>Preamble...</preamble>
810  <artwork>
811TEST
812  </artwork>
813  <postamble>Postamble...</postamble>
814</figure>
815</section>
816</section>
817
818<section title="titles/numbering" anchor="titles.numbering">
819
820<section title="just anchor" anchor="titles.numbering.just.anchor">
821<figure anchor="just.anchor">
822  <artwork>FOO</artwork>
823</figure>
824</section>
825
826<section title="just anchor (with suppress)" anchor="titles.numbering.just.anchor.with.suppress">
827<figure anchor="just.anchor.with.suppress" suppress-title="true">
828  <artwork>FOO</artwork>
829</figure>
830</section>
831
832<section title="just title" anchor="titles.numbering.just.title">
833<figure title="figure title">
834  <artwork>FOO</artwork>
835</figure>
836</section>
837
838<section title="just title (with suppress)" anchor="titles.numbering.just.title.with.suppress">
839<figure title="figure title" suppress-title="true">
840  <artwork>FOO</artwork>
841</figure>
842</section>
843
844</section>
845
846<section title="SVG">
847<t>
848  Inclusion of SVG:
849</t>
850<figure><artwork src="testcase.svg" type="image/svg+xml">
851  Fallback content for UAs that do not support SVG.
852</artwork></figure>
853</section>
854
855<section title="Code Components" anchor="code.components">
856<t>
857  Marking up Code Components according to the
858  <eref target="http://trustee.ietf.org/docs/IETF-Trust-License-Policy.pdf">Legal Provisions Relating to IETF Documents</eref>:
859</t>
860<figure><artwork type="code" x:is-code-component="yes">
861int main(int argc, char **argv) {
862  return -1;
863}
864</artwork></figure>
865</section>
866
867</section>
868
869<section title="xrefs" anchor="xrefs">
870<t>
871  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.
872  <spanx>These tests were contributed by Erik Wilde.</spanx>
873</t>
874<section title="Tests for section-anchor" anchor="section-anchor-tests">
875  <t>&lt;xref target="section-anchor"/&gt;: <xref target="section-anchor"/>
876  </t>
877  <t>&lt;xref target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="section-anchor">TEXT-CONTENT</xref>
878  </t>
879  <t>&lt;xref format="counter" target="section-anchor"/&gt;: <xref format="counter" target="section-anchor"/>
880  </t>
881  <t>&lt;xref format="counter" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="section-anchor">TEXT-CONTENT</xref>
882  </t>
883  <t>&lt;xref format="title" target="section-anchor"/&gt;: <xref format="title" target="section-anchor"/>
884  </t>
885  <t>&lt;xref format="title" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="section-anchor">TEXT-CONTENT</xref>
886  </t>
887  <t>&lt;xref format="none" target="section-anchor"/&gt;: <xref format="none" target="section-anchor"/>
888  </t>
889  <t>&lt;xref format="none" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="section-anchor">TEXT-CONTENT</xref>
890  </t>
891  <t>&lt;xref format="default" target="section-anchor"/&gt;: <xref format="default" target="section-anchor"/>
892  </t>
893  <t>&lt;xref format="default" target="section-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="section-anchor">TEXT-CONTENT</xref>
894  </t>
895</section>
896<section title="Tests for t-anchor" anchor="t-anchor-tests">
897  <t>&lt;xref target="t-anchor"/&gt;: <xref target="t-anchor"/>
898  </t>
899  <t>&lt;xref target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="t-anchor">TEXT-CONTENT</xref>
900  </t>
901  <t>&lt;xref format="counter" target="t-anchor"/&gt;: <xref format="counter" target="t-anchor"/>
902  </t>
903  <t>&lt;xref format="counter" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="t-anchor">TEXT-CONTENT</xref>
904  </t>
905  <t>&lt;xref format="title" target="t-anchor"/&gt;: <xref format="title" target="t-anchor"/>
906  </t>
907  <t>&lt;xref format="title" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="t-anchor">TEXT-CONTENT</xref>
908  </t>
909  <t>&lt;xref format="none" target="t-anchor"/&gt;: <xref format="none" target="t-anchor"/>
910  </t>
911  <t>&lt;xref format="none" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="t-anchor">TEXT-CONTENT</xref>
912  </t>
913  <t>&lt;xref format="default" target="t-anchor"/&gt;: <xref format="default" target="t-anchor"/>
914  </t>
915  <t>&lt;xref format="default" target="t-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="t-anchor">TEXT-CONTENT</xref>
916  </t>
917</section>
918<section title="Tests for list-t-anchor-empty" anchor="list-t-anchor-empty-tests">
919  <t>&lt;xref target="list-t-anchor-empty"/&gt;: <xref target="list-t-anchor-empty"/>
920  </t>
921  <t>&lt;xref target="list-t-anchor-empty"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="list-t-anchor-empty">TEXT-CONTENT</xref>
922  </t>
923  <t>&lt;xref format="counter" target="list-t-anchor-empty"/&gt;: <xref format="counter" target="list-t-anchor-empty"/>
924  </t>
925  <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>
926  </t>
927  <t>&lt;xref format="title" target="list-t-anchor-empty"/&gt;: <xref format="title" target="list-t-anchor-empty"/>
928  </t>
929  <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>
930  </t>
931  <t>&lt;xref format="none" target="list-t-anchor-empty"/&gt;: <xref format="none" target="list-t-anchor-empty"/>
932  </t>
933  <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>
934  </t>
935  <t>&lt;xref format="default" target="list-t-anchor-empty"/&gt;: <xref format="default" target="list-t-anchor-empty"/>
936  </t>
937  <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>
938  </t>
939</section>
940<section title="Tests for list-t-anchor-numbers" anchor="list-t-anchor-numbers-tests">
941  <t>&lt;xref target="list-t-anchor-numbers"/&gt;: <xref target="list-t-anchor-numbers"/>
942  </t>
943  <t>&lt;xref target="list-t-anchor-numbers"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="list-t-anchor-numbers">TEXT-CONTENT</xref>
944  </t>
945  <t>&lt;xref format="counter" target="list-t-anchor-numbers"/&gt;: <xref format="counter" target="list-t-anchor-numbers"/>
946  </t>
947  <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>
948  </t>
949  <t>&lt;xref format="title" target="list-t-anchor-numbers"/&gt;: <xref format="title" target="list-t-anchor-numbers"/>
950  </t>
951  <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>
952  </t>
953  <t>&lt;xref format="none" target="list-t-anchor-numbers"/&gt;: <xref format="none" target="list-t-anchor-numbers"/>
954  </t>
955  <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>
956  </t>
957  <t>&lt;xref format="default" target="list-t-anchor-numbers"/&gt;: <xref format="default" target="list-t-anchor-numbers"/>
958  </t>
959  <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>
960  </t>
961</section>
962<section title="Tests for list-t-anchor-letters" anchor="list-t-anchor-letters-tests">
963  <t>&lt;xref target="list-t-anchor-letters"/&gt;: <xref target="list-t-anchor-letters"/>
964  </t>
965  <t>&lt;xref target="list-t-anchor-letters"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="list-t-anchor-letters">TEXT-CONTENT</xref>
966  </t>
967  <t>&lt;xref format="counter" target="list-t-anchor-letters"/&gt;: <xref format="counter" target="list-t-anchor-letters"/>
968  </t>
969  <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>
970  </t>
971  <t>&lt;xref format="title" target="list-t-anchor-letters"/&gt;: <xref format="title" target="list-t-anchor-letters"/>
972  </t>
973  <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>
974  </t>
975  <t>&lt;xref format="none" target="list-t-anchor-letters"/&gt;: <xref format="none" target="list-t-anchor-letters"/>
976  </t>
977  <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>
978  </t>
979  <t>&lt;xref format="default" target="list-t-anchor-letters"/&gt;: <xref format="default" target="list-t-anchor-letters"/>
980  </t>
981  <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>
982  </t>
983</section>
984<section title="Tests for texttable-anchor" anchor="texttable-anchor-tests">
985  <t>&lt;xref target="texttable-anchor"/&gt;: <xref target="texttable-anchor"/>
986  </t>
987  <t>&lt;xref target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="texttable-anchor">TEXT-CONTENT</xref>
988  </t>
989  <t>&lt;xref format="counter" target="texttable-anchor"/&gt;: <xref format="counter" target="texttable-anchor"/>
990  </t>
991  <t>&lt;xref format="counter" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="texttable-anchor">TEXT-CONTENT</xref>
992  </t>
993  <t>&lt;xref format="title" target="texttable-anchor"/&gt;: <xref format="title" target="texttable-anchor"/>
994  </t>
995  <t>&lt;xref format="title" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="texttable-anchor">TEXT-CONTENT</xref>
996  </t>
997  <t>&lt;xref format="none" target="texttable-anchor"/&gt;: <xref format="none" target="texttable-anchor"/>
998  </t>
999  <t>&lt;xref format="none" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="texttable-anchor">TEXT-CONTENT</xref>
1000  </t>
1001  <t>&lt;xref format="default" target="texttable-anchor"/&gt;: <xref format="default" target="texttable-anchor"/>
1002  </t>
1003  <t>&lt;xref format="default" target="texttable-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="texttable-anchor">TEXT-CONTENT</xref>
1004  </t>
1005</section>
1006<section title="Tests for figure-anchor" anchor="figure-anchor-tests">
1007  <t>&lt;xref target="figure-anchor"/&gt;: <xref target="figure-anchor"/>
1008  </t>
1009  <t>&lt;xref target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="figure-anchor">TEXT-CONTENT</xref>
1010  </t>
1011  <t>&lt;xref format="counter" target="figure-anchor"/&gt;: <xref format="counter" target="figure-anchor"/>
1012  </t>
1013  <t>&lt;xref format="counter" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="figure-anchor">TEXT-CONTENT</xref>
1014  </t>
1015  <t>&lt;xref format="title" target="figure-anchor"/&gt;: <xref format="title" target="figure-anchor"/>
1016  </t>
1017  <t>&lt;xref format="title" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="figure-anchor">TEXT-CONTENT</xref>
1018  </t>
1019  <t>&lt;xref format="none" target="figure-anchor"/&gt;: <xref format="none" target="figure-anchor"/>
1020  </t>
1021  <t>&lt;xref format="none" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="figure-anchor">TEXT-CONTENT</xref>
1022  </t>
1023  <t>&lt;xref format="default" target="figure-anchor"/&gt;: <xref format="default" target="figure-anchor"/>
1024  </t>
1025  <t>&lt;xref format="default" target="figure-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="figure-anchor">TEXT-CONTENT</xref>
1026  </t>
1027</section>
1028<section title="Tests for reference-anchor" anchor="reference-anchor-tests">
1029  <t>&lt;xref target="reference-anchor"/&gt;: <xref target="reference-anchor"/>
1030  </t>
1031  <t>&lt;xref target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="reference-anchor">TEXT-CONTENT</xref>
1032  </t>
1033  <t>&lt;xref format="counter" target="reference-anchor"/&gt;: <xref format="counter" target="reference-anchor"/>
1034  </t>
1035  <t>&lt;xref format="counter" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="reference-anchor">TEXT-CONTENT</xref>
1036  </t>
1037  <t>&lt;xref format="title" target="reference-anchor"/&gt;: <xref format="title" target="reference-anchor"/>
1038  </t>
1039  <t>&lt;xref format="title" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="reference-anchor">TEXT-CONTENT</xref>
1040  </t>
1041  <t>&lt;xref format="none" target="reference-anchor"/&gt;: <xref format="none" target="reference-anchor"/>
1042  </t>
1043  <t>&lt;xref format="none" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="reference-anchor">TEXT-CONTENT</xref>
1044  </t>
1045  <t>&lt;xref format="default" target="reference-anchor"/&gt;: <xref format="default" target="reference-anchor"/>
1046  </t>
1047  <t>&lt;xref format="default" target="reference-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="reference-anchor">TEXT-CONTENT</xref>
1048  </t>
1049</section>
1050<section title="Tests for cref-anchor" anchor="cref-anchor-tests">
1051  <t>&lt;xref target="cref-anchor"/&gt;: <xref target="cref-anchor"/>
1052  </t>
1053  <t>&lt;xref target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref target="cref-anchor">TEXT-CONTENT</xref>
1054  </t>
1055  <t>&lt;xref format="counter" target="cref-anchor"/&gt;: <xref format="counter" target="cref-anchor"/>
1056  </t>
1057  <t>&lt;xref format="counter" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="counter" target="cref-anchor">TEXT-CONTENT</xref>
1058  </t>
1059  <t>&lt;xref format="title" target="cref-anchor"/&gt;: <xref format="title" target="cref-anchor"/>
1060  </t>
1061  <t>&lt;xref format="title" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="title" target="cref-anchor">TEXT-CONTENT</xref>
1062  </t>
1063  <t>&lt;xref format="none" target="cref-anchor"/&gt;: <xref format="none" target="cref-anchor"/>
1064  </t>
1065  <t>&lt;xref format="none" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="none" target="cref-anchor">TEXT-CONTENT</xref>
1066  </t>
1067  <t>&lt;xref format="default" target="cref-anchor"/&gt;: <xref format="default" target="cref-anchor"/>
1068  </t>
1069  <t>&lt;xref format="default" target="cref-anchor"&gt;TEXT-CONTENT&lt;/xref&gt;: <xref format="default" target="cref-anchor">TEXT-CONTENT</xref>
1070  </t>
1071</section>
1072<section title="Test Targets" anchor="section-anchor">
1073   <t>This section contains a couple of markup constructs carrying anchors (this is paragraph 1).</t>
1074   <t anchor="t-anchor">Some regular paragraph text... (this is paragraph 2)</t>
1075   <t>
1076      <list>
1077         <t anchor="list-t-anchor-empty">Some paragraph in a list... (this is list item 1 in a default style list)</t>
1078      </list>
1079   </t>
1080   <t>
1081      <list style="numbers">
1082         <t anchor="list-t-anchor-numbers">Some paragraph in a list... (this is list item 1 in a "numbers" style list)</t>
1083      </list>
1084   </t>
1085   <t>
1086      <list style="letters">
1087         <t anchor="list-t-anchor-letters">Some paragraph in a list... (this is list item 1 in a "letters" style list)</t>
1088      </list>
1089   </t>
1090   <texttable anchor="texttable-anchor" title="TEXTTABLE-TITLE">
1091      <ttcol>Some texttable text...</ttcol><c>Table cell</c>
1092   </texttable>
1093   <figure anchor="figure-anchor" title="FIGURE-TITLE">
1094      <artwork>Some figure text...</artwork>
1095   </figure>
1096   <t>
1097      <cref anchor="cref-anchor">A comment.</cref>
1098   </t>
1099</section>
1100</section>
1101
1102
1103<section title="More References" anchor="refs">
1104
1105<section title="xref to named &lt;spanx> element">
1106<t>
1107  <spanx anchor="spanx.anchor">With content</spanx>: see <xref target="spanx.anchor" format="none">this sentence</xref>.
1108</t>
1109</section>
1110
1111<section title="xref with no content and anchor formatting">
1112<t>
1113See [<xref target="RFC2026" x:fmt="anchor"/>, <xref target="RFC2396" x:fmt="anchor"/>].
1114</t>
1115</section>
1116
1117<section title="eref with no content">
1118<t>
1119See also <eref target="http://greenbytes.de/tech/webdav" />. Here's another
1120one 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?
1121</t>
1122</section>
1123
1124<section title="eref with content">
1125<t>
1126See also <eref target="http://greenbytes.de/tech/webdav">greenbytes WebDAV resources</eref>.
1127</t>
1128</section>
1129
1130<section title="iref inside paragraph">
1131<t>
1132This paragraph contains an <iref item="inline iref"/>inline iref.
1133</t>
1134</section>
1135
1136<section title="iref before paragraph">
1137<iref item="section iref"/>
1138<t>
1139This paragraph follows an iref.
1140</t>
1141</section>
1142
1143<section title="xref with pageno attribute" anchor="xref.pageno">
1144<t>
1145A reference to <xref target="xref.pageno" pageno="true"/>.
1146</t>
1147</section>
1148
1149</section>
1150
1151<section title="Paragraph formatting">
1152<t>
1153  This is the first sentence of the paragraph.  This is the second sentence of
1154  the paragraph (with two leading blanks).
1155  Here's another sentence that was started on a separate line in the input
1156  file.
1157</t>
1158<t>
1159  This is the second paragraph.
1160</t>
1161</section>
1162
1163<section title="Sections">
1164
1165<section title="Subsection with TOC entry">
1166</section>
1167
1168<section title="Subsection without TOC entry" toc="exclude">
1169
1170<section title="Sub-subsection with TOC entry">
1171</section>
1172
1173</section>
1174
1175</section>
1176
1177<section title="Comments">
1178<t>
1179  This line contains a few comments.
1180  <cref anchor="comment-test" source="JRE">No anchor, source given.</cref>
1181  This line contains a few comments.
1182  <cref anchor="comment1">Anchor given, no source.</cref>
1183  This line contains a few comments.
1184  <cref anchor="comment2" source="JRE">Both specified.</cref>
1185  This line contains a few comments.
1186  <cref>No anchor, no source.</cref>
1187  This line contains a few comments.
1188  <cref>No anchor, no source, but embedded markup: <eref target="http://xml.resource.org"/>.</cref>
1189  This line contains a few comments.
1190</t>
1191</section>
1192
1193<section title="Artwork Width">
1194<figure>
1195<preamble>
1196This should fit (69 characters plus three spaces of indentation in text output).
1197</preamble>
1198<artwork>
1199012345678901234567890123456789012345678901234567890123456789012345678
1200</artwork>
1201</figure>
1202<figure>
1203<preamble>
1204This shouldn't.
1205</preamble>
1206<artwork>
12070123456789012345678901234567890123456789012345678901234567890123456789
1208</artwork>
1209</figure>
1210<figure><artwork x:indent-with="**********">
1211(IN TEXT OUTPUT INDENTED BY 10)
1212012345678901234567890123456789012345678901234567890123456789012
1213</artwork></figure>
1214</section>
1215
1216<section title="Extensions" anchor="extensions">
1217<t>
1218  These are tests for extensions done in <spanx style="verb">rfc2629.xslt</spanx>.
1219  Do not expect them to work out-of-the-box in <spanx style="verb">xml2rfc</spanx>.
1220</t>
1221
1222<section title="Markup in figure/artwork">
1223<figure>
1224<artwork>
1225Internal References: a test reference to <xref target="RFC2396"/>
1226
1227External References: a test reference to <eref target="http://xml.resource.org"/>
1228
1229<iref item="&lt;iref> in &lt;artwork>"/>a test index entry inside a figure
1230
1231Styling: <spanx>&lt;spanx></spanx> inside artwork
1232</artwork>
1233</figure>
1234</section>
1235
1236<section title="Measuring Lengths">
1237<figure>
1238<artwork type="message/http; msgtype=&#34;request&#34;">
1239PUT / HTTP/1.1
1240Host: example.org
1241Content-Type: application/xml
1242Content-Length: <x:length-of target="req1"/>
1243
1244<x:span anchor="req1">&lt;foo/></x:span></artwork></figure>
1245
1246<figure>
1247<preamble>...without indentation:</preamble>
1248<artwork type="message/http; msgtype=&#34;request&#34;">
1249PUT / HTTP/1.1
1250Host: example.org
1251Content-Type: text/plain
1252Content-Length: <x:length-of target="req2"/>
1253
1254<x:span anchor="req2">Line 1
1255Line 2
1256</x:span></artwork></figure>
1257
1258<figure>
1259<preamble>...with indentation:</preamble>
1260<artwork type="message/http; msgtype=&#34;request&#34;">
1261  PUT / HTTP/1.1
1262  Host: example.org
1263  Content-Type: text/plain
1264  Content-Length: <x:length-of target="req3" indented="2"/>
1265
1266<x:span anchor="req3">  Line 1
1267  Line 2
1268</x:span></artwork></figure>
1269</section>
1270
1271<section title="Quotations">
1272  <t>
1273    Here's a quote:
1274    <x:q>This is a Quote.</x:q>
1275  </t>
1276  <t>
1277    Here's a block level quote:
1278  </t>
1279  <x:blockquote>
1280    <t>
1281      Here's a quote.
1282    </t>
1283    <t>
1284      More text.
1285    </t>
1286  </x:blockquote>
1287</section>
1288
1289<section title="Subsections">
1290  <t>
1291    <x:h>Foo</x:h>
1292  </t>
1293  <t>
1294    The line above should be marked up similar to a subsection heading.
1295  </t>
1296</section>
1297
1298<section title="Box Drawing">
1299<figure>
1300  <preamble>
1301    The figure below should use box drawing characters instead of
1302    "+", "-" and "|".
1303  </preamble>
1304  <artwork>
1305  <x:bt>+----------------+</x:bt>
1306  <x:bc>| This is a Box. |</x:bc>
1307  <x:bb>+----------------+</x:bb>
1308  </artwork>
1309</figure>
1310
1311</section>
1312
1313<section title="Computed Reference Targets" anchor="computed.reference.targets">
1314<t>
1315  Referring to this section by anchor name indirectly through the references:
1316  <xref target="TSTCS" x:fmt="of" x:rel="#computed.reference.targets"/>.
1317</t>
1318<t>
1319  (default formatting):
1320  <xref target="TSTCS" x:rel="#computed.reference.targets"/>.
1321</t>
1322<figure><artwork>
1323  Default inside a figure: <xref target="TSTCS" x:rel="#computed.reference.targets"/>
1324</artwork></figure>
1325<t>
1326  With a broken anchor:
1327  <xref target="TSTCS" x:rel="#a-target-that-isnt-defined"/>.
1328</t>
1329</section>
1330
1331<section title="ABNF Support" anchor="abnf.support">
1332<figure><artwork>
1333case-insensitive1 = "abcdefghijlkmnopqrstuvwxyz"
1334case-insensitive2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
1335case-sensitive1 = <x:abnf-char-sequence>"abcdefghijlkmnopqrstuvwxyz"</x:abnf-char-sequence>
1336case-sensitive2 = <x:abnf-char-sequence>"ABCDEFGHIJKLMNOPQRSTUVWXYZ"</x:abnf-char-sequence>
1337</artwork></figure>
1338</section>
1339
1340
1341</section>
1342
1343<section title="Blank Lines">
1344<t>
1345Just a forced <vspace/>
1346line break.
1347</t>
1348<t>
1349One <vspace blankLines="1"/>
1350blank line.
1351</t>
1352<t>
1353Seven <vspace blankLines="7"/>
1354blank lines.
1355</t>
1356<t>
1357999 <vspace blankLines="999"/>
1358blank lines (this is likely an attempt to force a pagebreak, thus the
1359generated HTML should <spanx>not</spanx> contain the blank lines, but only
1360one).
1361</t>
1362</section>
1363
1364<section title="Other">
1365
1366<section title="Comments in Text">
1367<t>
1368  First sentence (before XML comment, invisible here).
1369<!-- a comment -->
1370  Second sentence.
1371</t>
1372</section>
1373
1374<section title="Special Characters">
1375<section title="Non-Breaking Space" anchor="nbsp">
1376<t>
1377  Non&nbsp;breaking&nbsp;space.
1378  Non&nbsp;breaking&nbsp;space.
1379  Non&nbsp;breaking&nbsp;space.
1380  Non&nbsp;breaking&nbsp;space.
1381  Non&nbsp;breaking&nbsp;space.
1382  Non&nbsp;breaking&nbsp;space.
1383  Non&nbsp;breaking&nbsp;space.
1384  Non&nbsp;breaking&nbsp;space.
1385  Non&nbsp;breaking&nbsp;space.
1386  Non&nbsp;breaking&nbsp;space.
1387  Non&nbsp;breaking&nbsp;space.
1388  Non&nbsp;breaking&nbsp;space.
1389  Non&nbsp;breaking&nbsp;space.
1390  Non&nbsp;breaking&nbsp;space.
1391  Non&nbsp;breaking&nbsp;space.
1392  Non&nbsp;breaking&nbsp;space.
1393  Non&nbsp;breaking&nbsp;space.
1394  Non&nbsp;breaking&nbsp;space.
1395  Non&nbsp;breaking&nbsp;space.
1396  Non&nbsp;breaking&nbsp;space.
1397  Non&nbsp;breaking&nbsp;space.
1398  Non&nbsp;breaking&nbsp;space.
1399</t>
1400</section>
1401<section title="Non-Breaking Hyphen" anchor="nbhy">
1402<t>
1403  Non&nbhy;breaking&nbhy;hyphen.
1404  Non&nbhy;breaking&nbhy;hyphen.
1405  Non&nbhy;breaking&nbhy;hyphen.
1406  Non&nbhy;breaking&nbhy;hyphen.
1407  Non&nbhy;breaking&nbhy;hyphen.
1408  Non&nbhy;breaking&nbhy;hyphen.
1409  Non&nbhy;breaking&nbhy;hyphen.
1410  Non&nbhy;breaking&nbhy;hyphen.
1411  Non&nbhy;breaking&nbhy;hyphen.
1412  Non&nbhy;breaking&nbhy;hyphen.
1413  Non&nbhy;breaking&nbhy;hyphen.
1414  Non&nbhy;breaking&nbhy;hyphen.
1415  Non&nbhy;breaking&nbhy;hyphen.
1416  Non&nbhy;breaking&nbhy;hyphen.
1417  Non&nbhy;breaking&nbhy;hyphen.
1418  Non&nbhy;breaking&nbhy;hyphen.
1419  Non&nbhy;breaking&nbhy;hyphen.
1420  Non&nbhy;breaking&nbhy;hyphen.
1421  Non&nbhy;breaking&nbhy;hyphen.
1422  Non&nbhy;breaking&nbhy;hyphen.
1423  (wrt Apache FOP, see <eref target="http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200905.mbox/%3C4A035745.10601@freemail.gr%3E"/>)
1424</t>
1425</section>
1426<section title="Dashes" anchor="dashes">
1427<t>
1428  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1429  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1430  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1431  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1432  mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces. mdash &mdash; with regular spaces.
1433</t>
1434<t>
1435  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.
1436  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.
1437  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.
1438  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.
1439  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.
1440</t>
1441<t>
1442  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.
1443  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.
1444  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.
1445  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.
1446  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.
1447</t>
1448</section>
1449</section>
1450
1451</section>
1452
1453    </middle>
1454
1455        <back>
1456  <references>
1457  <reference anchor='RFC2026'>
1458
1459<front>
1460<title abbrev='Internet Standards Process'>The Internet Standards Process -- Revision 3</title>
1461<author initials='S.' surname='Bradner' fullname='Scott O. Bradner'>
1462<organization>Harvard University</organization>
1463<address>
1464<postal>
1465<street>1350 Mass. Ave.</street>
1466<city>Cambridge</city>
1467<region>MA</region>
1468<code>02138</code>
1469<country>US</country></postal>
1470<phone>+1 617 495 3864</phone>
1471<email>sob@harvard.edu</email></address></author>
1472<date month='October' year='1996' />
1473<abstract>
1474<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>
1475
1476<seriesInfo name='BCP' value='9' />
1477<seriesInfo name='RFC' value='2026' />
1478<format type='TXT' octets='86731' target='ftp://ftp.isi.edu/in-notes/rfc2026.txt' />
1479</reference>
1480
1481<reference anchor="RFC2396">
1482
1483<front>
1484<title abbrev="URI Generic Syntax">Uniform Resource Identifiers (URI): Generic Syntax</title>
1485<author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
1486<organization>World Wide Web Consortium</organization>
1487<address>
1488<postal>
1489<street>MIT Laboratory for Computer Science, NE43-356</street>
1490<street>545 Technology Square</street>
1491<city>Cambridge</city>
1492<region>MA</region>
1493<code>02139</code></postal>
1494<facsimile>+1(617)258-8682</facsimile>
1495<email>timbl@w3.org</email></address></author>
1496<author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
1497<organization>Department of Information and Computer Science</organization>
1498<address>
1499<postal>
1500<street>University of California, Irvine</street>
1501<city>Irvine</city>
1502<region>CA</region>
1503<code>92697-3425</code></postal>
1504<facsimile>+1(949)824-1715</facsimile>
1505<email>fielding@ics.uci.edu</email></address></author>
1506<author initials="L." surname="Masinter" fullname="Larry Masinter">
1507<organization>Xerox PARC</organization>
1508<address>
1509<postal>
1510<street>3333 Coyote Hill Road</street>
1511<city>Palo Alto</city>
1512<region>CA</region>
1513<code>94034</code></postal>
1514<facsimile>+1(415)812-4333</facsimile>
1515<email>masinter@parc.xerox.com</email></address></author>
1516<date month="August" year="1998"/>
1517<area>Applications</area>
1518<keyword>uniform resource</keyword>
1519<keyword>URI</keyword>
1520</front>
1521<seriesInfo name="RFC" value="2396"/>
1522<annotation>
1523  This RFC will soon be updated, check
1524  <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/rfc2396bis.html" /> for the latest draft.
1525</annotation>
1526<annotation>
1527  The issues list is at <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/issues.html" />.
1528</annotation>
1529
1530</reference>
1531
1532<reference anchor="TSTCS">
1533        <front>
1534        <title>Test cases for RFC2629 formatting</title>
1535
1536        <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
1537                <organization abbrev="greenbytes">greenbytes GmbH</organization>
1538        <address>
1539                <postal>
1540                <street>Hafenweg 16</street>
1541            <city>Muenster</city><region>NW</region><code>48155</code>
1542                <country>Germany</country>
1543                </postal>
1544                  <phone>+49 251 2807760</phone>       
1545        <facsimile>+49 251 2807761</facsimile> 
1546                  <email>julian.reschke@greenbytes.de</email>   
1547                  <uri>http://greenbytes.de/tech/webdav/</uri> 
1548                </address>
1549        </author>
1550    <date month="March" year="2008"/>
1551        </front>
1552  <x:source href="testcase.xml"/>
1553</reference>
1554
1555<reference anchor="reference-anchor">
1556        <front>
1557        <title>Test cases for RFC2629 formatting</title>
1558
1559        <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
1560                <organization abbrev="greenbytes">greenbytes GmbH</organization>
1561        <address>
1562                <postal>
1563                <street>Hafenweg 16</street>
1564            <city>Muenster</city><region>NW</region><code>48155</code>
1565                <country>Germany</country>
1566                </postal>
1567                  <phone>+49 251 2807760</phone>       
1568        <facsimile>+49 251 2807761</facsimile> 
1569                  <email>julian.reschke@greenbytes.de</email>   
1570                  <uri>http://greenbytes.de/tech/webdav/</uri> 
1571                </address>
1572        </author>
1573    <date month="March" year="2008"/>
1574        </front>
1575  <x:source href="testcase.xml"/>
1576</reference>
1577
1578  </references>
1579  </back>
1580</rfc>
Note: See TracBrowser for help on using the repository browser.