source: rfc2629xslt/testcase.xml @ 2684

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