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