Changeset 1472
- Timestamp:
- 05/11/11 17:01:22 (11 years ago)
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
draft-ietf-httpbis/latest/p1-messaging.html
r1471 r1472 396 396 <link rel="Appendix" title="B Collected ABNF" href="#rfc.section.B"> 397 397 <link rel="Appendix" title="C Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.C"> 398 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.556, 2011-08-28 20:30:48, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 398 <link href="p2-semantics.html" rel="next"> 399 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 399 400 <link rel="schema.dct" href="http://purl.org/dc/terms/"> 400 401 <meta name="dct.creator" content="Fielding, R."> -
draft-ietf-httpbis/latest/p1-messaging.xml
r1471 r1472 58 58 ipr="pre5378Trust200902" docName="draft-ietf-httpbis-p1-messaging-&ID-VERSION;" 59 59 xmlns:x='http://purl.org/net/xml2rfc/ext'> 60 <x:link rel="next" basename="p2-semantics"/> 60 61 <front> 61 62 -
draft-ietf-httpbis/latest/p2-semantics.html
r1469 r1472 359 359 } 360 360 @bottom-center { 361 content: "Expires May 4, 2012";361 content: "Expires May 8, 2012"; 362 362 } 363 363 @bottom-right { … … 397 397 <link rel="Appendix" title="B Collected ABNF" href="#rfc.section.B"> 398 398 <link rel="Appendix" title="C Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.C"> 399 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.556, 2011-08-28 20:30:48, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 399 <link href="p1-messaging.html" rel="prev"> 400 <link href="p3-payload.html" rel="next"> 401 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 400 402 <link rel="schema.dct" href="http://purl.org/dc/terms/"> 401 403 <meta name="dct.creator" content="Fielding, R."> … … 409 411 <meta name="dct.creator" content="Reschke, J. F."> 410 412 <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p2-semantics-latest"> 411 <meta name="dct.issued" scheme="ISO8601" content="2011-11-0 1">413 <meta name="dct.issued" scheme="ISO8601" content="2011-11-05"> 412 414 <meta name="dct.replaces" content="urn:ietf:rfc:2616"> 413 415 <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 2 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 2 defines the semantics of HTTP messages as expressed by request methods, request header fields, response status codes, and response header fields."> … … 440 442 </tr> 441 443 <tr> 442 <td class="left">Expires: May 4, 2012</td>444 <td class="left">Expires: May 8, 2012</td> 443 445 <td class="right">HP</td> 444 446 </tr> … … 493 495 <tr> 494 496 <td class="left"></td> 495 <td class="right">November 1, 2011</td>497 <td class="right">November 5, 2011</td> 496 498 </tr> 497 499 </tbody> … … 523 525 in progress”. 524 526 </p> 525 <p>This Internet-Draft will expire on May 4, 2012.</p>527 <p>This Internet-Draft will expire on May 8, 2012.</p> 526 528 <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> 527 529 <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> -
draft-ietf-httpbis/latest/p2-semantics.xml
r1469 r1472 104 104 xmlns:x='http://purl.org/net/xml2rfc/ext' 105 105 xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'> 106 <x:link rel="prev" basename="p1-messaging"/> 107 <x:link rel="next" basename="p3-payload"/> 106 108 <front> 107 109 -
draft-ietf-httpbis/latest/p3-payload.html
r1469 r1472 359 359 } 360 360 @bottom-center { 361 content: "Expires May 4, 2012";361 content: "Expires May 8, 2012"; 362 362 } 363 363 @bottom-right { … … 396 396 <link rel="Appendix" title="D Collected ABNF" href="#rfc.section.D"> 397 397 <link rel="Appendix" title="E Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.E"> 398 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.556, 2011-08-28 20:30:48, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 398 <link href="p2-semantics.html" rel="prev"> 399 <link href="p4-conditional.html" rel="next"> 400 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 399 401 <link rel="schema.dct" href="http://purl.org/dc/terms/"> 400 402 <meta name="dct.creator" content="Fielding, R."> … … 408 410 <meta name="dct.creator" content="Reschke, J. F."> 409 411 <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p3-payload-latest"> 410 <meta name="dct.issued" scheme="ISO8601" content="2011-11-0 1">412 <meta name="dct.issued" scheme="ISO8601" content="2011-11-05"> 411 413 <meta name="dct.replaces" content="urn:ietf:rfc:2616"> 412 414 <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 3 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 3 defines HTTP message content, metadata, and content negotiation."> … … 434 436 </tr> 435 437 <tr> 436 <td class="left">Expires: May 4, 2012</td>438 <td class="left">Expires: May 8, 2012</td> 437 439 <td class="right">J. Mogul</td> 438 440 </tr> … … 491 493 <tr> 492 494 <td class="left"></td> 493 <td class="right">November 1, 2011</td>495 <td class="right">November 5, 2011</td> 494 496 </tr> 495 497 </tbody> … … 519 521 in progress”. 520 522 </p> 521 <p>This Internet-Draft will expire on May 4, 2012.</p>523 <p>This Internet-Draft will expire on May 8, 2012.</p> 522 524 <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> 523 525 <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> -
draft-ietf-httpbis/latest/p3-payload.xml
r1469 r1472 58 58 ipr="pre5378Trust200902" docName="draft-ietf-httpbis-p3-payload-&ID-VERSION;" 59 59 xmlns:x='http://purl.org/net/xml2rfc/ext'> 60 <x:link rel="prev" basename="p2-semantics"/> 61 <x:link rel="next" basename="p4-conditional"/> 60 62 <front> 61 63 -
draft-ietf-httpbis/latest/p4-conditional.html
r1470 r1472 359 359 } 360 360 @bottom-center { 361 content: "Expires May 5, 2012";361 content: "Expires May 8, 2012"; 362 362 } 363 363 @bottom-right { … … 392 392 <link rel="Appendix" title="B Collected ABNF" href="#rfc.section.B"> 393 393 <link rel="Appendix" title="C Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.C"> 394 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.556, 2011-08-28 20:30:48, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 394 <link href="p3-payload.html" rel="prev"> 395 <link href="p5-range.html" rel="next"> 396 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 395 397 <link rel="schema.dct" href="http://purl.org/dc/terms/"> 396 398 <meta name="dct.creator" content="Fielding, R."> … … 404 406 <meta name="dct.creator" content="Reschke, J. F."> 405 407 <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p4-conditional-latest"> 406 <meta name="dct.issued" scheme="ISO8601" content="2011-11-0 2">408 <meta name="dct.issued" scheme="ISO8601" content="2011-11-05"> 407 409 <meta name="dct.replaces" content="urn:ietf:rfc:2616"> 408 410 <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 4 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 4 defines request header fields for indicating conditional requests and the rules for constructing responses to those requests."> … … 430 432 </tr> 431 433 <tr> 432 <td class="left">Expires: May 5, 2012</td>434 <td class="left">Expires: May 8, 2012</td> 433 435 <td class="right">J. Mogul</td> 434 436 </tr> … … 487 489 <tr> 488 490 <td class="left"></td> 489 <td class="right">November 2, 2011</td>491 <td class="right">November 5, 2011</td> 490 492 </tr> 491 493 </tbody> … … 517 519 in progress”. 518 520 </p> 519 <p>This Internet-Draft will expire on May 5, 2012.</p>521 <p>This Internet-Draft will expire on May 8, 2012.</p> 520 522 <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> 521 523 <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> -
draft-ietf-httpbis/latest/p4-conditional.xml
r1470 r1472 47 47 ipr="pre5378Trust200902" docName="draft-ietf-httpbis-p4-conditional-&ID-VERSION;" 48 48 xmlns:x='http://purl.org/net/xml2rfc/ext'> 49 <x:link rel="prev" basename="p3-payload"/> 50 <x:link rel="next" basename="p5-range"/> 49 51 <front> 50 52 -
draft-ietf-httpbis/latest/p5-range.html
r1469 r1472 359 359 } 360 360 @bottom-center { 361 content: "Expires May 4, 2012";361 content: "Expires May 8, 2012"; 362 362 } 363 363 @bottom-right { … … 394 394 <link rel="Appendix" title="C Collected ABNF" href="#rfc.section.C"> 395 395 <link rel="Appendix" title="D Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.D"> 396 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.556, 2011-08-28 20:30:48, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 396 <link href="p4-conditional.html" rel="prev"> 397 <link href="p6-cache.html" rel="next"> 398 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 397 399 <link rel="schema.dct" href="http://purl.org/dc/terms/"> 398 400 <meta name="dct.creator" content="Fielding, R."> … … 406 408 <meta name="dct.creator" content="Reschke, J. F."> 407 409 <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p5-range-latest"> 408 <meta name="dct.issued" scheme="ISO8601" content="2011-11-0 1">410 <meta name="dct.issued" scheme="ISO8601" content="2011-11-05"> 409 411 <meta name="dct.replaces" content="urn:ietf:rfc:2616"> 410 412 <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 5 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 5 defines range-specific requests and the rules for constructing and combining responses to those requests."> … … 432 434 </tr> 433 435 <tr> 434 <td class="left">Expires: May 4, 2012</td>436 <td class="left">Expires: May 8, 2012</td> 435 437 <td class="right">J. Mogul</td> 436 438 </tr> … … 489 491 <tr> 490 492 <td class="left"></td> 491 <td class="right">November 1, 2011</td>493 <td class="right">November 5, 2011</td> 492 494 </tr> 493 495 </tbody> … … 517 519 in progress”. 518 520 </p> 519 <p>This Internet-Draft will expire on May 4, 2012.</p>521 <p>This Internet-Draft will expire on May 8, 2012.</p> 520 522 <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> 521 523 <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> -
draft-ietf-httpbis/latest/p5-range.xml
r1469 r1472 41 41 <rfc obsoletes="2616" category="std" x:maturity-level="draft" 42 42 ipr="pre5378Trust200902" docName="draft-ietf-httpbis-p5-range-&ID-VERSION;" xmlns:x='http://purl.org/net/xml2rfc/ext'> 43 <x:link rel="prev" basename="p4-conditional"/> 44 <x:link rel="next" basename="p6-cache"/> 43 45 <front> 44 46 -
draft-ietf-httpbis/latest/p6-cache.html
r1469 r1472 362 362 } 363 363 @bottom-center { 364 content: "Expires May 4, 2012";364 content: "Expires May 8, 2012"; 365 365 } 366 366 @bottom-right { … … 395 395 <link rel="Appendix" title="B Collected ABNF" href="#rfc.section.B"> 396 396 <link rel="Appendix" title="C Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.C"> 397 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.556, 2011-08-28 20:30:48, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 397 <link href="p5-range.html" rel="prev"> 398 <link href="p7-auth.html" rel="next"> 399 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 398 400 <link rel="schema.dct" href="http://purl.org/dc/terms/"> 399 401 <meta name="dct.creator" content="Fielding, R."> … … 408 410 <meta name="dct.creator" content="Reschke, J. F."> 409 411 <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p6-cache-latest"> 410 <meta name="dct.issued" scheme="ISO8601" content="2011-11-0 1">412 <meta name="dct.issued" scheme="ISO8601" content="2011-11-05"> 411 413 <meta name="dct.replaces" content="urn:ietf:rfc:2616"> 412 414 <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypertext information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 6 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 6 defines requirements on HTTP caches and the associated header fields that control cache behavior or indicate cacheable response messages."> … … 434 436 </tr> 435 437 <tr> 436 <td class="left">Expires: May 4, 2012</td>438 <td class="left">Expires: May 8, 2012</td> 437 439 <td class="right">J. Mogul</td> 438 440 </tr> … … 499 501 <tr> 500 502 <td class="left"></td> 501 <td class="right">November 1, 2011</td>503 <td class="right">November 5, 2011</td> 502 504 </tr> 503 505 </tbody> … … 529 531 in progress”. 530 532 </p> 531 <p>This Internet-Draft will expire on May 4, 2012.</p>533 <p>This Internet-Draft will expire on May 8, 2012.</p> 532 534 <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> 533 535 <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> -
draft-ietf-httpbis/latest/p6-cache.xml
r1469 r1472 55 55 <rfc category="std" docName="draft-ietf-httpbis-p6-cache-&ID-VERSION;" ipr="pre5378Trust200902" 56 56 obsoletes="2616" x:maturity-level="draft" xmlns:x="http://purl.org/net/xml2rfc/ext"> 57 <x:link rel="prev" basename="p5-range"/> 58 <x:link rel="next" basename="p7-auth"/> 57 59 <front> 58 60 -
draft-ietf-httpbis/latest/p7-auth.html
r1469 r1472 359 359 } 360 360 @bottom-center { 361 content: "Expires May 4, 2012";361 content: "Expires May 8, 2012"; 362 362 } 363 363 @bottom-right { … … 392 392 <link rel="Appendix" title="B Collected ABNF" href="#rfc.section.B"> 393 393 <link rel="Appendix" title="C Change Log (to be removed by RFC Editor before publication)" href="#rfc.section.C"> 394 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.556, 2011-08-28 20:30:48, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 394 <link href="p6-cache.html" rel="prev"> 395 <meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 8.9 from Saxonica http://www.saxonica.com/"> 395 396 <link rel="schema.dct" href="http://purl.org/dc/terms/"> 396 397 <meta name="dct.creator" content="Fielding, R."> … … 404 405 <meta name="dct.creator" content="Reschke, J. F."> 405 406 <meta name="dct.identifier" content="urn:ietf:id:draft-ietf-httpbis-p7-auth-latest"> 406 <meta name="dct.issued" scheme="ISO8601" content="2011-11-0 1">407 <meta name="dct.issued" scheme="ISO8601" content="2011-11-05"> 407 408 <meta name="dct.replaces" content="urn:ietf:rfc:2616"> 408 409 <meta name="dct.abstract" content="The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. HTTP has been in use by the World Wide Web global information initiative since 1990. This document is Part 7 of the seven-part specification that defines the protocol referred to as "HTTP/1.1" and, taken together, obsoletes RFC 2616. Part 7 defines the HTTP Authentication framework."> … … 435 436 </tr> 436 437 <tr> 437 <td class="left">Expires: May 4, 2012</td>438 <td class="left">Expires: May 8, 2012</td> 438 439 <td class="right">HP</td> 439 440 </tr> … … 488 489 <tr> 489 490 <td class="left"></td> 490 <td class="right">November 1, 2011</td>491 <td class="right">November 5, 2011</td> 491 492 </tr> 492 493 </tbody> … … 516 517 in progress”. 517 518 </p> 518 <p>This Internet-Draft will expire on May 4, 2012.</p>519 <p>This Internet-Draft will expire on May 8, 2012.</p> 519 520 <h1><a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a></h1> 520 521 <p>Copyright © 2011 IETF Trust and the persons identified as the document authors. All rights reserved.</p> -
draft-ietf-httpbis/latest/p7-auth.xml
r1469 r1472 42 42 ipr="pre5378Trust200902" docName="draft-ietf-httpbis-p7-auth-&ID-VERSION;" 43 43 xmlns:x='http://purl.org/net/xml2rfc/ext'> 44 <x:link rel="prev" basename="p6-cache"/> 44 45 <front> 45 46 -
rfc2629xslt/rfc2629-ext.rnc
r1426 r1472 368 368 x_link = 369 369 element x:link { 370 attribute basename { URI }, 370 371 attribute href { URI }, 371 372 attribute title { TEXT }?, -
rfc2629xslt/rfc2629.xslt
r1426 r1472 353 353 <xsl:param name="internetDraftUrlPostfix" select="''" /> 354 354 <xsl:param name="internetDraftUrlFrag" select="'section-'" /> 355 356 <!-- the format we're producing --> 357 <xsl:param name="outputExtension" select="'html'"/> 355 358 356 359 <!-- warning re: absent node-set ext. function --> … … 1465 1468 <xsl:choose> 1466 1469 <xsl:when test="$ref and $bib/x:source/@href and $bib/x:source/@basename and $ref/@x:rel"> 1467 <xsl:value-of select="concat($bib/x:source/@basename,'. html',$ref/@x:rel)" />1470 <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension,$ref/@x:rel)" /> 1468 1471 </xsl:when> 1469 1472 <!-- tools.ietf.org won't have the "-latest" draft --> 1470 1473 <xsl:when test="$bib/seriesInfo/@name='Internet-Draft' and $bib/x:source/@href and $bib/x:source/@basename and substring($bib/x:source/@basename, (string-length($bib/x:source/@basename) - string-length('-latest')) + 1)='-latest'"> 1471 <!-- TODO: should produce the right extension based on the format we're producing --> 1472 <xsl:value-of select="concat($bib/x:source/@basename,'.html')" /> 1474 <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension)" /> 1473 1475 </xsl:when> 1474 1476 <xsl:when test="$bib/seriesInfo/@name='RFC'"> … … 1865 1867 <xsl:apply-templates select="/" mode="links" /> 1866 1868 <xsl:for-each select="x:link"> 1867 <link><xsl:copy-of select="@*" /></link> 1869 <link> 1870 <xsl:choose> 1871 <xsl:when test="@basename"> 1872 <xsl:attribute name="href"> 1873 <xsl:value-of select="concat(@basename,'.',$outputExtension)"/> 1874 </xsl:attribute> 1875 <xsl:copy-of select="@rel|@title" /> 1876 </xsl:when> 1877 <xsl:otherwise> 1878 <xsl:copy-of select="@*" /> 1879 </xsl:otherwise> 1880 </xsl:choose> 1881 </link> 1868 1882 </xsl:for-each> 1869 1883 <xsl:if test="@number"> … … 6346 6360 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 6347 6361 <!-- when RCS keyword substitution in place, add version info --> 6348 <xsl:if test="contains('$Revision: 1.55 6$',':')">6349 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.55 6$', 'Revision: '),'$','')),', ')" />6362 <xsl:if test="contains('$Revision: 1.558 $',':')"> 6363 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.558 $', 'Revision: '),'$','')),', ')" /> 6350 6364 </xsl:if> 6351 <xsl:if test="contains('$Date: 2011- 08-28 20:30:48$',':')">6352 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011- 08-28 20:30:48$', 'Date: '),'$','')),', ')" />6365 <xsl:if test="contains('$Date: 2011-11-05 16:48:52 $',':')"> 6366 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-11-05 16:48:52 $', 'Date: '),'$','')),', ')" /> 6353 6367 </xsl:if> 6354 6368 <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" /> -
rfc2629xslt/rfc2629toXHTML.xslt
r1426 r1472 309 309 <xsl:param name="internetDraftUrlPostfix" select="''"/> 310 310 <xsl:param name="internetDraftUrlFrag" select="'section-'"/> 311 312 <!-- the format we're producing --> 313 <xsl:param name="outputExtension" select="'xhtml'"/> 311 314 312 315 <!-- warning re: absent node-set ext. function --> … … 1333 1336 <xsl:choose> 1334 1337 <xsl:when test="$ref and $bib/x:source/@href and $bib/x:source/@basename and $ref/@x:rel"> 1335 <xsl:value-of select="concat($bib/x:source/@basename,'. html',$ref/@x:rel)"/>1338 <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension,$ref/@x:rel)"/> 1336 1339 </xsl:when> 1337 1340 <!-- tools.ietf.org won't have the "-latest" draft --> 1338 1341 <xsl:when test="$bib/seriesInfo/@name='Internet-Draft' and $bib/x:source/@href and $bib/x:source/@basename and substring($bib/x:source/@basename, (string-length($bib/x:source/@basename) - string-length('-latest')) + 1)='-latest'"> 1339 <!-- TODO: should produce the right extension based on the format we're producing --> 1340 <xsl:value-of select="concat($bib/x:source/@basename,'.html')"/> 1342 <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension)"/> 1341 1343 </xsl:when> 1342 1344 <xsl:when test="$bib/seriesInfo/@name='RFC'"> … … 1733 1735 <xsl:apply-templates select="/" mode="links"/> 1734 1736 <xsl:for-each select="x:link"> 1735 <link><xsl:copy-of select="@*"/></link> 1737 <link> 1738 <xsl:choose> 1739 <xsl:when test="@basename"> 1740 <xsl:attribute name="href"> 1741 <xsl:value-of select="concat(@basename,'.',$outputExtension)"/> 1742 </xsl:attribute> 1743 <xsl:copy-of select="@rel|@title"/> 1744 </xsl:when> 1745 <xsl:otherwise> 1746 <xsl:copy-of select="@*"/> 1747 </xsl:otherwise> 1748 </xsl:choose> 1749 </link> 1736 1750 </xsl:for-each> 1737 1751 <xsl:if test="@number"> … … 6201 6215 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 6202 6216 <!-- when RCS keyword substitution in place, add version info --> 6203 <xsl:if test="contains('$Revision: 1.55 6$',':')">6204 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.55 6$', 'Revision: '),'$','')),', ')"/>6217 <xsl:if test="contains('$Revision: 1.558 $',':')"> 6218 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.558 $', 'Revision: '),'$','')),', ')"/> 6205 6219 </xsl:if> 6206 <xsl:if test="contains('$Date: 2011- 08-28 20:30:48$',':')">6207 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011- 08-28 20:30:48$', 'Date: '),'$','')),', ')"/>6220 <xsl:if test="contains('$Date: 2011-11-05 16:48:52 $',':')"> 6221 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-11-05 16:48:52 $', 'Date: '),'$','')),', ')"/> 6208 6222 </xsl:if> 6209 6223 <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))"/> -
rfc2629xslt/rfc2629xslt.html
r1443 r1472 356 356 } 357 357 @top-right { 358 content: " September 2011";358 content: "November 2011"; 359 359 } 360 360 @top-center { … … 383 383 } 384 384 } 385 </style><link rel="Contents" href="#rfc.toc"><link rel="Author" href="#rfc.authors"><link rel="Index" href="#rfc.index"><link rel="Chapter" title="1 Introduction" href="#rfc.section.1"><link rel="Chapter" title="2 Supported RFC2629 elements" href="#rfc.section.2"><link rel="Chapter" title="3 Processing Instructions" href="#rfc.section.3"><link rel="Chapter" title="4 Anchors" href="#rfc.section.4"><link rel="Chapter" title="5 Supported XSLT engines" href="#rfc.section.5"><link rel="Chapter" title="6 Transforming to HTML" href="#rfc.section.6"><link rel="Chapter" title="7 Transforming to XHTML" href="#rfc.section.7"><link rel="Chapter" title="8 Transforming to CHM (Microsoft Compiled Help)" href="#rfc.section.8"><link rel="Chapter" title="9 Transforming to PDF" href="#rfc.section.9"><link rel="Chapter" title="10 Transforming to ePub" href="#rfc.section.10"><link rel="Chapter" title="11 Generic Extensions" href="#rfc.section.11"><link rel="Chapter" title="12 Utilities" href="#rfc.section.12"><link rel="Chapter" href="#rfc.section.13" title="13 Informative References"><link rel="Appendix" title="A RELAX NG Compact Schema" href="#rfc.section.A"><link rel="Appendix" title="B Implementation Notes" href="#rfc.section.B"><link rel="Appendix" title="C Examples" href="#rfc.section.C"><link rel="Appendix" title="D Producing the IETF 'Boilerplate'" href="#rfc.section.D"><link rel="Appendix" title="E License" href="#rfc.section.E"><link rel="Appendix" title="F Change Logs" href="#rfc.section.F"><meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.55 6, 2011-08-28 20:30:48, XSLT vendor: SAXON 6.5.5 from Michael Kay http://saxon.sf.net/"><meta name="keywords" content="RFC2629, xml2rfc, XSLT, hCard, XSL-FO, PDF, GRDDL, epub, Dublin Core"><link rel="schema.dct" href="http://purl.org/dc/terms/"><meta name="dct.creator" content="Reschke, J. F."></head><body><table class="header"><tbody><tr><td class="left">RFC2629 through XSLT</td><td class="right">J. Reschke</td></tr><tr><td class="left"></td><td class="right">greenbytes</td></tr><tr><td class="left"></td><td class="right">September 2011</td></tr></tbody></table><p class="title">Transforming RFC2629-formatted XML through XSLT</p><hr class="noprint"><h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1><ul class="toc"><li>1. <a href="#rfc.section.1">Introduction</a></li><li>2. <a href="#supported.elements">Supported RFC2629 elements</a><ul><li>2.1 <a href="#rfc.section.2.1">Extension elements</a></li></ul></li><li>3. <a href="#processing.instructions">Processing Instructions</a><ul><li>3.1 <a href="#rfc.section.3.1">Supported xml2rfc-compatible PIs</a></li><li>3.2 <a href="#rfc.section.3.2">Unsupported xml2rfc-compatible PIs</a></li><li>3.3 <a href="#rfc.section.3.3">Extension PIs</a></li></ul></li><li>4. <a href="#anchors">Anchors</a></li><li>5. <a href="#xslt.engines">Supported XSLT engines</a><ul><li>5.1 <a href="#rfc.section.5.1">Standalone Engines</a></li><li>5.2 <a href="#xslt.engines.browser">In-Browser Engines</a></li></ul></li><li>6. <a href="#output.html">Transforming to HTML</a><ul><li>6.1 <a href="#rfc.section.6.1">HTML compliance</a></li><li>6.2 <a href="#html.link">Standard HTML LINK elements</a></li><li>6.3 <a href="#rfc.section.6.3">Standard HTML metadata</a></li><li>6.4 <a href="#rfc2731.properties">Dublin Core (RFC2731) metadata</a></li><li>6.5 <a href="#hcard">Experimental hCard support</a></li></ul></li><li>7. <a href="#output.xhtml">Transforming to XHTML</a></li><li>8. <a href="#output.chm">Transforming to CHM (Microsoft Compiled Help)</a></li><li>9. <a href="#output.pdf">Transforming to PDF</a><ul><li>9.1 <a href="#output.pdf.fop">Via XSL-FO</a><ul><li>9.1.1 <a href="#rfc.section.9.1.1">Extension feature matrix</a></li><li>9.1.2 <a href="#rfc.section.9.1.2">Example: producing output for Apache FOP</a></li></ul></li><li>9.2 <a href="#output.pdf.html">Via X(HTML)</a></li></ul></li><li>10. <a href="#output.epub">Transforming to ePub</a></li><li>11. <a href="#extensions">Generic Extensions</a><ul><li>11.1 <a href="#ext.element.abnf-char-sequence"><abnf-char-sequence> element</a></li><li>11.2 <a href="#ext.element.anchor-alias"><anchor-alias> element</a></li><li>11.3 <a href="#ext.element.bcp14"><bcp14> element</a></li><li>11.4 <a href="#ext.element.bb"><bb> element</a></li><li>11.5 <a href="#ext.element.bc"><bc> element</a></li><li>11.6 <a href="#ext.element.blockquote"><blockquote> element</a></li><li>11.7 <a href="#ext.element.boilerplate"><boilerplate> element</a></li><li>11.8 <a href="#ext.element.bt"><bt> element</a></li><li>11.9 <a href="#ext.element.dfn"><dfn> element</a></li><li>11.10 <a href="#ext.element.h"><h> element</a></li><li>11.11 <a href="#ext.element.highlight"><highlight> element</a></li><li>11.12 <a href="#ext.element.length-of"><length-of> element</a></li><li>11.13 <a href="#ext.element.link"><link> element</a></li><li>11.14 <a href="#ext.element.lt"><lt> element</a></li><li>11.15 <a href="#ext.element.note"><note> element</a></li><li>11.16 <a href="#ext.element.parse-xml"><parse-xml> element</a></li><li>11.17 <a href="#ext.element.prose"><prose> element</a></li><li>11.18 <a href="#ext.element.q"><q> element</a></li><li>11.19 <a href="#ext.element.ref"><ref> element</a></li><li>11.20 <a href="#ext.element.source"><source> element</a></li><li>11.21 <a href="#ext.element.sup"><sup> element</a></li><li>11.22 <a href="#ext-rfc2629.artwork">Extensions to Xml2rfc <artwork> element</a></li><li>11.23 <a href="#ext-rfc2629.iref">Extensions to Xml2rfc <iref> element</a></li><li>11.24 <a href="#ext-rfc2629.list">Extensions to Xml2rfc <list> element</a></li><li>11.25 <a href="#ext-rfc2629.rfc">Extensions to Xml2rfc <rfc> element</a></li><li>11.26 <a href="#ext-rfc2629.section">Extensions to Xml2rfc <section> element</a></li><li>11.27 <a href="#ext-rfc2629.xref">Extensions to Xml2rfc <xref> element</a></li></ul></li><li>12. <a href="#utilities">Utilities</a><ul><li>12.1 <a href="#checking-references">Checking References</a></li><li>12.2 <a href="#rfc.section.12.2">Generating Graphs from References</a></li><li>12.3 <a href="#rfc.section.12.3">Producing reference entries for books</a></li><li>12.4 <a href="#clean-for-dtd">Down-converting to RFC2629bis DTD</a></li><li>12.5 <a href="#extract-artwork">Extracting artwork</a></li><li>12.6 <a href="#grddl">GRRDL</a></li></ul></li><li>13. <a href="#rfc.references">Informative References</a></li><li><a href="#rfc.authors">Author's Address</a></li><li>A. <a href="#grammar">RELAX NG Compact Schema</a></li><li>B. <a href="#rfc.section.B">Implementation Notes</a><ul><li>B.1 <a href="#rfc.section.B.1">Recognized type attributes for <artwork> element</a></li></ul></li><li>C. <a href="#examples">Examples</a><ul><li>C.1 <a href="#examples.internalsubset">Using the 'Internal Subset'</a></li><li>C.2 <a href="#examples.customizing">Customization</a></li></ul></li><li>D. <a href="#boilerplate">Producing the IETF 'Boilerplate'</a><ul><li>D.1 <a href="#attribute-ipr">The /rfc/@ipr Attribute</a><ul><li>D.1.1 <a href="#attribute-ipr-current">Current Values: '*trust200902'</a><ul><li>D.1.1.1 <a href="#attribute-ipr-trust200902">trust200902</a></li><li>D.1.1.2 <a href="#attribute-ipr-noModificationTrust200902">noModificationTrust200902</a></li><li>D.1.1.3 <a href="#attribute-ipr-noDerivativesTrust200902">noDerivativesTrust200902</a></li><li>D.1.1.4 <a href="#attribute-ipr-pre5378Trust200902">pre5378Trust200902</a></li></ul></li><li>D.1.2 <a href="#attribute-ipr-historic">Historic Values</a><ul><li>D.1.2.1 <a href="#attribute-ipr-200811">Historic Values: '*trust200811'</a></li><li>D.1.2.2 <a href="#attribute-ipr-3978">Historic Values: '*3978'</a></li><li>D.1.2.3 <a href="#attribute-ipr-3667">Historic Values: '*3667'</a></li><li>D.1.2.4 <a href="#attribute-ipr-2026">Historic Values: '*2026'</a></li></ul></li></ul></li><li>D.2 <a href="#attribute-category">The /rfc/@category Attribute</a></li><li>D.3 <a href="#attribute-submissiontype">The /rfc/@submissionType Attribute</a></li><li>D.4 <a href="#attribute-consensus">The /rfc/@consensus Attribute</a></li><li>D.5 <a href="#attribute-number">The /rfc/@number Attribute</a></li><li>D.6 <a href="#attribute-docname">The /rfc/@docName Attribute</a></li><li>D.7 <a href="#attribute-obsoletes">The /rfc/@obsoletes Attribute</a></li><li>D.8 <a href="#attribute-updates">The /rfc/@updates Attribute</a></li></ul></li><li>E. <a href="#license">License</a></li><li>F. <a href="#rfc.section.F">Change Logs</a><ul><li>F.1 <a href="#rfc.section.F.1">Package</a></li><li>F.2 <a href="#rfc.section.F.2">amazon-asin.xslt</a></li><li>F.3 <a href="#rfc.section.F.3">check-references.xslt</a></li><li>F.4 <a href="#rfc.section.F.4">gen-reference-graph.xslt</a></li><li>F.5 <a href="#rfc.section.F.5">rfc2629.xslt</a></li><li>F.6 <a href="#rfc.section.F.6">rfc2629toFO.xslt</a></li><li>F.7 <a href="#rfc.section.F.7">xsl11toAn.xslt</a></li><li>F.8 <a href="#rfc.section.F.8">xsl11toFop.xslt</a></li><li>F.9 <a href="#rfc.section.F.9">xsl11toXep.xslt</a></li></ul></li><li><a href="#rfc.index">Index</a></li></ul><hr class="noprint"><h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> Introduction</h1><p id="rfc.section.1.p.1">This document describes a set of XSLT transformations that can be used to transform RFC2629-compliant XML (see <a href="#RFC2629" id="rfc.xref.RFC2629.1"><cite title="Writing I-Ds and RFCs using XML">[RFC2629]</cite></a>) to various output formats, such as HTML and PDF. The main topics are </p><ul><li>compliance to the xml2rfc XML element set (<a href="#supported.elements" title="Supported RFC2629 elements">Section 2</a>),</li><li>support for xml2rfc processing instructions (<a href="#processing.instructions" title="Processing Instructions">Section 3</a>),</li><li>the names of anchor elements generated in HTML and PDF output (<a href="#anchors" title="Anchors">Section 4</a>),</li><li>various XSLT engines that can be used (<a href="#xslt.engines" title="Supported XSLT engines">Section 5</a>),</li><li>outputting HTML (<a href="#output.html" title="Transforming to HTML">Section 6</a>) and XHTML (<a href="#output.xhtml" title="Transforming to XHTML">Section 7</a>),</li><li>outputting CHM (Compiled Microsoft Help, <a href="#output.chm" title="Transforming to CHM (Microsoft Compiled Help)">Section 8</a>),</li><li>outputting PDF (<a href="#output.pdf" title="Transforming to PDF">Section 9</a>),</li><li>outputting ePub (<a href="#output.epub" title="Transforming to ePub">Section 10</a>),</li><li>extensions to the xml2rfc vocabulary (<a href="#extensions" title="Generic Extensions">Section 11</a>).</li><li>various utilities (<a href="#utilities" title="Utilities">Section 12</a>).</li></ul><p id="rfc.section.1.p.2">The full distribution is available at <<a href="http://greenbytes.de/tech/webdav/rfc2629xslt.zip">http://greenbytes.de/tech/webdav/rfc2629xslt.zip</a>>.</p><hr class="noprint"><h1 id="rfc.section.2" class="np"><a href="#rfc.section.2">2.</a> <a id="supported.elements" href="#supported.elements">Supported RFC2629 elements</a></h1><p id="rfc.section.2.p.1"> <samp>rfc2629.xslt</samp> supports both all RFC2629 grammar elements and the extensions implemented in xml2rfc 1.36.</p><h2 id="rfc.section.2.1"><a href="#rfc.section.2.1">2.1</a> Extension elements</h2><p id="rfc.section.2.1.p.1"> <samp>rfc2629.xslt</samp> supports two kind of extension elements, using different XML namespaces.</p><p id="rfc.section.2.1.p.2">The first set contains (hopefully) generally useful extensions, see <a href="#extensions" title="Generic Extensions">Section 11</a>.</p><p id="rfc.section.2.1.p.3">The second set is used for change and issue tracking and currently is not documented here. Please email the author in case you're interested in using these extensions.</p><hr class="noprint"><h1 id="rfc.section.3" class="np"><a href="#rfc.section.3">3.</a> <a id="processing.instructions" href="#processing.instructions">Processing Instructions</a></h1><p id="rfc.section.3.p.1">All PIs can be set as XSLT parameter as well, overriding any value that is found in the source file to be transformed.</p><div id="rfc.figure.u.1"></div> <p>Using processing instructions:</p> <pre class="text"><?rfc toc="yes"?>385 </style><link rel="Contents" href="#rfc.toc"><link rel="Author" href="#rfc.authors"><link rel="Index" href="#rfc.index"><link rel="Chapter" title="1 Introduction" href="#rfc.section.1"><link rel="Chapter" title="2 Supported RFC2629 elements" href="#rfc.section.2"><link rel="Chapter" title="3 Processing Instructions" href="#rfc.section.3"><link rel="Chapter" title="4 Anchors" href="#rfc.section.4"><link rel="Chapter" title="5 Supported XSLT engines" href="#rfc.section.5"><link rel="Chapter" title="6 Transforming to HTML" href="#rfc.section.6"><link rel="Chapter" title="7 Transforming to XHTML" href="#rfc.section.7"><link rel="Chapter" title="8 Transforming to CHM (Microsoft Compiled Help)" href="#rfc.section.8"><link rel="Chapter" title="9 Transforming to PDF" href="#rfc.section.9"><link rel="Chapter" title="10 Transforming to ePub" href="#rfc.section.10"><link rel="Chapter" title="11 Generic Extensions" href="#rfc.section.11"><link rel="Chapter" title="12 Utilities" href="#rfc.section.12"><link rel="Chapter" href="#rfc.section.13" title="13 Informative References"><link rel="Appendix" title="A RELAX NG Compact Schema" href="#rfc.section.A"><link rel="Appendix" title="B Implementation Notes" href="#rfc.section.B"><link rel="Appendix" title="C Examples" href="#rfc.section.C"><link rel="Appendix" title="D Producing the IETF 'Boilerplate'" href="#rfc.section.D"><link rel="Appendix" title="E License" href="#rfc.section.E"><link rel="Appendix" title="F Change Logs" href="#rfc.section.F"><meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 6.5.5 from Michael Kay http://saxon.sf.net/"><meta name="keywords" content="RFC2629, xml2rfc, XSLT, hCard, XSL-FO, PDF, GRDDL, epub, Dublin Core"><link rel="schema.dct" href="http://purl.org/dc/terms/"><meta name="dct.creator" content="Reschke, J. F."></head><body><table class="header"><tbody><tr><td class="left">RFC2629 through XSLT</td><td class="right">J. Reschke</td></tr><tr><td class="left"></td><td class="right">greenbytes</td></tr><tr><td class="left"></td><td class="right">November 2011</td></tr></tbody></table><p class="title">Transforming RFC2629-formatted XML through XSLT</p><hr class="noprint"><h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1><ul class="toc"><li>1. <a href="#rfc.section.1">Introduction</a></li><li>2. <a href="#supported.elements">Supported RFC2629 elements</a><ul><li>2.1 <a href="#rfc.section.2.1">Extension elements</a></li></ul></li><li>3. <a href="#processing.instructions">Processing Instructions</a><ul><li>3.1 <a href="#rfc.section.3.1">Supported xml2rfc-compatible PIs</a></li><li>3.2 <a href="#rfc.section.3.2">Unsupported xml2rfc-compatible PIs</a></li><li>3.3 <a href="#rfc.section.3.3">Extension PIs</a></li></ul></li><li>4. <a href="#anchors">Anchors</a></li><li>5. <a href="#xslt.engines">Supported XSLT engines</a><ul><li>5.1 <a href="#rfc.section.5.1">Standalone Engines</a></li><li>5.2 <a href="#xslt.engines.browser">In-Browser Engines</a></li></ul></li><li>6. <a href="#output.html">Transforming to HTML</a><ul><li>6.1 <a href="#rfc.section.6.1">HTML compliance</a></li><li>6.2 <a href="#html.link">Standard HTML LINK elements</a></li><li>6.3 <a href="#rfc.section.6.3">Standard HTML metadata</a></li><li>6.4 <a href="#rfc2731.properties">Dublin Core (RFC2731) metadata</a></li><li>6.5 <a href="#hcard">Experimental hCard support</a></li></ul></li><li>7. <a href="#output.xhtml">Transforming to XHTML</a></li><li>8. <a href="#output.chm">Transforming to CHM (Microsoft Compiled Help)</a></li><li>9. <a href="#output.pdf">Transforming to PDF</a><ul><li>9.1 <a href="#output.pdf.fop">Via XSL-FO</a><ul><li>9.1.1 <a href="#rfc.section.9.1.1">Extension feature matrix</a></li><li>9.1.2 <a href="#rfc.section.9.1.2">Example: producing output for Apache FOP</a></li></ul></li><li>9.2 <a href="#output.pdf.html">Via X(HTML)</a></li></ul></li><li>10. <a href="#output.epub">Transforming to ePub</a></li><li>11. <a href="#extensions">Generic Extensions</a><ul><li>11.1 <a href="#ext.element.abnf-char-sequence"><abnf-char-sequence> element</a></li><li>11.2 <a href="#ext.element.anchor-alias"><anchor-alias> element</a></li><li>11.3 <a href="#ext.element.bcp14"><bcp14> element</a></li><li>11.4 <a href="#ext.element.bb"><bb> element</a></li><li>11.5 <a href="#ext.element.bc"><bc> element</a></li><li>11.6 <a href="#ext.element.blockquote"><blockquote> element</a></li><li>11.7 <a href="#ext.element.boilerplate"><boilerplate> element</a></li><li>11.8 <a href="#ext.element.bt"><bt> element</a></li><li>11.9 <a href="#ext.element.dfn"><dfn> element</a></li><li>11.10 <a href="#ext.element.h"><h> element</a></li><li>11.11 <a href="#ext.element.highlight"><highlight> element</a></li><li>11.12 <a href="#ext.element.length-of"><length-of> element</a></li><li>11.13 <a href="#ext.element.link"><link> element</a></li><li>11.14 <a href="#ext.element.lt"><lt> element</a></li><li>11.15 <a href="#ext.element.note"><note> element</a></li><li>11.16 <a href="#ext.element.parse-xml"><parse-xml> element</a></li><li>11.17 <a href="#ext.element.prose"><prose> element</a></li><li>11.18 <a href="#ext.element.q"><q> element</a></li><li>11.19 <a href="#ext.element.ref"><ref> element</a></li><li>11.20 <a href="#ext.element.source"><source> element</a></li><li>11.21 <a href="#ext.element.sup"><sup> element</a></li><li>11.22 <a href="#ext-rfc2629.artwork">Extensions to Xml2rfc <artwork> element</a></li><li>11.23 <a href="#ext-rfc2629.iref">Extensions to Xml2rfc <iref> element</a></li><li>11.24 <a href="#ext-rfc2629.list">Extensions to Xml2rfc <list> element</a></li><li>11.25 <a href="#ext-rfc2629.rfc">Extensions to Xml2rfc <rfc> element</a></li><li>11.26 <a href="#ext-rfc2629.section">Extensions to Xml2rfc <section> element</a></li><li>11.27 <a href="#ext-rfc2629.xref">Extensions to Xml2rfc <xref> element</a></li></ul></li><li>12. <a href="#utilities">Utilities</a><ul><li>12.1 <a href="#checking-references">Checking References</a></li><li>12.2 <a href="#rfc.section.12.2">Generating Graphs from References</a></li><li>12.3 <a href="#rfc.section.12.3">Producing reference entries for books</a></li><li>12.4 <a href="#clean-for-dtd">Down-converting to RFC2629bis DTD</a></li><li>12.5 <a href="#extract-artwork">Extracting artwork</a></li><li>12.6 <a href="#grddl">GRRDL</a></li></ul></li><li>13. <a href="#rfc.references">Informative References</a></li><li><a href="#rfc.authors">Author's Address</a></li><li>A. <a href="#grammar">RELAX NG Compact Schema</a></li><li>B. <a href="#rfc.section.B">Implementation Notes</a><ul><li>B.1 <a href="#rfc.section.B.1">Recognized type attributes for <artwork> element</a></li></ul></li><li>C. <a href="#examples">Examples</a><ul><li>C.1 <a href="#examples.internalsubset">Using the 'Internal Subset'</a></li><li>C.2 <a href="#examples.customizing">Customization</a></li></ul></li><li>D. <a href="#boilerplate">Producing the IETF 'Boilerplate'</a><ul><li>D.1 <a href="#attribute-ipr">The /rfc/@ipr Attribute</a><ul><li>D.1.1 <a href="#attribute-ipr-current">Current Values: '*trust200902'</a><ul><li>D.1.1.1 <a href="#attribute-ipr-trust200902">trust200902</a></li><li>D.1.1.2 <a href="#attribute-ipr-noModificationTrust200902">noModificationTrust200902</a></li><li>D.1.1.3 <a href="#attribute-ipr-noDerivativesTrust200902">noDerivativesTrust200902</a></li><li>D.1.1.4 <a href="#attribute-ipr-pre5378Trust200902">pre5378Trust200902</a></li></ul></li><li>D.1.2 <a href="#attribute-ipr-historic">Historic Values</a><ul><li>D.1.2.1 <a href="#attribute-ipr-200811">Historic Values: '*trust200811'</a></li><li>D.1.2.2 <a href="#attribute-ipr-3978">Historic Values: '*3978'</a></li><li>D.1.2.3 <a href="#attribute-ipr-3667">Historic Values: '*3667'</a></li><li>D.1.2.4 <a href="#attribute-ipr-2026">Historic Values: '*2026'</a></li></ul></li></ul></li><li>D.2 <a href="#attribute-category">The /rfc/@category Attribute</a></li><li>D.3 <a href="#attribute-submissiontype">The /rfc/@submissionType Attribute</a></li><li>D.4 <a href="#attribute-consensus">The /rfc/@consensus Attribute</a></li><li>D.5 <a href="#attribute-number">The /rfc/@number Attribute</a></li><li>D.6 <a href="#attribute-docname">The /rfc/@docName Attribute</a></li><li>D.7 <a href="#attribute-obsoletes">The /rfc/@obsoletes Attribute</a></li><li>D.8 <a href="#attribute-updates">The /rfc/@updates Attribute</a></li></ul></li><li>E. <a href="#license">License</a></li><li>F. <a href="#rfc.section.F">Change Logs</a><ul><li>F.1 <a href="#rfc.section.F.1">Package</a></li><li>F.2 <a href="#rfc.section.F.2">amazon-asin.xslt</a></li><li>F.3 <a href="#rfc.section.F.3">check-references.xslt</a></li><li>F.4 <a href="#rfc.section.F.4">gen-reference-graph.xslt</a></li><li>F.5 <a href="#rfc.section.F.5">rfc2629.xslt</a></li><li>F.6 <a href="#rfc.section.F.6">rfc2629toFO.xslt</a></li><li>F.7 <a href="#rfc.section.F.7">xsl11toAn.xslt</a></li><li>F.8 <a href="#rfc.section.F.8">xsl11toFop.xslt</a></li><li>F.9 <a href="#rfc.section.F.9">xsl11toXep.xslt</a></li></ul></li><li><a href="#rfc.index">Index</a></li></ul><hr class="noprint"><h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> Introduction</h1><p id="rfc.section.1.p.1">This document describes a set of XSLT transformations that can be used to transform RFC2629-compliant XML (see <a href="#RFC2629" id="rfc.xref.RFC2629.1"><cite title="Writing I-Ds and RFCs using XML">[RFC2629]</cite></a>) to various output formats, such as HTML and PDF. The main topics are </p><ul><li>compliance to the xml2rfc XML element set (<a href="#supported.elements" title="Supported RFC2629 elements">Section 2</a>),</li><li>support for xml2rfc processing instructions (<a href="#processing.instructions" title="Processing Instructions">Section 3</a>),</li><li>the names of anchor elements generated in HTML and PDF output (<a href="#anchors" title="Anchors">Section 4</a>),</li><li>various XSLT engines that can be used (<a href="#xslt.engines" title="Supported XSLT engines">Section 5</a>),</li><li>outputting HTML (<a href="#output.html" title="Transforming to HTML">Section 6</a>) and XHTML (<a href="#output.xhtml" title="Transforming to XHTML">Section 7</a>),</li><li>outputting CHM (Compiled Microsoft Help, <a href="#output.chm" title="Transforming to CHM (Microsoft Compiled Help)">Section 8</a>),</li><li>outputting PDF (<a href="#output.pdf" title="Transforming to PDF">Section 9</a>),</li><li>outputting ePub (<a href="#output.epub" title="Transforming to ePub">Section 10</a>),</li><li>extensions to the xml2rfc vocabulary (<a href="#extensions" title="Generic Extensions">Section 11</a>).</li><li>various utilities (<a href="#utilities" title="Utilities">Section 12</a>).</li></ul><p id="rfc.section.1.p.2">The full distribution is available at <<a href="http://greenbytes.de/tech/webdav/rfc2629xslt.zip">http://greenbytes.de/tech/webdav/rfc2629xslt.zip</a>>.</p><hr class="noprint"><h1 id="rfc.section.2" class="np"><a href="#rfc.section.2">2.</a> <a id="supported.elements" href="#supported.elements">Supported RFC2629 elements</a></h1><p id="rfc.section.2.p.1"> <samp>rfc2629.xslt</samp> supports both all RFC2629 grammar elements and the extensions implemented in xml2rfc 1.36.</p><h2 id="rfc.section.2.1"><a href="#rfc.section.2.1">2.1</a> Extension elements</h2><p id="rfc.section.2.1.p.1"> <samp>rfc2629.xslt</samp> supports two kind of extension elements, using different XML namespaces.</p><p id="rfc.section.2.1.p.2">The first set contains (hopefully) generally useful extensions, see <a href="#extensions" title="Generic Extensions">Section 11</a>.</p><p id="rfc.section.2.1.p.3">The second set is used for change and issue tracking and currently is not documented here. Please email the author in case you're interested in using these extensions.</p><hr class="noprint"><h1 id="rfc.section.3" class="np"><a href="#rfc.section.3">3.</a> <a id="processing.instructions" href="#processing.instructions">Processing Instructions</a></h1><p id="rfc.section.3.p.1">All PIs can be set as XSLT parameter as well, overriding any value that is found in the source file to be transformed.</p><div id="rfc.figure.u.1"></div> <p>Using processing instructions:</p> <pre class="text"><?rfc toc="yes"?> 386 386 <?rfc-ext support-rfc2731="no"?> 387 387 </pre> <div id="rfc.figure.u.2"></div> <p>Using XSLT parameters (Saxon):</p> <pre class="text">java -cp saxon.jar com.icl.saxon.StyleSheet source.xml rfc2629.xslt \ … … 868 868 <a href="#x_link" class="smpl">x_link</a> = 869 869 element x:link { 870 attribute basename { URI }, 870 871 attribute href { URI }, 871 872 attribute title { TEXT }?, -
rfc2629xslt/rfc2629xslt.txt
r1443 r1472 4 4 RFC2629 through XSLT J. Reschke 5 5 greenbytes 6 September 26, 20116 November 5, 2011 7 7 8 8 … … 56 56 57 57 58 Documentation RFC2629 through XSLT September 201158 Documentation RFC2629 through XSLT November 2011 59 59 60 60 … … 113 113 114 114 115 Documentation RFC2629 through XSLT September 2011115 Documentation RFC2629 through XSLT November 2011 116 116 117 117 … … 170 170 171 171 172 Documentation RFC2629 through XSLT September 2011172 Documentation RFC2629 through XSLT November 2011 173 173 174 174 … … 227 227 228 228 229 Documentation RFC2629 through XSLT September 2011229 Documentation RFC2629 through XSLT November 2011 230 230 231 231 … … 284 284 285 285 286 Documentation RFC2629 through XSLT September 2011286 Documentation RFC2629 through XSLT November 2011 287 287 288 288 … … 341 341 342 342 343 Documentation RFC2629 through XSLT September 2011343 Documentation RFC2629 through XSLT November 2011 344 344 345 345 … … 398 398 399 399 400 Documentation RFC2629 through XSLT September 2011400 Documentation RFC2629 through XSLT November 2011 401 401 402 402 … … 455 455 456 456 457 Documentation RFC2629 through XSLT September 2011457 Documentation RFC2629 through XSLT November 2011 458 458 459 459 … … 512 512 513 513 514 Documentation RFC2629 through XSLT September 2011514 Documentation RFC2629 through XSLT November 2011 515 515 516 516 … … 569 569 570 570 571 Documentation RFC2629 through XSLT September 2011571 Documentation RFC2629 through XSLT November 2011 572 572 573 573 … … 626 626 627 627 628 Documentation RFC2629 through XSLT September 2011628 Documentation RFC2629 through XSLT November 2011 629 629 630 630 … … 683 683 684 684 685 Documentation RFC2629 through XSLT September 2011685 Documentation RFC2629 through XSLT November 2011 686 686 687 687 … … 740 740 741 741 742 Documentation RFC2629 through XSLT September 2011742 Documentation RFC2629 through XSLT November 2011 743 743 744 744 … … 797 797 798 798 799 Documentation RFC2629 through XSLT September 2011799 Documentation RFC2629 through XSLT November 2011 800 800 801 801 … … 854 854 855 855 856 Documentation RFC2629 through XSLT September 2011856 Documentation RFC2629 through XSLT November 2011 857 857 858 858 … … 911 911 912 912 913 Documentation RFC2629 through XSLT September 2011913 Documentation RFC2629 through XSLT November 2011 914 914 915 915 … … 968 968 969 969 970 Documentation RFC2629 through XSLT September 2011970 Documentation RFC2629 through XSLT November 2011 971 971 972 972 … … 1025 1025 1026 1026 1027 Documentation RFC2629 through XSLT September 20111027 Documentation RFC2629 through XSLT November 2011 1028 1028 1029 1029 … … 1082 1082 1083 1083 1084 Documentation RFC2629 through XSLT September 20111084 Documentation RFC2629 through XSLT November 2011 1085 1085 1086 1086 … … 1139 1139 1140 1140 1141 Documentation RFC2629 through XSLT September 20111141 Documentation RFC2629 through XSLT November 2011 1142 1142 1143 1143 … … 1196 1196 1197 1197 1198 Documentation RFC2629 through XSLT September 20111198 Documentation RFC2629 through XSLT November 2011 1199 1199 1200 1200 … … 1253 1253 1254 1254 1255 Documentation RFC2629 through XSLT September 20111255 Documentation RFC2629 through XSLT November 2011 1256 1256 1257 1257 … … 1310 1310 1311 1311 1312 Documentation RFC2629 through XSLT September 20111312 Documentation RFC2629 through XSLT November 2011 1313 1313 1314 1314 … … 1367 1367 1368 1368 1369 Documentation RFC2629 through XSLT September 20111369 Documentation RFC2629 through XSLT November 2011 1370 1370 1371 1371 … … 1424 1424 1425 1425 1426 Documentation RFC2629 through XSLT September 20111426 Documentation RFC2629 through XSLT November 2011 1427 1427 1428 1428 … … 1481 1481 1482 1482 1483 Documentation RFC2629 through XSLT September 20111483 Documentation RFC2629 through XSLT November 2011 1484 1484 1485 1485 … … 1538 1538 1539 1539 1540 Documentation RFC2629 through XSLT September 20111540 Documentation RFC2629 through XSLT November 2011 1541 1541 1542 1542 … … 1595 1595 1596 1596 1597 Documentation RFC2629 through XSLT September 20111597 Documentation RFC2629 through XSLT November 2011 1598 1598 1599 1599 … … 1652 1652 1653 1653 1654 Documentation RFC2629 through XSLT September 20111654 Documentation RFC2629 through XSLT November 2011 1655 1655 1656 1656 … … 1709 1709 1710 1710 1711 Documentation RFC2629 through XSLT September 20111711 Documentation RFC2629 through XSLT November 2011 1712 1712 1713 1713 … … 1766 1766 1767 1767 1768 Documentation RFC2629 through XSLT September 20111768 Documentation RFC2629 through XSLT November 2011 1769 1769 1770 1770 … … 1823 1823 1824 1824 1825 Documentation RFC2629 through XSLT September 20111825 Documentation RFC2629 through XSLT November 2011 1826 1826 1827 1827 … … 1880 1880 1881 1881 1882 Documentation RFC2629 through XSLT September 20111882 Documentation RFC2629 through XSLT November 2011 1883 1883 1884 1884 … … 1937 1937 1938 1938 1939 Documentation RFC2629 through XSLT September 20111939 Documentation RFC2629 through XSLT November 2011 1940 1940 1941 1941 … … 1994 1994 1995 1995 1996 Documentation RFC2629 through XSLT September 20111996 Documentation RFC2629 through XSLT November 2011 1997 1997 1998 1998 … … 2051 2051 2052 2052 2053 Documentation RFC2629 through XSLT September 20112053 Documentation RFC2629 through XSLT November 2011 2054 2054 2055 2055 … … 2108 2108 2109 2109 2110 Documentation RFC2629 through XSLT September 20112110 Documentation RFC2629 through XSLT November 2011 2111 2111 2112 2112 … … 2165 2165 2166 2166 2167 Documentation RFC2629 through XSLT September 20112167 Documentation RFC2629 through XSLT November 2011 2168 2168 2169 2169 … … 2222 2222 2223 2223 2224 Documentation RFC2629 through XSLT September 20112224 Documentation RFC2629 through XSLT November 2011 2225 2225 2226 2226 … … 2279 2279 2280 2280 2281 Documentation RFC2629 through XSLT September 20112281 Documentation RFC2629 through XSLT November 2011 2282 2282 2283 2283 … … 2336 2336 2337 2337 2338 Documentation RFC2629 through XSLT September 20112338 Documentation RFC2629 through XSLT November 2011 2339 2339 2340 2340 … … 2393 2393 2394 2394 2395 Documentation RFC2629 through XSLT September 20112395 Documentation RFC2629 through XSLT November 2011 2396 2396 2397 2397 … … 2450 2450 2451 2451 2452 Documentation RFC2629 through XSLT September 20112452 Documentation RFC2629 through XSLT November 2011 2453 2453 2454 2454 … … 2507 2507 2508 2508 2509 Documentation RFC2629 through XSLT September 20112509 Documentation RFC2629 through XSLT November 2011 2510 2510 2511 2511 … … 2547 2547 x_link = 2548 2548 element x:link { 2549 attribute basename { URI }, 2549 2550 attribute href { URI }, 2550 2551 attribute title { TEXT }?, … … 2557 2558 element x:lt { 2558 2559 attribute anchor { xsd:ID }?, 2560 2561 2562 2563 Reschke [Page 45] 2564 2565 2566 Documentation RFC2629 through XSLT November 2011 2567 2568 2559 2569 attribute hangText { TEXT }?, 2560 2561 2562 2563 Reschke [Page 45]2564 2565 2566 Documentation RFC2629 through XSLT September 20112567 2568 2569 2570 t+ 2570 2571 } … … 2614 2615 element x:sup { 2615 2616 TEXT 2617 2618 2619 2620 Reschke [Page 46] 2621 2622 2623 Documentation RFC2629 through XSLT November 2011 2624 2625 2616 2626 } 2617 2618 2619 2620 Reschke [Page 46]2621 2622 2623 Documentation RFC2629 through XSLT September 20112624 2625 2627 2626 2628 # Inline Span … … 2673 2675 2674 2676 2675 2676 2677 2677 Reschke [Page 47] 2678 2678 2679 2679 2680 Documentation RFC2629 through XSLT September 20112680 Documentation RFC2629 through XSLT November 2011 2681 2681 2682 2682 … … 2735 2735 2736 2736 2737 Documentation RFC2629 through XSLT September 20112737 Documentation RFC2629 through XSLT November 2011 2738 2738 2739 2739 … … 2792 2792 2793 2793 2794 Documentation RFC2629 through XSLT September 20112794 Documentation RFC2629 through XSLT November 2011 2795 2795 2796 2796 … … 2849 2849 2850 2850 2851 Documentation RFC2629 through XSLT September 20112851 Documentation RFC2629 through XSLT November 2011 2852 2852 2853 2853 … … 2906 2906 2907 2907 2908 Documentation RFC2629 through XSLT September 20112908 Documentation RFC2629 through XSLT November 2011 2909 2909 2910 2910 … … 2963 2963 2964 2964 2965 Documentation RFC2629 through XSLT September 20112965 Documentation RFC2629 through XSLT November 2011 2966 2966 2967 2967 … … 3020 3020 3021 3021 3022 Documentation RFC2629 through XSLT September 20113022 Documentation RFC2629 through XSLT November 2011 3023 3023 3024 3024 … … 3077 3077 3078 3078 3079 Documentation RFC2629 through XSLT September 20113079 Documentation RFC2629 through XSLT November 2011 3080 3080 3081 3081 … … 3134 3134 3135 3135 3136 Documentation RFC2629 through XSLT September 20113136 Documentation RFC2629 through XSLT November 2011 3137 3137 3138 3138 … … 3191 3191 3192 3192 3193 Documentation RFC2629 through XSLT September 20113193 Documentation RFC2629 through XSLT November 2011 3194 3194 3195 3195 … … 3248 3248 3249 3249 3250 Documentation RFC2629 through XSLT September 20113250 Documentation RFC2629 through XSLT November 2011 3251 3251 3252 3252 … … 3305 3305 3306 3306 3307 Documentation RFC2629 through XSLT September 20113307 Documentation RFC2629 through XSLT November 2011 3308 3308 3309 3309 … … 3362 3362 3363 3363 3364 Documentation RFC2629 through XSLT September 20113364 Documentation RFC2629 through XSLT November 2011 3365 3365 3366 3366 … … 3419 3419 3420 3420 3421 Documentation RFC2629 through XSLT September 20113421 Documentation RFC2629 through XSLT November 2011 3422 3422 3423 3423 … … 3476 3476 3477 3477 3478 Documentation RFC2629 through XSLT September 20113478 Documentation RFC2629 through XSLT November 2011 3479 3479 3480 3480 … … 3533 3533 3534 3534 3535 Documentation RFC2629 through XSLT September 20113535 Documentation RFC2629 through XSLT November 2011 3536 3536 3537 3537 … … 3590 3590 3591 3591 3592 Documentation RFC2629 through XSLT September 20113592 Documentation RFC2629 through XSLT November 2011 3593 3593 3594 3594 … … 3647 3647 3648 3648 3649 Documentation RFC2629 through XSLT September 20113649 Documentation RFC2629 through XSLT November 2011 3650 3650 3651 3651 … … 3704 3704 3705 3705 3706 Documentation RFC2629 through XSLT September 20113706 Documentation RFC2629 through XSLT November 2011 3707 3707 3708 3708 … … 3761 3761 3762 3762 3763 Documentation RFC2629 through XSLT September 20113763 Documentation RFC2629 through XSLT November 2011 3764 3764 3765 3765 … … 3818 3818 3819 3819 3820 Documentation RFC2629 through XSLT September 20113820 Documentation RFC2629 through XSLT November 2011 3821 3821 3822 3822 … … 3875 3875 3876 3876 3877 Documentation RFC2629 through XSLT September 20113877 Documentation RFC2629 through XSLT November 2011 3878 3878 3879 3879 … … 3932 3932 3933 3933 3934 Documentation RFC2629 through XSLT September 20113934 Documentation RFC2629 through XSLT November 2011 3935 3935 3936 3936 … … 3989 3989 3990 3990 3991 Documentation RFC2629 through XSLT September 20113991 Documentation RFC2629 through XSLT November 2011 3992 3992 3993 3993 … … 4046 4046 4047 4047 4048 Documentation RFC2629 through XSLT September 20114048 Documentation RFC2629 through XSLT November 2011 4049 4049 4050 4050 … … 4103 4103 4104 4104 4105 Documentation RFC2629 through XSLT September 20114105 Documentation RFC2629 through XSLT November 2011 4106 4106 4107 4107 … … 4160 4160 4161 4161 4162 Documentation RFC2629 through XSLT September 20114162 Documentation RFC2629 through XSLT November 2011 4163 4163 4164 4164 … … 4217 4217 4218 4218 4219 Documentation RFC2629 through XSLT September 20114219 Documentation RFC2629 through XSLT November 2011 4220 4220 4221 4221 … … 4274 4274 4275 4275 4276 Documentation RFC2629 through XSLT September 20114276 Documentation RFC2629 through XSLT November 2011 4277 4277 4278 4278 … … 4331 4331 4332 4332 4333 Documentation RFC2629 through XSLT September 20114333 Documentation RFC2629 through XSLT November 2011 4334 4334 4335 4335 … … 4388 4388 4389 4389 4390 Documentation RFC2629 through XSLT September 20114390 Documentation RFC2629 through XSLT November 2011 4391 4391 4392 4392 … … 4445 4445 4446 4446 4447 Documentation RFC2629 through XSLT September 20114447 Documentation RFC2629 through XSLT November 2011 4448 4448 4449 4449 … … 4502 4502 4503 4503 4504 Documentation RFC2629 through XSLT September 20114504 Documentation RFC2629 through XSLT November 2011 4505 4505 4506 4506 … … 4559 4559 4560 4560 4561 Documentation RFC2629 through XSLT September 20114561 Documentation RFC2629 through XSLT November 2011 4562 4562 4563 4563 -
rfc2629xslt/rfc2629xslt.xml
r1443 r1472 30 30 </author> 31 31 32 <date month=" September" year="2011"/>32 <date month="November" year="2011"/> 33 33 34 34 <keyword>RFC2629</keyword> … … 2244 2244 <x:ref>x_link</x:ref> = 2245 2245 element x:link { 2246 attribute basename { URI }, 2246 2247 attribute href { URI }, 2247 2248 attribute title { TEXT }?, -
rfc2629xslt/samples/rfc2629.xslt
r1426 r1472 353 353 <xsl:param name="internetDraftUrlPostfix" select="''" /> 354 354 <xsl:param name="internetDraftUrlFrag" select="'section-'" /> 355 356 <!-- the format we're producing --> 357 <xsl:param name="outputExtension" select="'html'"/> 355 358 356 359 <!-- warning re: absent node-set ext. function --> … … 1465 1468 <xsl:choose> 1466 1469 <xsl:when test="$ref and $bib/x:source/@href and $bib/x:source/@basename and $ref/@x:rel"> 1467 <xsl:value-of select="concat($bib/x:source/@basename,'. html',$ref/@x:rel)" />1470 <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension,$ref/@x:rel)" /> 1468 1471 </xsl:when> 1469 1472 <!-- tools.ietf.org won't have the "-latest" draft --> 1470 1473 <xsl:when test="$bib/seriesInfo/@name='Internet-Draft' and $bib/x:source/@href and $bib/x:source/@basename and substring($bib/x:source/@basename, (string-length($bib/x:source/@basename) - string-length('-latest')) + 1)='-latest'"> 1471 <!-- TODO: should produce the right extension based on the format we're producing --> 1472 <xsl:value-of select="concat($bib/x:source/@basename,'.html')" /> 1474 <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension)" /> 1473 1475 </xsl:when> 1474 1476 <xsl:when test="$bib/seriesInfo/@name='RFC'"> … … 1865 1867 <xsl:apply-templates select="/" mode="links" /> 1866 1868 <xsl:for-each select="x:link"> 1867 <link><xsl:copy-of select="@*" /></link> 1869 <link> 1870 <xsl:choose> 1871 <xsl:when test="@basename"> 1872 <xsl:attribute name="href"> 1873 <xsl:value-of select="concat(@basename,'.',$outputExtension)"/> 1874 </xsl:attribute> 1875 <xsl:copy-of select="@rel|@title" /> 1876 </xsl:when> 1877 <xsl:otherwise> 1878 <xsl:copy-of select="@*" /> 1879 </xsl:otherwise> 1880 </xsl:choose> 1881 </link> 1868 1882 </xsl:for-each> 1869 1883 <xsl:if test="@number"> … … 6346 6360 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 6347 6361 <!-- when RCS keyword substitution in place, add version info --> 6348 <xsl:if test="contains('$Revision: 1.55 6$',':')">6349 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.55 6$', 'Revision: '),'$','')),', ')" />6362 <xsl:if test="contains('$Revision: 1.558 $',':')"> 6363 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.558 $', 'Revision: '),'$','')),', ')" /> 6350 6364 </xsl:if> 6351 <xsl:if test="contains('$Date: 2011- 08-28 20:30:48$',':')">6352 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011- 08-28 20:30:48$', 'Date: '),'$','')),', ')" />6365 <xsl:if test="contains('$Date: 2011-11-05 16:48:52 $',':')"> 6366 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-11-05 16:48:52 $', 'Date: '),'$','')),', ')" /> 6353 6367 </xsl:if> 6354 6368 <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" /> -
rfc2629xslt/testcase.html
r1426 r1472 396 396 } 397 397 } 398 </style><link rel="Contents" href="#rfc.toc"><link rel="Author" href="#rfc.authors"><link rel="Index" href="#rfc.index"><link rel="Chapter" title="1 Lists" href="#rfc.section.1"><link rel="Chapter" title="2 spanx" href="#rfc.section.2"><link rel="Chapter" title="3 Tables" href="#rfc.section.3"><link rel="Chapter" title="4 Figures" href="#rfc.section.4"><link rel="Chapter" title="5 References" href="#rfc.section.5"><link rel="Chapter" title="6 Paragraph formatting" href="#rfc.section.6"><link rel="Chapter" title="7 Sections" href="#rfc.section.7"><link rel="Chapter" title="8 Comments" href="#rfc.section.8"><link rel="Chapter" title="9 Artwork Width" href="#rfc.section.9"><link rel="Chapter" title="10 Extensions" href="#rfc.section.10"><link rel="Chapter" title="11 Blank Lines" href="#rfc.section.11"><link rel="Chapter" title="12 Other" href="#rfc.section.12"><link rel="Chapter" href="#rfc.section.13" title="13 References"><meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.55 6, 2011-08-28 20:30:48, XSLT vendor: SAXON 6.5.5 from Michael Kay http://saxon.sf.net/"><meta name="keywords" content="RFC2629, test case, xml2rfc"><link rel="schema.dct" href="http://purl.org/dc/terms/"><meta name="dct.creator" content="Reschke, J. F."></head><body><table class="header"><tbody><tr><td class="left">RFC2629 test cases</td><td class="right">J. Reschke</td></tr><tr><td class="left"></td><td class="right">greenbytes</td></tr><tr><td class="left"></td><td class="right">January 2011</td></tr></tbody></table><p class="title">Test cases for RFC2629 formatting</p><hr class="noprint"><h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1><ul class="toc"><li>1. <a href="#lists">Lists</a><ul><li>1.1 <a href="#rfc.section.1.1">hanging list</a></li><li>1.2 <a href="#rfc.section.1.2">numbered list</a></li><li>1.3 <a href="#ordered.list.letters">ordered list (letters)</a></li><li>1.4 <a href="#rfc.section.1.4">no explicit counters</a></li><li>1.5 <a href="#rfc.section.1.5">with explicit counters</a></li><li>1.6 <a href="#rfc.section.1.6">Nested list</a></li><li>1.7 <a href="#rfc.section.1.7">list without style</a></li><li>1.8 <a href="#rfc.section.1.8">list with multiple paragraphs in a single list item</a></li></ul></li><li>2. <a href="#rfc.section.2">spanx</a></li><li>3. <a href="#rfc.section.3">Tables</a><ul><li>3.1 <a href="#rfc.section.3.1">no borders</a></li><li>3.2 <a href="#rfc.section.3.2">borders around headers</a></li><li>3.3 <a href="#rfc.section.3.3">example from xml2rc README</a></li><li>3.4 <a href="#rfc.section.3.4">no column titles</a></li><li>3.5 <a href="#rfc.section.3.5">referencing tables</a></li><li>3.6 <a href="#rfc.section.3.6">table captions</a></li><li>3.7 <a href="#rfc.section.3.7">single column</a></li><li>3.8 <a href="#rfc.section.3.8">table alignment</a></li></ul></li><li>4. <a href="#rfc.section.4">Figures</a><ul><li>4.1 <a href="#rfc.section.4.1">with preamble, no title...</a></li><li>4.2 <a href="#rfc.section.4.2">with postamble and title...</a></li><li>4.3 <a href="#rfc.section.4.3">Whitespace handling</a></li><li>4.4 <a href="#rfc.section.4.4">Whitespace around figures</a></li><li>4.5 <a href="#rfc.section.4.5">SVG</a></li><li>4.6 <a href="#code.components">Code Components</a></li></ul></li><li>5. <a href="#refs">References</a><ul><li>5.1 <a href="#xref.with.no.content">xref with no content</a></li><li>5.2 <a href="#rfc.section.5.2">xref to named <t> element</a></li><li>5.3 <a href="#rfc.section.5.3">xref to named <spanx> element</a></li><li>5.4 <a href="#rfc.section.5.4">xref to named <t> element inside list</a></li><li>5.5 <a href="#rfc.section.5.5">xref to named <cref> element</a></li><li>5.6 <a href="#rfc.section.5.6">xref to named <t> element inside list</a></li><li>5.7 <a href="#rfc.section.5.7">xref with no auto-formatting</a></li><li>5.8 <a href="#rfc.section.5.8">xref with content and auto-formatting</a></li><li>5.9 <a href="#rfc.section.5.9">xref with content and no formatting</a></li><li>5.10 <a href="#formatting.none">xref with content and 'none' formatting</a></li><li>5.11 <a href="#rfc.section.5.11">xref with no content and anchor formatting</a></li><li>5.12 <a href="#rfc.section.5.12">eref with no content</a></li><li>5.13 <a href="#rfc.section.5.13">eref with content</a></li><li>5.14 <a href="#rfc.section.5.14">iref inside paragraph</a></li></ul></li><li>6. <a href="#rfc.section.6">Paragraph formatting</a></li><li>7. <a href="#rfc.section.7">Sections</a><ul><li>7.1 <a href="#rfc.section.7.1">Subsection with TOC entry</a></li><li class="excluded"><ul><li>7.2.1 <a href="#rfc.section.7.2.1">Sub-subsection with TOC entry</a></li></ul></li></ul></li><li>8. <a href="#rfc.section.8">Comments</a></li><li>9. <a href="#rfc.section.9">Artwork Width</a></li><li>10. <a href="#extensions">Extensions</a><ul><li>10.1 <a href="#rfc.section.10.1">Markup in figure/artwork</a></li><li>10.2 <a href="#rfc.section.10.2">Measuring Lengths</a></li><li>10.3 <a href="#rfc.section.10.3">Quotations</a></li><li>10.4 <a href="#rfc.section.10.4">Subsections</a></li><li>10.5 <a href="#rfc.section.10.5">Box Drawing</a></li><li>10.6 <a href="#computed.reference.targets">Computed Reference Targets</a></li><li>10.7 <a href="#abnf.support">ABNF Support</a></li></ul></li><li>11. <a href="#rfc.section.11">Blank Lines</a></li><li>12. <a href="#rfc.section.12">Other</a><ul><li>12.1 <a href="#rfc.section.12.1">Comments in Text</a></li><li>12.2 <a href="#rfc.section.12.2">Special Characters</a><ul><li>12.2.1 <a href="#nbsp">Non-Breaking Space</a></li><li>12.2.2 <a href="#nbhy">Non-Breaking Hyphen</a></li><li>12.2.3 <a href="#dashes">Dashes</a></li></ul></li></ul></li><li>13. <a href="#rfc.references">References</a></li><li><a href="#rfc.comments">Editorial Comments</a></li><li><a href="#rfc.authors">Author's Address</a></li><li><a href="#rfc.index">Index</a></li></ul><ul><li><a href="#rfc.figure.1">Figure 1: another figure</a></li></ul><hr class="noprint"><h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="lists" href="#lists">Lists</a></h1><h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a> hanging list</h2><dl><dt>Name:</dt><dd>timeout</dd><dt>Namespace:</dt><dd>DAV:</dd><dt>Purpose:</dt><dd>The timeout associated with a lock</dd><dt>Value:</dt><dd>TimeType ;Defined in section 9.8</dd></dl><h2 id="rfc.section.1.2"><a href="#rfc.section.1.2">1.2</a> numbered list</h2><p id="rfc.section.1.2.p.1">A numbered list: </p><ol><li>one</li><li>two</li><li>three</li></ol><h2 id="rfc.section.1.3"><a href="#rfc.section.1.3">1.3</a> <a id="ordered.list.letters" href="#ordered.list.letters">ordered list (letters)</a></h2><p id="rfc.section.1.3.p.1">An ordered list using letters: </p><ol class="la"><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li id="ordered.list.letters.last">three</li></ol><h2 id="rfc.section.1.4"><a href="#rfc.section.1.4">1.4</a> no explicit counters</h2><p id="rfc.section.1.4.p.1">Example for numbered list with user-defined-format: </p><dl><dt>R1:</dt><dd>R1</dd><dt>R2:</dt><dd>R2</dd></dl><p id="rfc.section.1.4.p.2">Another list: </p><dl><dt>S1:</dt><dd>S1</dd><dt>S2:</dt><dd>S2</dd></dl><p id="rfc.section.1.4.p.3">Next list should continue counting R's: </p><dl><dt>R3:</dt><dd>R3</dd><dt>R4:</dt><dd>R4</dd></dl><p id="rfc.section.1.4.p.4">Same with character-based numbering: </p><dl><dt>c-a:</dt><dd>c-a</dd><dt>c-b:</dt><dd>c-b</dd></dl><h2 id="rfc.section.1.5"><a href="#rfc.section.1.5">1.5</a> with explicit counters</h2><p id="rfc.section.1.5.p.1">A few requirements: </p><dl><dt>R1:</dt><dd>req R1</dd><dt>R2:</dt><dd>req R2</dd></dl><p id="rfc.section.1.5.p.2">More requirements: </p><dl><dt>R3:</dt><dd>req R3</dd><dt>R4:</dt><dd>req R4</dd></dl><p id="rfc.section.1.5.p.3">A few rules: </p><dl><dt>R1:</dt><dd>rule R1</dd><dt>R2:</dt><dd>rule R2</dd><dt>R3:</dt><dd>rule R3</dd></dl><p id="rfc.section.1.5.p.4">Explicit counter with name matching it's format string: </p><dl><dt>c-c:</dt><dd>c-c</dd><dt>c-d:</dt><dd>c-d</dd></dl><p id="rfc.section.1.5.p.5">Same, without counter: </p><dl><dt>c-e:</dt><dd>c-e</dd><dt>c-f:</dt><dd>c-f</dd></dl><h2 id="rfc.section.1.6"><a href="#rfc.section.1.6">1.6</a> Nested list</h2><p id="rfc.section.1.6.p.1"> </p><ol><li>One</li><li>Two <ol class="ua"><li>17</li><li>42</li></ol> </li><li>Three</li></ol><h2 id="rfc.section.1.7"><a href="#rfc.section.1.7">1.7</a> list without style</h2><ul class="empty"><li>One</li><li>Two</li><li>Three</li></ul><h2 id="rfc.section.1.8"><a href="#rfc.section.1.8">1.8</a> list with multiple paragraphs in a single list item</h2><ol><li><p>Simple list item.</p></li><li><p>This one has two paragraphs. This is the first one.</p><p>This one has two paragraphs. This is the second one.</p></li><li><p>Another simple list item.</p></li></ol><hr class="noprint"><h1 id="rfc.section.2" class="np"><a href="#rfc.section.2">2.</a> spanx</h1><p id="rfc.section.2.p.1">This is <em>default</em>.</p><p id="rfc.section.2.p.2">This is <em>emph(asized)</em>.</p><p id="rfc.section.2.p.3">This is <strong>strong</strong>.</p><p id="rfc.section.2.p.4">This is <samp>verb(atim)</samp>.</p><p id="rfc.section.2.p.5">Here is <samp>a carriage return inside</samp> a spanx element.</p><hr class="noprint"><h1 id="rfc.section.3" class="np"><a href="#rfc.section.3">3.</a> Tables</h1><div id="rfc.table.u.1"><p>The list of valid keywords are:</p><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="right" style="width: 20%;">keyword</th><th class="center" style="width: 20%;">default</th><th class="left">meaning</th><th class="left">not aligned</th></tr></thead><tbody><tr><td class="right">strict</td><td class="center">no</td><td class="left">try to enforce the ID-nits conventions and DTD validity</td><td class="left">a</td></tr><tr><td class="right">iprnotified</td><td class="center">no</td><td class="left">include boilerplate from Section 10.4(d) of <a href="#RFC2026" id="rfc.xref.RFC2026.1"><cite title="The Internet Standards Process -- Revision 3">[RFC2026]</cite></a></td><td class="left">bb bb</td></tr><tr><td class="right">compact</td><td class="center">no</td><td class="left">when producing a txt/nroff file, try to conserve vertical whitespace</td><td class="left">ccc ccc ccc</td></tr><tr><td class="right">subcompact</td><td class="center">compact</td><td class="left">if compact is "yes", then setting this to "no" will make things a little less compact</td><td class="left">dddd dddd dddd dddd</td></tr><tr><td class="right">needLines</td><td class="center">n/a</td><td class="left">an integer hint indicating how many contiguous lines are needed at this point in the output</td><td class="left">eeeee eeeee eeeee eeeee eeeee</td></tr><tr><td class="right">here come empty cells</td><td class="center"></td><td class="left"></td><td class="left"></td></tr></tbody></table><p>Remember, that as with everything else in XML, keywords and values are case-sensitive.</p></div><h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a> no borders</h2><div id="rfc.table.1"><div id="tablenoborder"></div><p>The table below should appear with no borders.</p><table class="tt none center" cellpadding="3" cellspacing="0"><caption>Table 1: a table with no borders</caption><thead><tr><th class="left">C1</th><th class="left">C2</th></tr></thead><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a> borders around headers</h2><div id="rfc.table.u.2"><p>The table below should appear with borders just around the headers.</p><table class="tt headers center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">C1</th><th class="left">C2</th></tr></thead><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><h2 id="rfc.section.3.3"><a href="#rfc.section.3.3">3.3</a> example from xml2rc README</h2><div id="rfc.table.2"><div id="table_example"></div><p>So, putting it all together, we have, e.g.,</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 2</caption><thead><tr><th class="center">ttcol #1</th><th class="center">ttcol #2</th></tr></thead><tbody><tr><td class="center">c #1</td><td class="center">c #2</td></tr><tr><td class="center">c #3</td><td class="center">c #4</td></tr><tr><td class="center">c #5</td><td class="center">c #6</td></tr></tbody></table><p>which is a very simple example.</p></div><h2 id="rfc.section.3.4"><a href="#rfc.section.3.4">3.4</a> no column titles</h2><div id="rfc.table.3"><div id="tablenotitles"></div><p>The table below should appear with no titles.</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 3: a table with no column titles</caption><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><div id="rfc.table.4"><div id="tableonetitle"></div><p>The table below should appear with column titles (one being non-empty).</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 4: a table with a single column title</caption><thead><tr><th class="left">FOO</th><th class="left"></th></tr></thead><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><h2 id="rfc.section.3.5"><a href="#rfc.section.3.5">3.5</a> referencing tables</h2><p id="rfc.section.3.5.p.1"> <a href="#tablenoborder">Table 1</a> shows a table with no borders.</p><p id="rfc.section.3.5.p.2"> <a href="#tablenoborder">The table above</a> shows a table with no borders.</p><h2 id="rfc.section.3.6"><a href="#rfc.section.3.6">3.6</a> table captions</h2><div id="rfc.table.u.3"><p>No anchor, no title</p><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">-</td><td class="left">-</td></tr></tbody></table></div><div id="rfc.table.5"><div id="texttable1"></div><p>Anchor (not being referenced), no title</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 5</caption><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">yes</td><td class="left">-</td></tr></tbody></table></div><div id="rfc.table.6"><p>No anchor, with title</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 6: title</caption><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">-</td><td class="left">"title"</td></tr></tbody></table></div><div id="rfc.table.7"><div id="texttable2"></div><p>Both anchor and title</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 7: title</caption><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">yes</td><td class="left">"title"</td></tr></tbody></table></div><h2 id="rfc.section.3.7"><a href="#rfc.section.3.7">3.7</a> single column</h2><div id="rfc.table.u.4"><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">title</th></tr></thead><tbody><tr><td class="left">1</td></tr><tr><td class="left">2</td></tr></tbody></table></div><h2 id="rfc.section.3.8"><a href="#rfc.section.3.8">3.8</a> table alignment</h2><div id="rfc.table.u.5"><table class="tt full left" cellpadding="3" cellspacing="0"><thead><tr><th class="left">left</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><div id="rfc.table.u.6"><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">center</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><div id="rfc.table.u.7"><table class="tt full right" cellpadding="3" cellspacing="0"><thead><tr><th class="left">right</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><div id="rfc.table.u.8"><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">default</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><hr class="noprint"><h1 id="rfc.section.4" class="np"><a href="#rfc.section.4">4.</a> Figures</h1><h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a> with preamble, no title...</h2><div id="rfc.figure.u.1"></div> <p>with preamble, no title...</p> <pre> +--+398 </style><link rel="Contents" href="#rfc.toc"><link rel="Author" href="#rfc.authors"><link rel="Index" href="#rfc.index"><link rel="Chapter" title="1 Lists" href="#rfc.section.1"><link rel="Chapter" title="2 spanx" href="#rfc.section.2"><link rel="Chapter" title="3 Tables" href="#rfc.section.3"><link rel="Chapter" title="4 Figures" href="#rfc.section.4"><link rel="Chapter" title="5 References" href="#rfc.section.5"><link rel="Chapter" title="6 Paragraph formatting" href="#rfc.section.6"><link rel="Chapter" title="7 Sections" href="#rfc.section.7"><link rel="Chapter" title="8 Comments" href="#rfc.section.8"><link rel="Chapter" title="9 Artwork Width" href="#rfc.section.9"><link rel="Chapter" title="10 Extensions" href="#rfc.section.10"><link rel="Chapter" title="11 Blank Lines" href="#rfc.section.11"><link rel="Chapter" title="12 Other" href="#rfc.section.12"><link rel="Chapter" href="#rfc.section.13" title="13 References"><meta name="generator" content="http://greenbytes.de/tech/webdav/rfc2629.xslt, Revision 1.558, 2011-11-05 16:48:52, XSLT vendor: SAXON 6.5.5 from Michael Kay http://saxon.sf.net/"><meta name="keywords" content="RFC2629, test case, xml2rfc"><link rel="schema.dct" href="http://purl.org/dc/terms/"><meta name="dct.creator" content="Reschke, J. F."></head><body><table class="header"><tbody><tr><td class="left">RFC2629 test cases</td><td class="right">J. Reschke</td></tr><tr><td class="left"></td><td class="right">greenbytes</td></tr><tr><td class="left"></td><td class="right">January 2011</td></tr></tbody></table><p class="title">Test cases for RFC2629 formatting</p><hr class="noprint"><h1 class="np" id="rfc.toc"><a href="#rfc.toc">Table of Contents</a></h1><ul class="toc"><li>1. <a href="#lists">Lists</a><ul><li>1.1 <a href="#rfc.section.1.1">hanging list</a></li><li>1.2 <a href="#rfc.section.1.2">numbered list</a></li><li>1.3 <a href="#ordered.list.letters">ordered list (letters)</a></li><li>1.4 <a href="#rfc.section.1.4">no explicit counters</a></li><li>1.5 <a href="#rfc.section.1.5">with explicit counters</a></li><li>1.6 <a href="#rfc.section.1.6">Nested list</a></li><li>1.7 <a href="#rfc.section.1.7">list without style</a></li><li>1.8 <a href="#rfc.section.1.8">list with multiple paragraphs in a single list item</a></li></ul></li><li>2. <a href="#rfc.section.2">spanx</a></li><li>3. <a href="#rfc.section.3">Tables</a><ul><li>3.1 <a href="#rfc.section.3.1">no borders</a></li><li>3.2 <a href="#rfc.section.3.2">borders around headers</a></li><li>3.3 <a href="#rfc.section.3.3">example from xml2rc README</a></li><li>3.4 <a href="#rfc.section.3.4">no column titles</a></li><li>3.5 <a href="#rfc.section.3.5">referencing tables</a></li><li>3.6 <a href="#rfc.section.3.6">table captions</a></li><li>3.7 <a href="#rfc.section.3.7">single column</a></li><li>3.8 <a href="#rfc.section.3.8">table alignment</a></li></ul></li><li>4. <a href="#rfc.section.4">Figures</a><ul><li>4.1 <a href="#rfc.section.4.1">with preamble, no title...</a></li><li>4.2 <a href="#rfc.section.4.2">with postamble and title...</a></li><li>4.3 <a href="#rfc.section.4.3">Whitespace handling</a></li><li>4.4 <a href="#rfc.section.4.4">Whitespace around figures</a></li><li>4.5 <a href="#rfc.section.4.5">SVG</a></li><li>4.6 <a href="#code.components">Code Components</a></li></ul></li><li>5. <a href="#refs">References</a><ul><li>5.1 <a href="#xref.with.no.content">xref with no content</a></li><li>5.2 <a href="#rfc.section.5.2">xref to named <t> element</a></li><li>5.3 <a href="#rfc.section.5.3">xref to named <spanx> element</a></li><li>5.4 <a href="#rfc.section.5.4">xref to named <t> element inside list</a></li><li>5.5 <a href="#rfc.section.5.5">xref to named <cref> element</a></li><li>5.6 <a href="#rfc.section.5.6">xref to named <t> element inside list</a></li><li>5.7 <a href="#rfc.section.5.7">xref with no auto-formatting</a></li><li>5.8 <a href="#rfc.section.5.8">xref with content and auto-formatting</a></li><li>5.9 <a href="#rfc.section.5.9">xref with content and no formatting</a></li><li>5.10 <a href="#formatting.none">xref with content and 'none' formatting</a></li><li>5.11 <a href="#rfc.section.5.11">xref with no content and anchor formatting</a></li><li>5.12 <a href="#rfc.section.5.12">eref with no content</a></li><li>5.13 <a href="#rfc.section.5.13">eref with content</a></li><li>5.14 <a href="#rfc.section.5.14">iref inside paragraph</a></li></ul></li><li>6. <a href="#rfc.section.6">Paragraph formatting</a></li><li>7. <a href="#rfc.section.7">Sections</a><ul><li>7.1 <a href="#rfc.section.7.1">Subsection with TOC entry</a></li><li class="excluded"><ul><li>7.2.1 <a href="#rfc.section.7.2.1">Sub-subsection with TOC entry</a></li></ul></li></ul></li><li>8. <a href="#rfc.section.8">Comments</a></li><li>9. <a href="#rfc.section.9">Artwork Width</a></li><li>10. <a href="#extensions">Extensions</a><ul><li>10.1 <a href="#rfc.section.10.1">Markup in figure/artwork</a></li><li>10.2 <a href="#rfc.section.10.2">Measuring Lengths</a></li><li>10.3 <a href="#rfc.section.10.3">Quotations</a></li><li>10.4 <a href="#rfc.section.10.4">Subsections</a></li><li>10.5 <a href="#rfc.section.10.5">Box Drawing</a></li><li>10.6 <a href="#computed.reference.targets">Computed Reference Targets</a></li><li>10.7 <a href="#abnf.support">ABNF Support</a></li></ul></li><li>11. <a href="#rfc.section.11">Blank Lines</a></li><li>12. <a href="#rfc.section.12">Other</a><ul><li>12.1 <a href="#rfc.section.12.1">Comments in Text</a></li><li>12.2 <a href="#rfc.section.12.2">Special Characters</a><ul><li>12.2.1 <a href="#nbsp">Non-Breaking Space</a></li><li>12.2.2 <a href="#nbhy">Non-Breaking Hyphen</a></li><li>12.2.3 <a href="#dashes">Dashes</a></li></ul></li></ul></li><li>13. <a href="#rfc.references">References</a></li><li><a href="#rfc.comments">Editorial Comments</a></li><li><a href="#rfc.authors">Author's Address</a></li><li><a href="#rfc.index">Index</a></li></ul><ul><li><a href="#rfc.figure.1">Figure 1: another figure</a></li></ul><hr class="noprint"><h1 id="rfc.section.1" class="np"><a href="#rfc.section.1">1.</a> <a id="lists" href="#lists">Lists</a></h1><h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a> hanging list</h2><dl><dt>Name:</dt><dd>timeout</dd><dt>Namespace:</dt><dd>DAV:</dd><dt>Purpose:</dt><dd>The timeout associated with a lock</dd><dt>Value:</dt><dd>TimeType ;Defined in section 9.8</dd></dl><h2 id="rfc.section.1.2"><a href="#rfc.section.1.2">1.2</a> numbered list</h2><p id="rfc.section.1.2.p.1">A numbered list: </p><ol><li>one</li><li>two</li><li>three</li></ol><h2 id="rfc.section.1.3"><a href="#rfc.section.1.3">1.3</a> <a id="ordered.list.letters" href="#ordered.list.letters">ordered list (letters)</a></h2><p id="rfc.section.1.3.p.1">An ordered list using letters: </p><ol class="la"><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li>three</li><li>one</li><li>two</li><li id="ordered.list.letters.last">three</li></ol><h2 id="rfc.section.1.4"><a href="#rfc.section.1.4">1.4</a> no explicit counters</h2><p id="rfc.section.1.4.p.1">Example for numbered list with user-defined-format: </p><dl><dt>R1:</dt><dd>R1</dd><dt>R2:</dt><dd>R2</dd></dl><p id="rfc.section.1.4.p.2">Another list: </p><dl><dt>S1:</dt><dd>S1</dd><dt>S2:</dt><dd>S2</dd></dl><p id="rfc.section.1.4.p.3">Next list should continue counting R's: </p><dl><dt>R3:</dt><dd>R3</dd><dt>R4:</dt><dd>R4</dd></dl><p id="rfc.section.1.4.p.4">Same with character-based numbering: </p><dl><dt>c-a:</dt><dd>c-a</dd><dt>c-b:</dt><dd>c-b</dd></dl><h2 id="rfc.section.1.5"><a href="#rfc.section.1.5">1.5</a> with explicit counters</h2><p id="rfc.section.1.5.p.1">A few requirements: </p><dl><dt>R1:</dt><dd>req R1</dd><dt>R2:</dt><dd>req R2</dd></dl><p id="rfc.section.1.5.p.2">More requirements: </p><dl><dt>R3:</dt><dd>req R3</dd><dt>R4:</dt><dd>req R4</dd></dl><p id="rfc.section.1.5.p.3">A few rules: </p><dl><dt>R1:</dt><dd>rule R1</dd><dt>R2:</dt><dd>rule R2</dd><dt>R3:</dt><dd>rule R3</dd></dl><p id="rfc.section.1.5.p.4">Explicit counter with name matching it's format string: </p><dl><dt>c-c:</dt><dd>c-c</dd><dt>c-d:</dt><dd>c-d</dd></dl><p id="rfc.section.1.5.p.5">Same, without counter: </p><dl><dt>c-e:</dt><dd>c-e</dd><dt>c-f:</dt><dd>c-f</dd></dl><h2 id="rfc.section.1.6"><a href="#rfc.section.1.6">1.6</a> Nested list</h2><p id="rfc.section.1.6.p.1"> </p><ol><li>One</li><li>Two <ol class="ua"><li>17</li><li>42</li></ol> </li><li>Three</li></ol><h2 id="rfc.section.1.7"><a href="#rfc.section.1.7">1.7</a> list without style</h2><ul class="empty"><li>One</li><li>Two</li><li>Three</li></ul><h2 id="rfc.section.1.8"><a href="#rfc.section.1.8">1.8</a> list with multiple paragraphs in a single list item</h2><ol><li><p>Simple list item.</p></li><li><p>This one has two paragraphs. This is the first one.</p><p>This one has two paragraphs. This is the second one.</p></li><li><p>Another simple list item.</p></li></ol><hr class="noprint"><h1 id="rfc.section.2" class="np"><a href="#rfc.section.2">2.</a> spanx</h1><p id="rfc.section.2.p.1">This is <em>default</em>.</p><p id="rfc.section.2.p.2">This is <em>emph(asized)</em>.</p><p id="rfc.section.2.p.3">This is <strong>strong</strong>.</p><p id="rfc.section.2.p.4">This is <samp>verb(atim)</samp>.</p><p id="rfc.section.2.p.5">Here is <samp>a carriage return inside</samp> a spanx element.</p><hr class="noprint"><h1 id="rfc.section.3" class="np"><a href="#rfc.section.3">3.</a> Tables</h1><div id="rfc.table.u.1"><p>The list of valid keywords are:</p><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="right" style="width: 20%;">keyword</th><th class="center" style="width: 20%;">default</th><th class="left">meaning</th><th class="left">not aligned</th></tr></thead><tbody><tr><td class="right">strict</td><td class="center">no</td><td class="left">try to enforce the ID-nits conventions and DTD validity</td><td class="left">a</td></tr><tr><td class="right">iprnotified</td><td class="center">no</td><td class="left">include boilerplate from Section 10.4(d) of <a href="#RFC2026" id="rfc.xref.RFC2026.1"><cite title="The Internet Standards Process -- Revision 3">[RFC2026]</cite></a></td><td class="left">bb bb</td></tr><tr><td class="right">compact</td><td class="center">no</td><td class="left">when producing a txt/nroff file, try to conserve vertical whitespace</td><td class="left">ccc ccc ccc</td></tr><tr><td class="right">subcompact</td><td class="center">compact</td><td class="left">if compact is "yes", then setting this to "no" will make things a little less compact</td><td class="left">dddd dddd dddd dddd</td></tr><tr><td class="right">needLines</td><td class="center">n/a</td><td class="left">an integer hint indicating how many contiguous lines are needed at this point in the output</td><td class="left">eeeee eeeee eeeee eeeee eeeee</td></tr><tr><td class="right">here come empty cells</td><td class="center"></td><td class="left"></td><td class="left"></td></tr></tbody></table><p>Remember, that as with everything else in XML, keywords and values are case-sensitive.</p></div><h2 id="rfc.section.3.1"><a href="#rfc.section.3.1">3.1</a> no borders</h2><div id="rfc.table.1"><div id="tablenoborder"></div><p>The table below should appear with no borders.</p><table class="tt none center" cellpadding="3" cellspacing="0"><caption>Table 1: a table with no borders</caption><thead><tr><th class="left">C1</th><th class="left">C2</th></tr></thead><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><h2 id="rfc.section.3.2"><a href="#rfc.section.3.2">3.2</a> borders around headers</h2><div id="rfc.table.u.2"><p>The table below should appear with borders just around the headers.</p><table class="tt headers center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">C1</th><th class="left">C2</th></tr></thead><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><h2 id="rfc.section.3.3"><a href="#rfc.section.3.3">3.3</a> example from xml2rc README</h2><div id="rfc.table.2"><div id="table_example"></div><p>So, putting it all together, we have, e.g.,</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 2</caption><thead><tr><th class="center">ttcol #1</th><th class="center">ttcol #2</th></tr></thead><tbody><tr><td class="center">c #1</td><td class="center">c #2</td></tr><tr><td class="center">c #3</td><td class="center">c #4</td></tr><tr><td class="center">c #5</td><td class="center">c #6</td></tr></tbody></table><p>which is a very simple example.</p></div><h2 id="rfc.section.3.4"><a href="#rfc.section.3.4">3.4</a> no column titles</h2><div id="rfc.table.3"><div id="tablenotitles"></div><p>The table below should appear with no titles.</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 3: a table with no column titles</caption><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><div id="rfc.table.4"><div id="tableonetitle"></div><p>The table below should appear with column titles (one being non-empty).</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 4: a table with a single column title</caption><thead><tr><th class="left">FOO</th><th class="left"></th></tr></thead><tbody><tr><td class="left">11</td><td class="left">12</td></tr><tr><td class="left">21</td><td class="left">22</td></tr></tbody></table></div><h2 id="rfc.section.3.5"><a href="#rfc.section.3.5">3.5</a> referencing tables</h2><p id="rfc.section.3.5.p.1"> <a href="#tablenoborder">Table 1</a> shows a table with no borders.</p><p id="rfc.section.3.5.p.2"> <a href="#tablenoborder">The table above</a> shows a table with no borders.</p><h2 id="rfc.section.3.6"><a href="#rfc.section.3.6">3.6</a> table captions</h2><div id="rfc.table.u.3"><p>No anchor, no title</p><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">-</td><td class="left">-</td></tr></tbody></table></div><div id="rfc.table.5"><div id="texttable1"></div><p>Anchor (not being referenced), no title</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 5</caption><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">yes</td><td class="left">-</td></tr></tbody></table></div><div id="rfc.table.6"><p>No anchor, with title</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 6: title</caption><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">-</td><td class="left">"title"</td></tr></tbody></table></div><div id="rfc.table.7"><div id="texttable2"></div><p>Both anchor and title</p><table class="tt full center" cellpadding="3" cellspacing="0"><caption>Table 7: title</caption><thead><tr><th class="left">Anchor</th><th class="left">Title</th></tr></thead><tbody><tr><td class="left">yes</td><td class="left">"title"</td></tr></tbody></table></div><h2 id="rfc.section.3.7"><a href="#rfc.section.3.7">3.7</a> single column</h2><div id="rfc.table.u.4"><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">title</th></tr></thead><tbody><tr><td class="left">1</td></tr><tr><td class="left">2</td></tr></tbody></table></div><h2 id="rfc.section.3.8"><a href="#rfc.section.3.8">3.8</a> table alignment</h2><div id="rfc.table.u.5"><table class="tt full left" cellpadding="3" cellspacing="0"><thead><tr><th class="left">left</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><div id="rfc.table.u.6"><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">center</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><div id="rfc.table.u.7"><table class="tt full right" cellpadding="3" cellspacing="0"><thead><tr><th class="left">right</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><div id="rfc.table.u.8"><table class="tt full center" cellpadding="3" cellspacing="0"><thead><tr><th class="left">default</th></tr></thead><tbody><tr><td class="left">1</td></tr></tbody></table></div><hr class="noprint"><h1 id="rfc.section.4" class="np"><a href="#rfc.section.4">4.</a> Figures</h1><h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a> with preamble, no title...</h2><div id="rfc.figure.u.1"></div> <p>with preamble, no title...</p> <pre> +--+ 399 399 | | 400 400 +--+
Note: See TracChangeset
for help on using the changeset viewer.