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 " "> |
---|
15 | <!ENTITY thinsp " "> |
---|
16 | <!ENTITY nbhy "‑"> |
---|
17 | <!ENTITY ndash "–"> |
---|
18 | <!ENTITY mdash "—"> |
---|
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 | <city>Muenster</city><region>NW</region><code>48155</code> |
---|
30 | <country>Germany</country> |
---|
31 | </postal> |
---|
32 | <phone>+49 251 2807760</phone> |
---|
33 | <facsimile>+49 251 2807761</facsimile> |
---|
34 | <email>julian.reschke@greenbytes.de</email> |
---|
35 | <uri>http://greenbytes.de/tech/webdav/</uri> |
---|
36 | </address> |
---|
37 | </author> |
---|
38 | |
---|
39 | <date year="2013"/> |
---|
40 | <keyword>RFC2629</keyword> |
---|
41 | <keyword>test case</keyword> |
---|
42 | <keyword>xml2rfc</keyword> |
---|
43 | </front> |
---|
44 | |
---|
45 | <middle> |
---|
46 | |
---|
47 | <section title="Lists" anchor="lists"> |
---|
48 | <section title="hanging list"> |
---|
49 | <t><list style="hanging"> |
---|
50 | <t hangText="Name:">timeout</t> |
---|
51 | <t hangText="Namespace:">DAV:</t> |
---|
52 | <t hangText="Purpose:">The timeout associated with a lock</t> |
---|
53 | <t hangText="Value:">TimeType ;Defined in section 9.8</t> |
---|
54 | </list></t></section> |
---|
55 | |
---|
56 | <section title="numbered list" anchor="ordered.list.numbers"> |
---|
57 | <t> |
---|
58 | A numbered list: |
---|
59 | <list style="numbers"> |
---|
60 | <t>one</t> |
---|
61 | <t>two</t> |
---|
62 | <t anchor="ordered.list.numbers.last">>three</t> |
---|
63 | </list> |
---|
64 | </t> |
---|
65 | </section> |
---|
66 | |
---|
67 | <section title="ordered list (letters)" anchor="ordered.list.letters"> |
---|
68 | <t> |
---|
69 | An ordered list using letters: |
---|
70 | <list style="letters"> |
---|
71 | <t>one</t> |
---|
72 | <t>two</t> |
---|
73 | <t>three</t> |
---|
74 | <t>one</t> |
---|
75 | <t>two</t> |
---|
76 | <t>three</t> |
---|
77 | <t>one</t> |
---|
78 | <t>two</t> |
---|
79 | <t>three</t> |
---|
80 | <t>one</t> |
---|
81 | <t>two</t> |
---|
82 | <t>three</t> |
---|
83 | <t>one</t> |
---|
84 | <t>two</t> |
---|
85 | <t>three</t> |
---|
86 | <t>one</t> |
---|
87 | <t>two</t> |
---|
88 | <t>three</t> |
---|
89 | <t>one</t> |
---|
90 | <t>two</t> |
---|
91 | <t>three</t> |
---|
92 | <t>one</t> |
---|
93 | <t>two</t> |
---|
94 | <t>three</t> |
---|
95 | <t>one</t> |
---|
96 | <t>two</t> |
---|
97 | <t>three</t> |
---|
98 | <t>one</t> |
---|
99 | <t>two</t> |
---|
100 | <t anchor="ordered.list.letters.last">three</t> |
---|
101 | </list> |
---|
102 | </t> |
---|
103 | </section> |
---|
104 | |
---|
105 | <section title="no explicit counters"> |
---|
106 | <t> |
---|
107 | Example for numbered list with user-defined-format: |
---|
108 | <list style="format R%d:"> |
---|
109 | <t>R1</t> |
---|
110 | <t>R2</t> |
---|
111 | </list> |
---|
112 | </t> |
---|
113 | <t> |
---|
114 | Another list: |
---|
115 | <list style="format S%d:"> |
---|
116 | <t>S1</t> |
---|
117 | <t>S2</t> |
---|
118 | </list> |
---|
119 | </t> |
---|
120 | <t> |
---|
121 | Next list should continue counting R's: |
---|
122 | <list style="format R%d:"> |
---|
123 | <t>R3</t> |
---|
124 | <t>R4</t> |
---|
125 | </list> |
---|
126 | </t> |
---|
127 | <t> |
---|
128 | Same with character-based numbering: |
---|
129 | <list style="format c-%c:"> |
---|
130 | <t>c-a</t> |
---|
131 | <t>c-b</t> |
---|
132 | </list> |
---|
133 | </t> |
---|
134 | </section> |
---|
135 | |
---|
136 | <section title="with explicit counters"> |
---|
137 | <t> |
---|
138 | A few requirements: |
---|
139 | <list style="format R%d:" counter="requirements"> |
---|
140 | <t>req R1</t> |
---|
141 | <t>req R2</t> |
---|
142 | </list> |
---|
143 | </t> |
---|
144 | <t> |
---|
145 | More requirements: |
---|
146 | <list style="format R%d:" counter="requirements"> |
---|
147 | <t>req R3</t> |
---|
148 | <t>req R4</t> |
---|
149 | </list> |
---|
150 | </t> |
---|
151 | <t> |
---|
152 | A few rules: |
---|
153 | <list style="format R%d:" counter="rules"> |
---|
154 | <t>rule R1</t> |
---|
155 | <t>rule R2</t> |
---|
156 | <t>rule R3</t> |
---|
157 | </list> |
---|
158 | </t> |
---|
159 | <t> |
---|
160 | Explicit counter with name matching it's format string: |
---|
161 | <list style="format c-%c:" counter="c-%c:"> |
---|
162 | <t>c-c</t> |
---|
163 | <t>c-d</t> |
---|
164 | </list> |
---|
165 | </t> |
---|
166 | <t> |
---|
167 | Same, without counter: |
---|
168 | <list style="format c-%c:"> |
---|
169 | <t>c-e</t> |
---|
170 | <t>c-f</t> |
---|
171 | </list> |
---|
172 | </t> |
---|
173 | </section> |
---|
174 | |
---|
175 | <section title="Nested list"> |
---|
176 | <t> |
---|
177 | <list style="numbers"> |
---|
178 | <t>One</t> |
---|
179 | <t>Two |
---|
180 | <list style="letters"> |
---|
181 | <t>17</t> |
---|
182 | <t>42</t> |
---|
183 | </list> |
---|
184 | </t> |
---|
185 | <t>Three</t> |
---|
186 | </list> |
---|
187 | </t> |
---|
188 | </section> |
---|
189 | |
---|
190 | <section title="list without style"> |
---|
191 | <t><list> |
---|
192 | <t>One</t> |
---|
193 | <t>Two</t> |
---|
194 | <t>Three</t> |
---|
195 | </list></t></section> |
---|
196 | |
---|
197 | <section title="list with multiple paragraphs in a single list item"> |
---|
198 | <t><list style="numbers"> |
---|
199 | <x:lt><t>Simple list item.</t></x:lt> |
---|
200 | <x:lt> |
---|
201 | <t>This one has two paragraphs. This is the first one.</t> |
---|
202 | <t>This one has two paragraphs. This is the second one.</t> |
---|
203 | </x:lt> |
---|
204 | <x:lt><t>Another simple list item.</t></x:lt> |
---|
205 | </list></t></section> |
---|
206 | |
---|
207 | </section> |
---|
208 | |
---|
209 | <section title="spanx"> |
---|
210 | <t> |
---|
211 | This is <spanx>default</spanx>. |
---|
212 | </t> |
---|
213 | <t> |
---|
214 | This is <spanx style="emph">emph(asized)</spanx>. |
---|
215 | </t> |
---|
216 | <t> |
---|
217 | This is <spanx style="strong">strong</spanx>. |
---|
218 | </t> |
---|
219 | <t> |
---|
220 | This is <spanx style="verb">verb(atim)</spanx>. |
---|
221 | </t> |
---|
222 | <t> |
---|
223 | Here is <spanx style="verb">a carriage return |
---|
224 | inside</spanx> a spanx element. |
---|
225 | </t> |
---|
226 | </section> |
---|
227 | |
---|
228 | <section title="Tables"> |
---|
229 | <texttable> |
---|
230 | <preamble>The list of valid keywords are:</preamble> |
---|
231 | <ttcol width="20%" align="right">keyword</ttcol> |
---|
232 | <ttcol width="20%" align="center">default</ttcol> |
---|
233 | <ttcol align="left">meaning</ttcol> |
---|
234 | <ttcol>not aligned</ttcol> |
---|
235 | |
---|
236 | <c>strict</c> |
---|
237 | <c>no</c> |
---|
238 | <c>try to enforce the ID-nits conventions and DTD validity</c> |
---|
239 | <c>a</c> |
---|
240 | |
---|
241 | <c>iprnotified</c> |
---|
242 | <c>no</c> |
---|
243 | <c>include boilerplate from Section 10.4(d) of <xref target="RFC2026"/></c> |
---|
244 | <c>bb bb</c> |
---|
245 | |
---|
246 | <c>compact</c> |
---|
247 | <c>no</c> |
---|
248 | <c>when producing a txt/nroff file, try to conserve vertical whitespace</c> |
---|
249 | <c>ccc ccc ccc</c> |
---|
250 | |
---|
251 | <c>subcompact</c> |
---|
252 | <c>compact</c> |
---|
253 | <c>if compact is "yes", then setting this to "no" will make things a little less |
---|
254 | compact</c> |
---|
255 | <c>dddd dddd dddd dddd</c> |
---|
256 | |
---|
257 | <!-- |
---|
258 | ... ... |
---|
259 | |
---|
260 | --> |
---|
261 | |
---|
262 | <c>needLines</c> |
---|
263 | <c>n/a</c> |
---|
264 | <c>an integer hint indicating how many contiguous lines are needed at this point |
---|
265 | in the output</c> |
---|
266 | <c>eeeee eeeee eeeee eeeee eeeee </c> |
---|
267 | |
---|
268 | <c>here come empty cells</c> |
---|
269 | <c></c> |
---|
270 | <c/> |
---|
271 | <c/> |
---|
272 | |
---|
273 | <postamble>Remember, |
---|
274 | that as with everything else in XML, |
---|
275 | keywords and values are case-sensitive.</postamble> |
---|
276 | </texttable> |
---|
277 | |
---|
278 | <section title="no borders"> |
---|
279 | <texttable style="none" anchor="tablenoborder" title="a table with no borders"> |
---|
280 | <preamble>The table below should appear with no borders.</preamble> |
---|
281 | <ttcol>C1</ttcol> |
---|
282 | <ttcol>C2</ttcol> |
---|
283 | <c>11</c> |
---|
284 | <c>12</c> |
---|
285 | <c>21</c> |
---|
286 | <c>22</c> |
---|
287 | </texttable> |
---|
288 | </section> |
---|
289 | |
---|
290 | <section title="borders around headers"> |
---|
291 | <texttable style="headers"> |
---|
292 | <preamble>The table below should appear with borders just around the headers.</preamble> |
---|
293 | <ttcol>C1</ttcol> |
---|
294 | <ttcol>C2</ttcol> |
---|
295 | <c>11</c> |
---|
296 | <c>12</c> |
---|
297 | <c>21</c> |
---|
298 | <c>22</c> |
---|
299 | </texttable> |
---|
300 | </section> |
---|
301 | |
---|
302 | <section title="example from xml2rc README"> |
---|
303 | <texttable anchor='table_example'> |
---|
304 | <preamble>So, |
---|
305 | putting it all together, we have, e.g.,</preamble> |
---|
306 | <ttcol align='center'>ttcol #1</ttcol> |
---|
307 | <ttcol align='center'>ttcol #2</ttcol> |
---|
308 | <c>c #1</c> |
---|
309 | <c>c #2</c> |
---|
310 | <c>c #3</c> |
---|
311 | <c>c #4</c> |
---|
312 | <c>c #5</c> |
---|
313 | <c>c #6</c> |
---|
314 | <postamble>which is a very simple example.</postamble> |
---|
315 | </texttable> |
---|
316 | </section> |
---|
317 | |
---|
318 | <section title="no column titles"> |
---|
319 | <texttable anchor="tablenotitles" title="a table with no column titles"> |
---|
320 | <preamble>The table below should appear with no titles.</preamble> |
---|
321 | <ttcol></ttcol> |
---|
322 | <ttcol></ttcol> |
---|
323 | <c>11</c> |
---|
324 | <c>12</c> |
---|
325 | <c>21</c> |
---|
326 | <c>22</c> |
---|
327 | </texttable> |
---|
328 | <texttable anchor="tableonetitle" title="a table with a single column title"> |
---|
329 | <preamble>The table below should appear with column titles (one being non-empty).</preamble> |
---|
330 | <ttcol>FOO</ttcol> |
---|
331 | <ttcol></ttcol> |
---|
332 | <c>11</c> |
---|
333 | <c>12</c> |
---|
334 | <c>21</c> |
---|
335 | <c>22</c> |
---|
336 | </texttable> |
---|
337 | </section> |
---|
338 | |
---|
339 | <section title="referencing tables"> |
---|
340 | <t> |
---|
341 | <xref target="tablenoborder"/> shows a table with no borders. |
---|
342 | </t> |
---|
343 | <t> |
---|
344 | <xref target="tablenoborder">The table above</xref> shows a table with no borders. |
---|
345 | </t> |
---|
346 | </section> |
---|
347 | |
---|
348 | <section title="table captions"> |
---|
349 | <texttable> |
---|
350 | <preamble>No anchor, no title</preamble> |
---|
351 | <ttcol>Anchor</ttcol> |
---|
352 | <ttcol>Title</ttcol> |
---|
353 | <c>-</c> |
---|
354 | <c>-</c> |
---|
355 | </texttable> |
---|
356 | |
---|
357 | <texttable anchor="texttable1"> |
---|
358 | <preamble>Anchor (not being referenced), no title</preamble> |
---|
359 | <ttcol>Anchor</ttcol> |
---|
360 | <ttcol>Title</ttcol> |
---|
361 | <c>yes</c> |
---|
362 | <c>-</c> |
---|
363 | </texttable> |
---|
364 | |
---|
365 | <texttable title="title"> |
---|
366 | <preamble>No anchor, with title</preamble> |
---|
367 | <ttcol>Anchor</ttcol> |
---|
368 | <ttcol>Title</ttcol> |
---|
369 | <c>-</c> |
---|
370 | <c>"title"</c> |
---|
371 | </texttable> |
---|
372 | |
---|
373 | <texttable anchor="texttable2" title="title"> |
---|
374 | <preamble>Both anchor and title</preamble> |
---|
375 | <ttcol>Anchor</ttcol> |
---|
376 | <ttcol>Title</ttcol> |
---|
377 | <c>yes</c> |
---|
378 | <c>"title"</c> |
---|
379 | </texttable> |
---|
380 | |
---|
381 | </section> |
---|
382 | |
---|
383 | |
---|
384 | <section title="single column"> |
---|
385 | <texttable> |
---|
386 | <ttcol>title</ttcol> |
---|
387 | <c>1</c> |
---|
388 | <c>2</c> |
---|
389 | </texttable> |
---|
390 | </section> |
---|
391 | |
---|
392 | <section title="table alignment"> |
---|
393 | <texttable align="left"> |
---|
394 | <ttcol>left</ttcol> |
---|
395 | <c>1</c> |
---|
396 | </texttable> |
---|
397 | <texttable align="center"> |
---|
398 | <ttcol>center</ttcol> |
---|
399 | <c>1</c> |
---|
400 | </texttable> |
---|
401 | <texttable align="right"> |
---|
402 | <ttcol>right</ttcol> |
---|
403 | <c>1</c> |
---|
404 | </texttable> |
---|
405 | <texttable> |
---|
406 | <ttcol>default</ttcol> |
---|
407 | <c>1</c> |
---|
408 | </texttable> |
---|
409 | </section> |
---|
410 | |
---|
411 | </section> |
---|
412 | |
---|
413 | |
---|
414 | <section title="Figures"> |
---|
415 | <section title="with preamble, no title..."> |
---|
416 | <figure> |
---|
417 | <preamble>with preamble, no title...</preamble> |
---|
418 | <artwork> |
---|
419 | +--+ |
---|
420 | | | |
---|
421 | +--+ |
---|
422 | </artwork> |
---|
423 | </figure> |
---|
424 | </section> |
---|
425 | |
---|
426 | <section title="with postamble and title..."> |
---|
427 | <figure title="another figure" anchor="testfig"> |
---|
428 | <artwork> |
---|
429 | +--+ |
---|
430 | | | |
---|
431 | +--+ |
---|
432 | </artwork> |
---|
433 | <postamble>with postamble and title...</postamble> |
---|
434 | </figure> |
---|
435 | <t> |
---|
436 | The figure above has the title "<xref target="testfig" format="title" />". |
---|
437 | </t> |
---|
438 | </section> |
---|
439 | |
---|
440 | <section title="Whitespace handling"> |
---|
441 | <t> |
---|
442 | Para... |
---|
443 | </t> |
---|
444 | <figure> |
---|
445 | <preamble>Leading whitespace</preamble> |
---|
446 | <artwork> |
---|
447 | test test (leading ws)</artwork> |
---|
448 | </figure> |
---|
449 | <t> |
---|
450 | Para... |
---|
451 | </t> |
---|
452 | <figure> |
---|
453 | <preamble>Trailing whitespace</preamble> |
---|
454 | <artwork>test test (trailing ws) |
---|
455 | </artwork> |
---|
456 | </figure> |
---|
457 | <t> |
---|
458 | Para... |
---|
459 | </t> |
---|
460 | <figure> |
---|
461 | <preamble>No whitespace</preamble> |
---|
462 | <artwork>test test (no ws)</artwork> |
---|
463 | </figure> |
---|
464 | <t> |
---|
465 | Para... |
---|
466 | </t> |
---|
467 | </section> |
---|
468 | |
---|
469 | <!-- as proposed by Bill F --> |
---|
470 | <section title="Whitespace around figures"> |
---|
471 | <t>spacing paragraph</t> |
---|
472 | <figure><artwork>ART</artwork></figure> |
---|
473 | <t>spacing paragraph</t> |
---|
474 | <figure><preamble>preamble, then</preamble><artwork>ART</artwork></figure> |
---|
475 | <t>spacing paragraph</t> |
---|
476 | <figure><artwork>ART</artwork><postamble>then postamble</postamble></figure> |
---|
477 | <t>spacing paragraph</t> |
---|
478 | </section> |
---|
479 | |
---|
480 | <section title="SVG"> |
---|
481 | <t> |
---|
482 | Inclusion of SVG: |
---|
483 | </t> |
---|
484 | <figure><artwork src="testcase.svg" type="image/svg+xml"> |
---|
485 | Fallback content for UAs that do not support SVG. |
---|
486 | </artwork></figure> |
---|
487 | </section> |
---|
488 | |
---|
489 | <section title="Code Components" anchor="code.components"> |
---|
490 | <t> |
---|
491 | Marking up Code Components according to the |
---|
492 | <eref target="http://trustee.ietf.org/docs/IETF-Trust-License-Policy.pdf">Legal Provisions Relating to IETF Documents</eref>: |
---|
493 | </t> |
---|
494 | <figure><artwork type="code" x:is-code-component="yes"> |
---|
495 | int main(int argc, char **argv) { |
---|
496 | return -1; |
---|
497 | } |
---|
498 | </artwork></figure> |
---|
499 | </section> |
---|
500 | |
---|
501 | </section> |
---|
502 | |
---|
503 | <section title="References" anchor="refs"> |
---|
504 | |
---|
505 | <section title="xref with no content" anchor="xref.with.no.content"> |
---|
506 | <t anchor="xref.with.no.content.first.sentence"> |
---|
507 | <xref target="refs" /> is the parent section. |
---|
508 | </t> |
---|
509 | </section> |
---|
510 | |
---|
511 | <section title="xref to named <t> element"> |
---|
512 | <t> |
---|
513 | With content: see <xref target="xref.with.no.content.first.sentence" format="none">first sentence</xref> |
---|
514 | of previous section. |
---|
515 | </t> |
---|
516 | <t> |
---|
517 | Without content: see <xref target="xref.with.no.content.first.sentence"/>. |
---|
518 | </t> |
---|
519 | </section> |
---|
520 | |
---|
521 | <section title="xref to named <spanx> element"> |
---|
522 | <t> |
---|
523 | <spanx anchor="spanx.anchor">With content</spanx>: see <xref target="spanx.anchor" format="none">this sentence</xref>. |
---|
524 | </t> |
---|
525 | </section> |
---|
526 | |
---|
527 | <section title="xref to named <t> element inside list"> |
---|
528 | <t> |
---|
529 | With content: see <xref target="listelement.anchor" format="none">first element in list below</xref>. |
---|
530 | </t> |
---|
531 | <t> |
---|
532 | <list style="hanging"> |
---|
533 | <t anchor="listelement.anchor" hangText="test">Test</t> |
---|
534 | </list> |
---|
535 | </t> |
---|
536 | </section> |
---|
537 | |
---|
538 | <section title="xref to named <cref> element"> |
---|
539 | <t> |
---|
540 | With content: see <xref target="comment-test" format="none">test comment</xref>. |
---|
541 | </t> |
---|
542 | <t> |
---|
543 | Without content: see <xref target="comment-test"/>. |
---|
544 | </t> |
---|
545 | </section> |
---|
546 | |
---|
547 | <section title="xref to named <t> element inside list"> |
---|
548 | <t> |
---|
549 | See <xref target="ordered.list.letters.last" format="none">last entry</xref> in |
---|
550 | <xref target="ordered.list.letters"/> (format=none). |
---|
551 | </t> |
---|
552 | <t> |
---|
553 | See item <xref target="ordered.list.letters.last" format="counter"/> in |
---|
554 | <xref target="ordered.list.letters"/> (format=counter, letters). |
---|
555 | </t> |
---|
556 | <t> |
---|
557 | See item <xref target="ordered.list.numbers.last" format="counter"/> in |
---|
558 | <xref target="ordered.list.numbers"/> (format=counter, numbers). |
---|
559 | </t> |
---|
560 | </section> |
---|
561 | |
---|
562 | <section title="xref with no auto-formatting"> |
---|
563 | <t> |
---|
564 | So far we have sections <xref target="lists" format="counter" /> ("<xref target="lists" format="title" />") through <xref target="refs" format="counter"/> |
---|
565 | ("<xref target="refs" format="title"/>"). |
---|
566 | </t> |
---|
567 | </section> |
---|
568 | |
---|
569 | <section title="xref with content and auto-formatting"> |
---|
570 | <t> |
---|
571 | This is a subsection of <xref target="refs">References</xref>. |
---|
572 | </t> |
---|
573 | </section> |
---|
574 | |
---|
575 | <section title="xref with content and no formatting"> |
---|
576 | <t> |
---|
577 | This is a subsection of <xref target="refs" x:fmt="none">References</xref>. |
---|
578 | Here we are referring to <xref target="RFC2026" x:fmt="none">RFC 2026</xref>, |
---|
579 | without emitting extra formatting. |
---|
580 | </t> |
---|
581 | </section> |
---|
582 | |
---|
583 | <section title="xref with content and 'none' formatting" anchor="formatting.none"> |
---|
584 | <t> |
---|
585 | Here we are referring to <xref target="RFC2026" format="none">RFC 2026</xref>, |
---|
586 | without emitting extra formatting. |
---|
587 | </t> |
---|
588 | <t> |
---|
589 | Here we are referring to <xref target="formatting.none" format="none">this Section</xref>, |
---|
590 | without emitting extra formatting. |
---|
591 | </t> |
---|
592 | </section> |
---|
593 | |
---|
594 | <section title="xref with no content and anchor formatting"> |
---|
595 | <t> |
---|
596 | See [<xref target="RFC2026" x:fmt="anchor"/>, <xref target="RFC2396" x:fmt="anchor"/>]. |
---|
597 | </t> |
---|
598 | </section> |
---|
599 | |
---|
600 | <section title="eref with no content"> |
---|
601 | <t> |
---|
602 | See also <eref target="http://greenbytes.de/tech/webdav" />. Here's another |
---|
603 | one 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? |
---|
604 | </t> |
---|
605 | </section> |
---|
606 | |
---|
607 | <section title="eref with content"> |
---|
608 | <t> |
---|
609 | See also <eref target="http://greenbytes.de/tech/webdav">greenbytes WebDAV resources</eref>. |
---|
610 | </t> |
---|
611 | </section> |
---|
612 | |
---|
613 | <section title="iref inside paragraph"> |
---|
614 | <t> |
---|
615 | This paragraph contains an <iref item="inline iref"/>inline iref. |
---|
616 | </t> |
---|
617 | </section> |
---|
618 | |
---|
619 | <section title="iref before paragraph"> |
---|
620 | <iref item="section iref"/> |
---|
621 | <t> |
---|
622 | This paragraph follows an iref. |
---|
623 | </t> |
---|
624 | </section> |
---|
625 | |
---|
626 | <section title="xref with pageno attribute" anchor="xref.pageno"> |
---|
627 | <t> |
---|
628 | A reference to <xref target="xref.pageno" pageno="true"/>. |
---|
629 | </t> |
---|
630 | </section> |
---|
631 | |
---|
632 | </section> |
---|
633 | |
---|
634 | <section title="Paragraph formatting"> |
---|
635 | <t> |
---|
636 | This is the first sentence of the paragraph. This is the second sentence of |
---|
637 | the paragraph (with two leading blanks). |
---|
638 | Here's another sentence that was started on a separate line in the input |
---|
639 | file. |
---|
640 | </t> |
---|
641 | <t> |
---|
642 | This is the second paragraph. |
---|
643 | </t> |
---|
644 | </section> |
---|
645 | |
---|
646 | <section title="Sections"> |
---|
647 | |
---|
648 | <section title="Subsection with TOC entry"> |
---|
649 | </section> |
---|
650 | |
---|
651 | <section title="Subsection without TOC entry" toc="exclude"> |
---|
652 | |
---|
653 | <section title="Sub-subsection with TOC entry"> |
---|
654 | </section> |
---|
655 | |
---|
656 | </section> |
---|
657 | |
---|
658 | </section> |
---|
659 | |
---|
660 | <section title="Comments"> |
---|
661 | <t> |
---|
662 | This line contains a few comments. |
---|
663 | <cref anchor="comment-test" source="JRE">No anchor, source given.</cref> |
---|
664 | This line contains a few comments. |
---|
665 | <cref anchor="comment1">Anchor given, no source.</cref> |
---|
666 | This line contains a few comments. |
---|
667 | <cref anchor="comment2" source="JRE">Both specified.</cref> |
---|
668 | This line contains a few comments. |
---|
669 | <cref>No anchor, no source.</cref> |
---|
670 | This line contains a few comments. |
---|
671 | <cref>No anchor, no source, but embedded markup: <eref target="http://xml.resource.org"/>.</cref> |
---|
672 | This line contains a few comments. |
---|
673 | </t> |
---|
674 | </section> |
---|
675 | |
---|
676 | <section title="Artwork Width"> |
---|
677 | <figure> |
---|
678 | <preamble> |
---|
679 | This should fit (69 characters plus three spaces of indentation in text output). |
---|
680 | </preamble> |
---|
681 | <artwork> |
---|
682 | 012345678901234567890123456789012345678901234567890123456789012345678 |
---|
683 | </artwork> |
---|
684 | </figure> |
---|
685 | <figure> |
---|
686 | <preamble> |
---|
687 | This shouldn't. |
---|
688 | </preamble> |
---|
689 | <artwork> |
---|
690 | 0123456789012345678901234567890123456789012345678901234567890123456789 |
---|
691 | </artwork> |
---|
692 | </figure> |
---|
693 | <figure><artwork x:indent-with="**********"> |
---|
694 | (IN TEXT OUTPUT INDENTED BY 10) |
---|
695 | 012345678901234567890123456789012345678901234567890123456789012 |
---|
696 | </artwork></figure> |
---|
697 | </section> |
---|
698 | |
---|
699 | <section title="Extensions" anchor="extensions"> |
---|
700 | <t> |
---|
701 | These are tests for extensions done in <spanx style="verb">rfc2629.xslt</spanx>. |
---|
702 | Do not expect them to work out-of-the-box in <spanx style="verb">xml2rfc</spanx>. |
---|
703 | </t> |
---|
704 | |
---|
705 | <section title="Markup in figure/artwork"> |
---|
706 | <figure> |
---|
707 | <artwork> |
---|
708 | Internal References: a test reference to <xref target="RFC2396"/> |
---|
709 | |
---|
710 | External References: a test reference to <eref target="http://xml.resource.org"/> |
---|
711 | |
---|
712 | <iref item="<iref> in <artwork>"/>a test index entry inside a figure |
---|
713 | |
---|
714 | Styling: <spanx><spanx></spanx> inside artwork |
---|
715 | </artwork> |
---|
716 | </figure> |
---|
717 | </section> |
---|
718 | |
---|
719 | <section title="Measuring Lengths"> |
---|
720 | <figure> |
---|
721 | <artwork type="message/http; msgtype="request""> |
---|
722 | PUT / HTTP/1.1 |
---|
723 | Host: example.org |
---|
724 | Content-Type: application/xml |
---|
725 | Content-Length: <x:length-of target="req1"/> |
---|
726 | |
---|
727 | <x:span anchor="req1"><foo/></x:span></artwork></figure> |
---|
728 | |
---|
729 | <figure> |
---|
730 | <preamble>...without indentation:</preamble> |
---|
731 | <artwork type="message/http; msgtype="request""> |
---|
732 | PUT / HTTP/1.1 |
---|
733 | Host: example.org |
---|
734 | Content-Type: text/plain |
---|
735 | Content-Length: <x:length-of target="req2"/> |
---|
736 | |
---|
737 | <x:span anchor="req2">Line 1 |
---|
738 | Line 2 |
---|
739 | </x:span></artwork></figure> |
---|
740 | |
---|
741 | <figure> |
---|
742 | <preamble>...with indentation:</preamble> |
---|
743 | <artwork type="message/http; msgtype="request""> |
---|
744 | PUT / HTTP/1.1 |
---|
745 | Host: example.org |
---|
746 | Content-Type: text/plain |
---|
747 | Content-Length: <x:length-of target="req3" indented="2"/> |
---|
748 | |
---|
749 | <x:span anchor="req3"> Line 1 |
---|
750 | Line 2 |
---|
751 | </x:span></artwork></figure> |
---|
752 | </section> |
---|
753 | |
---|
754 | <section title="Quotations"> |
---|
755 | <t> |
---|
756 | Here's a quote: |
---|
757 | <x:q>This is a Quote.</x:q> |
---|
758 | </t> |
---|
759 | <t> |
---|
760 | Here's a block level quote: |
---|
761 | </t> |
---|
762 | <x:blockquote> |
---|
763 | <t> |
---|
764 | Here's a quote. |
---|
765 | </t> |
---|
766 | <t> |
---|
767 | More text. |
---|
768 | </t> |
---|
769 | </x:blockquote> |
---|
770 | </section> |
---|
771 | |
---|
772 | <section title="Subsections"> |
---|
773 | <t> |
---|
774 | <x:h>Foo</x:h> |
---|
775 | </t> |
---|
776 | <t> |
---|
777 | The line above should be marked up similar to a subsection heading. |
---|
778 | </t> |
---|
779 | </section> |
---|
780 | |
---|
781 | <section title="Box Drawing"> |
---|
782 | <figure> |
---|
783 | <preamble> |
---|
784 | The figure below should use box drawing characters instead of |
---|
785 | "+", "-" and "|". |
---|
786 | </preamble> |
---|
787 | <artwork> |
---|
788 | <x:bt>+----------------+</x:bt> |
---|
789 | <x:bc>| This is a Box. |</x:bc> |
---|
790 | <x:bb>+----------------+</x:bb> |
---|
791 | </artwork> |
---|
792 | </figure> |
---|
793 | |
---|
794 | </section> |
---|
795 | |
---|
796 | <section title="Computed Reference Targets" anchor="computed.reference.targets"> |
---|
797 | <t> |
---|
798 | Referring to this section by anchor name indirectly through the references: |
---|
799 | <xref target="TSTCS" x:fmt="of" x:rel="#computed.reference.targets"/>. |
---|
800 | </t> |
---|
801 | <t> |
---|
802 | (default formatting): |
---|
803 | <xref target="TSTCS" x:rel="#computed.reference.targets"/>. |
---|
804 | </t> |
---|
805 | <figure><artwork> |
---|
806 | Default inside a figure: <xref target="TSTCS" x:rel="#computed.reference.targets"/> |
---|
807 | </artwork></figure> |
---|
808 | <t> |
---|
809 | With a broken anchor: |
---|
810 | <xref target="TSTCS" x:rel="#a-target-that-isnt-defined"/>. |
---|
811 | </t> |
---|
812 | </section> |
---|
813 | |
---|
814 | <section title="ABNF Support" anchor="abnf.support"> |
---|
815 | <figure><artwork> |
---|
816 | case-insensitive1 = "abcdefghijlkmnopqrstuvwxyz" |
---|
817 | case-insensitive2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
---|
818 | case-sensitive1 = <x:abnf-char-sequence>"abcdefghijlkmnopqrstuvwxyz"</x:abnf-char-sequence> |
---|
819 | case-sensitive2 = <x:abnf-char-sequence>"ABCDEFGHIJKLMNOPQRSTUVWXYZ"</x:abnf-char-sequence> |
---|
820 | </artwork></figure> |
---|
821 | </section> |
---|
822 | |
---|
823 | |
---|
824 | </section> |
---|
825 | |
---|
826 | <section title="Blank Lines"> |
---|
827 | <t> |
---|
828 | Just a forced <vspace/> |
---|
829 | line break. |
---|
830 | </t> |
---|
831 | <t> |
---|
832 | One <vspace blankLines="1"/> |
---|
833 | blank line. |
---|
834 | </t> |
---|
835 | <t> |
---|
836 | Seven <vspace blankLines="7"/> |
---|
837 | blank lines. |
---|
838 | </t> |
---|
839 | <t> |
---|
840 | 999 <vspace blankLines="999"/> |
---|
841 | blank lines (this is likely an attempt to force a pagebreak, thus the |
---|
842 | generated HTML should <spanx>not</spanx> contain the blank lines, but only |
---|
843 | one). |
---|
844 | </t> |
---|
845 | </section> |
---|
846 | |
---|
847 | <section title="Other"> |
---|
848 | |
---|
849 | <section title="Comments in Text"> |
---|
850 | <t> |
---|
851 | First sentence (before XML comment, invisible here). |
---|
852 | <!-- a comment --> |
---|
853 | Second sentence. |
---|
854 | </t> |
---|
855 | </section> |
---|
856 | |
---|
857 | <section title="Special Characters"> |
---|
858 | <section title="Non-Breaking Space" anchor="nbsp"> |
---|
859 | <t> |
---|
860 | Non breaking space. |
---|
861 | Non breaking space. |
---|
862 | Non breaking space. |
---|
863 | Non breaking space. |
---|
864 | Non breaking space. |
---|
865 | Non breaking space. |
---|
866 | Non breaking space. |
---|
867 | Non breaking space. |
---|
868 | Non breaking space. |
---|
869 | Non breaking space. |
---|
870 | Non breaking space. |
---|
871 | Non breaking space. |
---|
872 | Non breaking space. |
---|
873 | Non breaking space. |
---|
874 | Non breaking space. |
---|
875 | Non breaking space. |
---|
876 | Non breaking space. |
---|
877 | Non breaking space. |
---|
878 | Non breaking space. |
---|
879 | Non breaking space. |
---|
880 | Non breaking space. |
---|
881 | Non breaking space. |
---|
882 | </t> |
---|
883 | </section> |
---|
884 | <section title="Non-Breaking Hyphen" anchor="nbhy"> |
---|
885 | <t> |
---|
886 | Non&nbhy;breaking&nbhy;hyphen. |
---|
887 | Non&nbhy;breaking&nbhy;hyphen. |
---|
888 | Non&nbhy;breaking&nbhy;hyphen. |
---|
889 | Non&nbhy;breaking&nbhy;hyphen. |
---|
890 | Non&nbhy;breaking&nbhy;hyphen. |
---|
891 | Non&nbhy;breaking&nbhy;hyphen. |
---|
892 | Non&nbhy;breaking&nbhy;hyphen. |
---|
893 | Non&nbhy;breaking&nbhy;hyphen. |
---|
894 | Non&nbhy;breaking&nbhy;hyphen. |
---|
895 | Non&nbhy;breaking&nbhy;hyphen. |
---|
896 | Non&nbhy;breaking&nbhy;hyphen. |
---|
897 | Non&nbhy;breaking&nbhy;hyphen. |
---|
898 | Non&nbhy;breaking&nbhy;hyphen. |
---|
899 | Non&nbhy;breaking&nbhy;hyphen. |
---|
900 | Non&nbhy;breaking&nbhy;hyphen. |
---|
901 | Non&nbhy;breaking&nbhy;hyphen. |
---|
902 | Non&nbhy;breaking&nbhy;hyphen. |
---|
903 | Non&nbhy;breaking&nbhy;hyphen. |
---|
904 | Non&nbhy;breaking&nbhy;hyphen. |
---|
905 | Non&nbhy;breaking&nbhy;hyphen. |
---|
906 | (wrt Apache FOP, see <eref target="http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200905.mbox/%3C4A035745.10601@freemail.gr%3E"/>) |
---|
907 | </t> |
---|
908 | </section> |
---|
909 | <section title="Dashes" anchor="dashes"> |
---|
910 | <t> |
---|
911 | mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. |
---|
912 | mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. |
---|
913 | mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. |
---|
914 | mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. |
---|
915 | mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. mdash — with regular spaces. |
---|
916 | </t> |
---|
917 | <t> |
---|
918 | mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. |
---|
919 | mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. |
---|
920 | mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. |
---|
921 | mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. |
---|
922 | mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. mdash—with no spaces. |
---|
923 | </t> |
---|
924 | <t> |
---|
925 | mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. |
---|
926 | mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. |
---|
927 | mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. |
---|
928 | mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. |
---|
929 | mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. mdash — with thin spaces. |
---|
930 | </t> |
---|
931 | </section> |
---|
932 | </section> |
---|
933 | |
---|
934 | </section> |
---|
935 | |
---|
936 | </middle> |
---|
937 | |
---|
938 | <back> |
---|
939 | <references> |
---|
940 | <reference anchor='RFC2026'> |
---|
941 | |
---|
942 | <front> |
---|
943 | <title abbrev='Internet Standards Process'>The Internet Standards Process -- Revision 3</title> |
---|
944 | <author initials='S.' surname='Bradner' fullname='Scott O. Bradner'> |
---|
945 | <organization>Harvard University</organization> |
---|
946 | <address> |
---|
947 | <postal> |
---|
948 | <street>1350 Mass. Ave.</street> |
---|
949 | <city>Cambridge</city> |
---|
950 | <region>MA</region> |
---|
951 | <code>02138</code> |
---|
952 | <country>US</country></postal> |
---|
953 | <phone>+1 617 495 3864</phone> |
---|
954 | <email>sob@harvard.edu</email></address></author> |
---|
955 | <date month='October' year='1996' /> |
---|
956 | <abstract> |
---|
957 | <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> |
---|
958 | |
---|
959 | <seriesInfo name='BCP' value='9' /> |
---|
960 | <seriesInfo name='RFC' value='2026' /> |
---|
961 | <format type='TXT' octets='86731' target='ftp://ftp.isi.edu/in-notes/rfc2026.txt' /> |
---|
962 | </reference> |
---|
963 | |
---|
964 | <reference anchor="RFC2396"> |
---|
965 | |
---|
966 | <front> |
---|
967 | <title abbrev="URI Generic Syntax">Uniform Resource Identifiers (URI): Generic Syntax</title> |
---|
968 | <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee"> |
---|
969 | <organization>World Wide Web Consortium</organization> |
---|
970 | <address> |
---|
971 | <postal> |
---|
972 | <street>MIT Laboratory for Computer Science, NE43-356</street> |
---|
973 | <street>545 Technology Square</street> |
---|
974 | <city>Cambridge</city> |
---|
975 | <region>MA</region> |
---|
976 | <code>02139</code></postal> |
---|
977 | <facsimile>+1(617)258-8682</facsimile> |
---|
978 | <email>timbl@w3.org</email></address></author> |
---|
979 | <author initials="R.T." surname="Fielding" fullname="Roy T. Fielding"> |
---|
980 | <organization>Department of Information and Computer Science</organization> |
---|
981 | <address> |
---|
982 | <postal> |
---|
983 | <street>University of California, Irvine</street> |
---|
984 | <city>Irvine</city> |
---|
985 | <region>CA</region> |
---|
986 | <code>92697-3425</code></postal> |
---|
987 | <facsimile>+1(949)824-1715</facsimile> |
---|
988 | <email>fielding@ics.uci.edu</email></address></author> |
---|
989 | <author initials="L." surname="Masinter" fullname="Larry Masinter"> |
---|
990 | <organization>Xerox PARC</organization> |
---|
991 | <address> |
---|
992 | <postal> |
---|
993 | <street>3333 Coyote Hill Road</street> |
---|
994 | <city>Palo Alto</city> |
---|
995 | <region>CA</region> |
---|
996 | <code>94034</code></postal> |
---|
997 | <facsimile>+1(415)812-4333</facsimile> |
---|
998 | <email>masinter@parc.xerox.com</email></address></author> |
---|
999 | <date month="August" year="1998"/> |
---|
1000 | <area>Applications</area> |
---|
1001 | <keyword>uniform resource</keyword> |
---|
1002 | <keyword>URI</keyword> |
---|
1003 | </front> |
---|
1004 | <seriesInfo name="RFC" value="2396"/> |
---|
1005 | <annotation> |
---|
1006 | This RFC will soon be updated, check |
---|
1007 | <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/rfc2396bis.html" /> for the latest draft. |
---|
1008 | </annotation> |
---|
1009 | <annotation> |
---|
1010 | The issues list is at <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/issues.html" />. |
---|
1011 | </annotation> |
---|
1012 | |
---|
1013 | </reference> |
---|
1014 | |
---|
1015 | <reference anchor="TSTCS"> |
---|
1016 | <front> |
---|
1017 | <title>Test cases for RFC2629 formatting</title> |
---|
1018 | |
---|
1019 | <author initials="J. F." surname="Reschke" fullname="Julian F. Reschke"> |
---|
1020 | <organization abbrev="greenbytes">greenbytes GmbH</organization> |
---|
1021 | <address> |
---|
1022 | <postal> |
---|
1023 | <street>Hafenweg 16</street> |
---|
1024 | <city>Muenster</city><region>NW</region><code>48155</code> |
---|
1025 | <country>Germany</country> |
---|
1026 | </postal> |
---|
1027 | <phone>+49 251 2807760</phone> |
---|
1028 | <facsimile>+49 251 2807761</facsimile> |
---|
1029 | <email>julian.reschke@greenbytes.de</email> |
---|
1030 | <uri>http://greenbytes.de/tech/webdav/</uri> |
---|
1031 | </address> |
---|
1032 | </author> |
---|
1033 | <date month="March" year="2008"/> |
---|
1034 | </front> |
---|
1035 | <x:source href="testcase.xml"/> |
---|
1036 | </reference> |
---|
1037 | |
---|
1038 | </references> |
---|
1039 | </back> |
---|
1040 | </rfc> |
---|