Changeset 1145 for rfc2629xslt


Ignore:
Timestamp:
Mar 1, 2011, 1:24:49 AM (9 years ago)
Author:
julian.reschke@…
Message:

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

Location:
rfc2629xslt
Files:
60 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629.xslt

    r1103 r1145  
    744744    <xsl:otherwise>
    745745      <xsl:variable name="start" select="substring-before($content,'&#10;')"/>
    746       <xsl:variable name="end" select="substring-after($content,'&#10;')"/>
    747       <xsl:if test="string-length($start) > 69 + $indent">
     746      <xsl:variable name="end" select="substring-after($content,'&#10;')"/>
     747      <xsl:variable name="max">
     748        <xsl:choose>
     749          <xsl:when test="$indent!=''"><xsl:value-of select="69 + $indent"/></xsl:when>
     750          <xsl:otherwise>69</xsl:otherwise>
     751        </xsl:choose>         
     752      </xsl:variable>
     753      <xsl:if test="string-length($start) > $max">
    748754        <xsl:call-template name="warning">
    749755          <xsl:with-param name="inline" select="'no'"/>
     
    11581164  <xsl:apply-templates select="x:boilerplate"/>
    11591165  <xsl:apply-templates select="abstract" />
    1160   <xsl:apply-templates select="note" />
     1166 
     1167  <!-- Notes except IESG Notes -->
     1168  <xsl:apply-templates select="note[@title!='IESG Note' or $xml2rfc-private!='']" />
    11611169  <!-- show notes inside change tracking as well -->
    1162   <xsl:apply-templates select="ed:replace[.//note]" />
     1170  <xsl:apply-templates select="ed:replace[.//note[@title!='IESG Note' or $xml2rfc-private!='']]" />
    11631171   
    11641172  <xsl:if test="$xml2rfc-private='' and $abstract-first">
     
    12651273<!-- numbered list inside numbered list -->
    12661274<xsl:template match="list[@style='numbers']/t/list[@style='numbers']" priority="9">
    1267   <ol style="list-style-type: lower-alpha">
     1275  <ol class="la">
    12681276    <xsl:call-template name="insertInsDelClass"/>
    12691277    <xsl:apply-templates />
     
    12721280
    12731281<xsl:template match="list[@style='letters']">
    1274   <ol style="list-style-type: lower-alpha">
     1282  <ol class="la">
    12751283    <xsl:call-template name="insertInsDelClass"/>
    12761284    <xsl:apply-templates />
     
    12801288<!-- nested lettered list uses uppercase -->
    12811289<xsl:template match="list//t//list[@style='letters']" priority="9">
    1282   <ol style="list-style-type: upper-alpha">
     1290  <ol class="ua">
    12831291    <xsl:call-template name="insertInsDelClass"/>
    12841292    <xsl:apply-templates />
     
    32883296  margin-right: 2em;
    32893297}
     3298ol.la {
     3299  list-style-type: lower-alpha;
     3300}
     3301ol.ua {
     3302  list-style-type: upper-alpha;
     3303}
    32903304ol p {
    32913305  margin-left: 0em;
     
    44394453  </section>
    44404454 
     4455  <!-- IESG Note goes here; see http://www.rfc-editor.org/rfc-style-guide/rfc-style -->
     4456  <xsl:copy-of select="/rfc/front/note[@title='IESG Note']"/>
     4457 
    44414458  <xsl:choose>
    44424459    <xsl:when test="$ipr-2008-11">
     
    62246241    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    62256242    <!-- when RCS keyword substitution in place, add version info -->
    6226     <xsl:if test="contains('$Revision: 1.540 $',':')">
    6227       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.540 $', 'Revision: '),'$','')),', ')" />
     6243    <xsl:if test="contains('$Revision: 1.543 $',':')">
     6244      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.543 $', 'Revision: '),'$','')),', ')" />
    62286245    </xsl:if>
    6229     <xsl:if test="contains('$Date: 2011-01-10 09:27:20 $',':')">
    6230       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-01-10 09:27:20 $', 'Date: '),'$','')),', ')" />
     6246    <xsl:if test="contains('$Date: 2011-02-18 21:03:40 $',':')">
     6247      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-02-18 21:03:40 $', 'Date: '),'$','')),', ')" />
    62316248    </xsl:if>
    62326249    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" />
  • rfc2629xslt/rfc2629toFO.xslt

    r1103 r1145  
    345345  <xsl:apply-templates select="x:boilerplate"/>
    346346  <xsl:apply-templates select="abstract" />
    347   <xsl:apply-templates select="note" />
     347  <xsl:apply-templates select="note[@title!='IESG Note' or $xml2rfc-private!='']" />
    348348
    349349  <xsl:if test="$xml2rfc-private='' and $abstract-first">
     
    23212321
    23222322<xsl:template match="rfc" mode="bookmarks">
    2323   <xsl:if test="$xml2rfc-private=''">
    2324     <!-- Get status info formatted as per RFC2629-->
    2325     <xsl:variable name="preamble"><xsl:call-template name="insertPreamble" /></xsl:variable>
    2326    
    2327     <!-- emit it -->
    2328     <xsl:choose>
    2329       <xsl:when test="function-available('exslt:node-set')">
    2330         <xsl:apply-templates select="exslt:node-set($preamble)/node()" mode="bookmarks"/>
    2331       </xsl:when>
    2332       <xsl:otherwise>
    2333         <xsl:variable name="temp" select="$preamble"/>
    2334         <xsl:apply-templates select="$temp/node()" mode="bookmarks"/>
    2335       </xsl:otherwise>
    2336     </xsl:choose>
     2323  <xsl:if test="$xml2rfc-private='' and not($abstract-first)">
     2324    <xsl:call-template name="emit-ietf-preamble-bookmarks"/>   
    23372325  </xsl:if>
    23382326 
    23392327  <xsl:apply-templates select="front/abstract" mode="bookmarks"/>
    2340   <xsl:apply-templates select="front/note" mode="bookmarks"/>
     2328  <xsl:apply-templates select="front/note[@title!='IESG Note' or $xml2rfc-private!='']" mode="bookmarks"/>
     2329
     2330  <xsl:if test="$xml2rfc-private='' and $abstract-first">
     2331    <xsl:call-template name="emit-ietf-preamble-bookmarks"/>   
     2332  </xsl:if>
    23412333
    23422334  <xsl:if test="$xml2rfc-toc='yes'">
     
    23472339 
    23482340  <xsl:apply-templates select="middle|back" mode="bookmarks"/>
     2341</xsl:template>
     2342
     2343<xsl:template name="emit-ietf-preamble-bookmarks">
     2344  <!-- Get status info formatted as per RFC2629-->
     2345  <xsl:variable name="preamble"><xsl:call-template name="insertPreamble" /></xsl:variable>
     2346 
     2347  <!-- emit it -->
     2348  <xsl:choose>
     2349    <xsl:when test="function-available('exslt:node-set')">
     2350      <xsl:apply-templates select="exslt:node-set($preamble)/node()" mode="bookmarks"/>
     2351    </xsl:when>
     2352    <xsl:otherwise>
     2353      <xsl:variable name="temp" select="$preamble"/>
     2354      <xsl:apply-templates select="$temp/node()" mode="bookmarks"/>
     2355    </xsl:otherwise>
     2356  </xsl:choose>
    23492357</xsl:template>
    23502358
  • rfc2629xslt/rfc2629toXHTML.xslt

    r1103 r1145  
    612612    <xsl:otherwise>
    613613      <xsl:variable name="start" select="substring-before($content,'&#xA;')"/>
    614       <xsl:variable name="end" select="substring-after($content,'&#xA;')"/>
    615       <xsl:if test="string-length($start) &gt; 69 + $indent">
     614      <xsl:variable name="end" select="substring-after($content,'&#xA;')"/>
     615      <xsl:variable name="max">
     616        <xsl:choose>
     617          <xsl:when test="$indent!=''"><xsl:value-of select="69 + $indent"/></xsl:when>
     618          <xsl:otherwise>69</xsl:otherwise>
     619        </xsl:choose>         
     620      </xsl:variable>
     621      <xsl:if test="string-length($start) &gt; $max">
    616622        <xsl:call-template name="warning">
    617623          <xsl:with-param name="inline" select="'no'"/>
     
    10261032  <xsl:apply-templates select="x:boilerplate"/>
    10271033  <xsl:apply-templates select="abstract"/>
    1028   <xsl:apply-templates select="note"/>
     1034 
     1035  <!-- Notes except IESG Notes -->
     1036  <xsl:apply-templates select="note[@title!='IESG Note' or $xml2rfc-private!='']"/>
    10291037  <!-- show notes inside change tracking as well -->
    1030   <xsl:apply-templates select="ed:replace[.//note]"/>
     1038  <xsl:apply-templates select="ed:replace[.//note[@title!='IESG Note' or $xml2rfc-private!='']]"/>
    10311039   
    10321040  <xsl:if test="$xml2rfc-private='' and $abstract-first">
     
    11331141<!-- numbered list inside numbered list -->
    11341142<xsl:template match="list[@style='numbers']/t/list[@style='numbers']" priority="9">
    1135   <ol xmlns="http://www.w3.org/1999/xhtml" style="list-style-type: lower-alpha">
     1143  <ol xmlns="http://www.w3.org/1999/xhtml" class="la">
    11361144    <xsl:call-template name="insertInsDelClass"/>
    11371145    <xsl:apply-templates/>
     
    11401148
    11411149<xsl:template match="list[@style='letters']">
    1142   <ol xmlns="http://www.w3.org/1999/xhtml" style="list-style-type: lower-alpha">
     1150  <ol xmlns="http://www.w3.org/1999/xhtml" class="la">
    11431151    <xsl:call-template name="insertInsDelClass"/>
    11441152    <xsl:apply-templates/>
     
    11481156<!-- nested lettered list uses uppercase -->
    11491157<xsl:template match="list//t//list[@style='letters']" priority="9">
    1150   <ol xmlns="http://www.w3.org/1999/xhtml" style="list-style-type: upper-alpha">
     1158  <ol xmlns="http://www.w3.org/1999/xhtml" class="ua">
    11511159    <xsl:call-template name="insertInsDelClass"/>
    11521160    <xsl:apply-templates/>
     
    31563164  margin-right: 2em;
    31573165}
     3166ol.la {
     3167  list-style-type: lower-alpha;
     3168}
     3169ol.ua {
     3170  list-style-type: upper-alpha;
     3171}
    31583172ol p {
    31593173  margin-left: 0em;
     
    42984312  </section>
    42994313 
     4314  <!-- IESG Note goes here; see http://www.rfc-editor.org/rfc-style-guide/rfc-style -->
     4315  <xsl:copy-of select="/rfc/front/note[@title='IESG Note']"/>
     4316 
    43004317  <xsl:choose>
    43014318    <xsl:when test="$ipr-2008-11">
     
    60826099    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    60836100    <!-- when RCS keyword substitution in place, add version info -->
    6084     <xsl:if test="contains('$Revision: 1.540 $',':')">
    6085       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.540 $', 'Revision: '),'$','')),', ')"/>
     6101    <xsl:if test="contains('$Revision: 1.543 $',':')">
     6102      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.543 $', 'Revision: '),'$','')),', ')"/>
    60866103    </xsl:if>
    6087     <xsl:if test="contains('$Date: 2011-01-10 09:27:20 $',':')">
    6088       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-01-10 09:27:20 $', 'Date: '),'$','')),', ')"/>
     6104    <xsl:if test="contains('$Date: 2011-02-18 21:03:40 $',':')">
     6105      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-02-18 21:03:40 $', 'Date: '),'$','')),', ')"/>
    60896106    </xsl:if>
    60906107    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))"/>
  • rfc2629xslt/rfc2629xslt.html

    r1103 r1145  
    9393  margin-right: 2em;
    9494}
     95ol.la {
     96  list-style-type: lower-alpha;
     97}
     98ol.ua {
     99  list-style-type: upper-alpha;
     100}
    95101ol p {
    96102  margin-left: 0em;
     
    350356  }
    351357  @top-right {
    352        content: "January 2011";
     358       content: "February 2011";
    353359  }
    354360  @top-center {
     
    377383    }
    378384}
    379 </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.540, 2011-01-10 09:27:20, 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">January 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.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1">Introduction</a></li><li>2.&nbsp;&nbsp;&nbsp;<a href="#supported.elements">Supported RFC2629 elements</a><ul><li>2.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.2.1">Extension elements</a></li></ul></li><li>3.&nbsp;&nbsp;&nbsp;<a href="#processing.instructions">Processing Instructions</a><ul><li>3.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.1">Supported xml2rfc-compatible PIs</a></li><li>3.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.2">Unsupported xml2rfc-compatible PIs</a></li><li>3.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.3">Extension PIs</a></li></ul></li><li>4.&nbsp;&nbsp;&nbsp;<a href="#anchors">Anchors</a></li><li>5.&nbsp;&nbsp;&nbsp;<a href="#xslt.engines">Supported XSLT engines</a><ul><li>5.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.1">Standalone Engines</a></li><li>5.2&nbsp;&nbsp;&nbsp;<a href="#xslt.engines.browser">In-Browser Engines</a></li></ul></li><li>6.&nbsp;&nbsp;&nbsp;<a href="#output.html">Transforming to HTML</a><ul><li>6.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.6.1">HTML compliance</a></li><li>6.2&nbsp;&nbsp;&nbsp;<a href="#html.link">Standard HTML LINK elements</a></li><li>6.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.6.3">Standard HTML metadata</a></li><li>6.4&nbsp;&nbsp;&nbsp;<a href="#rfc2731.properties">Dublin Core (RFC2731) metadata</a></li><li>6.5&nbsp;&nbsp;&nbsp;<a href="#hcard">Experimental hCard support</a></li></ul></li><li>7.&nbsp;&nbsp;&nbsp;<a href="#output.xhtml">Transforming to XHTML</a></li><li>8.&nbsp;&nbsp;&nbsp;<a href="#output.chm">Transforming to CHM (Microsoft Compiled Help)</a></li><li>9.&nbsp;&nbsp;&nbsp;<a href="#output.pdf">Transforming to PDF</a><ul><li>9.1&nbsp;&nbsp;&nbsp;<a href="#output.pdf.fop">Via XSL-FO</a><ul><li>9.1.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.9.1.1">Extension feature matrix</a></li><li>9.1.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.9.1.2">Example: producing output for Apache FOP</a></li></ul></li><li>9.2&nbsp;&nbsp;&nbsp;<a href="#output.pdf.html">Via X(HTML)</a></li></ul></li><li>10.&nbsp;&nbsp;&nbsp;<a href="#output.epub">Transforming to ePub</a></li><li>11.&nbsp;&nbsp;&nbsp;<a href="#extensions">Generic Extensions</a><ul><li>11.1&nbsp;&nbsp;&nbsp;<a href="#ext.element.abnf-char-sequence">&lt;abnf-char-sequence&gt; element</a></li><li>11.2&nbsp;&nbsp;&nbsp;<a href="#ext.element.anchor-alias">&lt;anchor-alias&gt; element</a></li><li>11.3&nbsp;&nbsp;&nbsp;<a href="#ext.element.bcp14">&lt;bcp14&gt; element</a></li><li>11.4&nbsp;&nbsp;&nbsp;<a href="#ext.element.bb">&lt;bb&gt; element</a></li><li>11.5&nbsp;&nbsp;&nbsp;<a href="#ext.element.bc">&lt;bc&gt; element</a></li><li>11.6&nbsp;&nbsp;&nbsp;<a href="#ext.element.blockquote">&lt;blockquote&gt; element</a></li><li>11.7&nbsp;&nbsp;&nbsp;<a href="#ext.element.boilerplate">&lt;boilerplate&gt; element</a></li><li>11.8&nbsp;&nbsp;&nbsp;<a href="#ext.element.bt">&lt;bt&gt; element</a></li><li>11.9&nbsp;&nbsp;&nbsp;<a href="#ext.element.dfn">&lt;dfn&gt; element</a></li><li>11.10&nbsp;&nbsp;&nbsp;<a href="#ext.element.h">&lt;h&gt; element</a></li><li>11.11&nbsp;&nbsp;&nbsp;<a href="#ext.element.highlight">&lt;highlight&gt; element</a></li><li>11.12&nbsp;&nbsp;&nbsp;<a href="#ext.element.length-of">&lt;length-of&gt; element</a></li><li>11.13&nbsp;&nbsp;&nbsp;<a href="#ext.element.link">&lt;link&gt; element</a></li><li>11.14&nbsp;&nbsp;&nbsp;<a href="#ext.element.lt">&lt;lt&gt; element</a></li><li>11.15&nbsp;&nbsp;&nbsp;<a href="#ext.element.note">&lt;note&gt; element</a></li><li>11.16&nbsp;&nbsp;&nbsp;<a href="#ext.element.parse-xml">&lt;parse-xml&gt; element</a></li><li>11.17&nbsp;&nbsp;&nbsp;<a href="#ext.element.prose">&lt;prose&gt; element</a></li><li>11.18&nbsp;&nbsp;&nbsp;<a href="#ext.element.q">&lt;q&gt; element</a></li><li>11.19&nbsp;&nbsp;&nbsp;<a href="#ext.element.ref">&lt;ref&gt; element</a></li><li>11.20&nbsp;&nbsp;&nbsp;<a href="#ext.element.source">&lt;source&gt; element</a></li><li>11.21&nbsp;&nbsp;&nbsp;<a href="#ext.element.sup">&lt;sup&gt; element</a></li><li>11.22&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.artwork">Extensions to Xml2rfc &lt;artwork&gt; element</a></li><li>11.23&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.iref">Extensions to Xml2rfc &lt;iref&gt; element</a></li><li>11.24&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.list">Extensions to Xml2rfc &lt;list&gt; element</a></li><li>11.25&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.rfc">Extensions to Xml2rfc &lt;rfc&gt; element</a></li><li>11.26&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.section">Extensions to Xml2rfc &lt;section&gt; element</a></li><li>11.27&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.xref">Extensions to Xml2rfc &lt;xref&gt; element</a></li></ul></li><li>12.&nbsp;&nbsp;&nbsp;<a href="#utilities">Utilities</a><ul><li>12.1&nbsp;&nbsp;&nbsp;<a href="#checking-references">Checking References</a></li><li>12.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.2">Generating Graphs from References</a></li><li>12.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.3">Producing reference entries for books</a></li><li>12.4&nbsp;&nbsp;&nbsp;<a href="#clean-for-dtd">Down-converting to RFC2629bis DTD</a></li><li>12.5&nbsp;&nbsp;&nbsp;<a href="#extract-artwork">Extracting artwork</a></li><li>12.6&nbsp;&nbsp;&nbsp;<a href="#grddl">GRRDL</a></li></ul></li><li>13.&nbsp;&nbsp;&nbsp;<a href="#rfc.references">Informative References</a></li><li><a href="#rfc.authors">Author's Address</a></li><li>A.&nbsp;&nbsp;&nbsp;<a href="#grammar">RELAX NG Compact Schema</a></li><li>B.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.B">Implementation Notes</a><ul><li>B.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.B.1">Recognized type attributes for &lt;artwork&gt; element</a></li></ul></li><li>C.&nbsp;&nbsp;&nbsp;<a href="#examples">Examples</a><ul><li>C.1&nbsp;&nbsp;&nbsp;<a href="#examples.internalsubset">Using the 'Internal Subset'</a></li><li>C.2&nbsp;&nbsp;&nbsp;<a href="#examples.customizing">Customization</a></li></ul></li><li>D.&nbsp;&nbsp;&nbsp;<a href="#boilerplate">Producing the IETF 'Boilerplate'</a><ul><li>D.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr">The /rfc/@ipr Attribute</a><ul><li>D.1.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-current">Current Values: '*trust200902'</a><ul><li>D.1.1.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-trust200902">trust200902</a></li><li>D.1.1.2&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-noModificationTrust200902">noModificationTrust200902</a></li><li>D.1.1.3&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-noDerivativesTrust200902">noDerivativesTrust200902</a></li><li>D.1.1.4&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-pre5378Trust200902">pre5378Trust200902</a></li></ul></li><li>D.1.2&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-historic">Historic Values</a><ul><li>D.1.2.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-200811">Historic Values: '*trust200811'</a></li><li>D.1.2.2&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-3978">Historic Values: '*3978'</a></li><li>D.1.2.3&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-3667">Historic Values: '*3667'</a></li><li>D.1.2.4&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-2026">Historic Values: '*2026'</a></li></ul></li></ul></li><li>D.2&nbsp;&nbsp;&nbsp;<a href="#attribute-category">The /rfc/@category Attribute</a></li><li>D.3&nbsp;&nbsp;&nbsp;<a href="#attribute-submissiontype">The /rfc/@submissionType Attribute</a></li><li>D.4&nbsp;&nbsp;&nbsp;<a href="#attribute-consensus">The /rfc/@consensus Attribute</a></li><li>D.5&nbsp;&nbsp;&nbsp;<a href="#attribute-number">The /rfc/@number Attribute</a></li><li>D.6&nbsp;&nbsp;&nbsp;<a href="#attribute-docname">The /rfc/@docName Attribute</a></li><li>D.7&nbsp;&nbsp;&nbsp;<a href="#attribute-obsoletes">The /rfc/@obsoletes Attribute</a></li><li>D.8&nbsp;&nbsp;&nbsp;<a href="#attribute-updates">The /rfc/@updates Attribute</a></li></ul></li><li>E.&nbsp;&nbsp;&nbsp;<a href="#license">License</a></li><li>F.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F">Change Logs</a><ul><li>F.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.1">Package</a></li><li>F.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.2">amazon-asin.xslt</a></li><li>F.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.3">check-references.xslt</a></li><li>F.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.4">gen-reference-graph.xslt</a></li><li>F.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.5">rfc2629.xslt</a></li><li>F.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.6">rfc2629toFO.xslt</a></li><li>F.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.7">xsl11toAn.xslt</a></li><li>F.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.8">xsl11toFop.xslt</a></li><li>F.9&nbsp;&nbsp;&nbsp;<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>&nbsp;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&nbsp;2</a>),</li><li>support for xml2rfc processing instructions (<a href="#processing.instructions" title="Processing Instructions">Section&nbsp;3</a>),</li><li>the names of anchor elements generated in HTML and PDF output (<a href="#anchors" title="Anchors">Section&nbsp;4</a>),</li><li>various XSLT engines that can be used (<a href="#xslt.engines" title="Supported XSLT engines">Section&nbsp;5</a>),</li><li>outputting HTML (<a href="#output.html" title="Transforming to HTML">Section&nbsp;6</a>) and XHTML (<a href="#output.xhtml" title="Transforming to XHTML">Section&nbsp;7</a>),</li><li>outputting CHM (Compiled Microsoft Help, <a href="#output.chm" title="Transforming to CHM (Microsoft Compiled Help)">Section&nbsp;8</a>),</li><li>outputting PDF (<a href="#output.pdf" title="Transforming to PDF">Section&nbsp;9</a>),</li><li>extensions to the xml2rfc vocabulary (<a href="#extensions" title="Generic Extensions">Section&nbsp;11</a>).</li><li>various utilities (<a href="#utilities" title="Utilities">Section&nbsp;12</a>).</li></ul><p id="rfc.section.1.p.2">The full distribution is available at &lt;<a href="http://greenbytes.de/tech/webdav/rfc2629xslt.zip">http://greenbytes.de/tech/webdav/rfc2629xslt.zip</a>&gt;.</p><hr class="noprint"><h1 id="rfc.section.2" class="np"><a href="#rfc.section.2">2.</a>&nbsp;<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.33.</p><h2 id="rfc.section.2.1"><a href="#rfc.section.2.1">2.1</a>&nbsp;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&nbsp;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>&nbsp;<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">&lt;?rfc toc="yes"?&gt;
     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.543, 2011-02-18 21:03:40, 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">February 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.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1">Introduction</a></li><li>2.&nbsp;&nbsp;&nbsp;<a href="#supported.elements">Supported RFC2629 elements</a><ul><li>2.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.2.1">Extension elements</a></li></ul></li><li>3.&nbsp;&nbsp;&nbsp;<a href="#processing.instructions">Processing Instructions</a><ul><li>3.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.1">Supported xml2rfc-compatible PIs</a></li><li>3.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.2">Unsupported xml2rfc-compatible PIs</a></li><li>3.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.3">Extension PIs</a></li></ul></li><li>4.&nbsp;&nbsp;&nbsp;<a href="#anchors">Anchors</a></li><li>5.&nbsp;&nbsp;&nbsp;<a href="#xslt.engines">Supported XSLT engines</a><ul><li>5.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.1">Standalone Engines</a></li><li>5.2&nbsp;&nbsp;&nbsp;<a href="#xslt.engines.browser">In-Browser Engines</a></li></ul></li><li>6.&nbsp;&nbsp;&nbsp;<a href="#output.html">Transforming to HTML</a><ul><li>6.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.6.1">HTML compliance</a></li><li>6.2&nbsp;&nbsp;&nbsp;<a href="#html.link">Standard HTML LINK elements</a></li><li>6.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.6.3">Standard HTML metadata</a></li><li>6.4&nbsp;&nbsp;&nbsp;<a href="#rfc2731.properties">Dublin Core (RFC2731) metadata</a></li><li>6.5&nbsp;&nbsp;&nbsp;<a href="#hcard">Experimental hCard support</a></li></ul></li><li>7.&nbsp;&nbsp;&nbsp;<a href="#output.xhtml">Transforming to XHTML</a></li><li>8.&nbsp;&nbsp;&nbsp;<a href="#output.chm">Transforming to CHM (Microsoft Compiled Help)</a></li><li>9.&nbsp;&nbsp;&nbsp;<a href="#output.pdf">Transforming to PDF</a><ul><li>9.1&nbsp;&nbsp;&nbsp;<a href="#output.pdf.fop">Via XSL-FO</a><ul><li>9.1.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.9.1.1">Extension feature matrix</a></li><li>9.1.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.9.1.2">Example: producing output for Apache FOP</a></li></ul></li><li>9.2&nbsp;&nbsp;&nbsp;<a href="#output.pdf.html">Via X(HTML)</a></li></ul></li><li>10.&nbsp;&nbsp;&nbsp;<a href="#output.epub">Transforming to ePub</a></li><li>11.&nbsp;&nbsp;&nbsp;<a href="#extensions">Generic Extensions</a><ul><li>11.1&nbsp;&nbsp;&nbsp;<a href="#ext.element.abnf-char-sequence">&lt;abnf-char-sequence&gt; element</a></li><li>11.2&nbsp;&nbsp;&nbsp;<a href="#ext.element.anchor-alias">&lt;anchor-alias&gt; element</a></li><li>11.3&nbsp;&nbsp;&nbsp;<a href="#ext.element.bcp14">&lt;bcp14&gt; element</a></li><li>11.4&nbsp;&nbsp;&nbsp;<a href="#ext.element.bb">&lt;bb&gt; element</a></li><li>11.5&nbsp;&nbsp;&nbsp;<a href="#ext.element.bc">&lt;bc&gt; element</a></li><li>11.6&nbsp;&nbsp;&nbsp;<a href="#ext.element.blockquote">&lt;blockquote&gt; element</a></li><li>11.7&nbsp;&nbsp;&nbsp;<a href="#ext.element.boilerplate">&lt;boilerplate&gt; element</a></li><li>11.8&nbsp;&nbsp;&nbsp;<a href="#ext.element.bt">&lt;bt&gt; element</a></li><li>11.9&nbsp;&nbsp;&nbsp;<a href="#ext.element.dfn">&lt;dfn&gt; element</a></li><li>11.10&nbsp;&nbsp;&nbsp;<a href="#ext.element.h">&lt;h&gt; element</a></li><li>11.11&nbsp;&nbsp;&nbsp;<a href="#ext.element.highlight">&lt;highlight&gt; element</a></li><li>11.12&nbsp;&nbsp;&nbsp;<a href="#ext.element.length-of">&lt;length-of&gt; element</a></li><li>11.13&nbsp;&nbsp;&nbsp;<a href="#ext.element.link">&lt;link&gt; element</a></li><li>11.14&nbsp;&nbsp;&nbsp;<a href="#ext.element.lt">&lt;lt&gt; element</a></li><li>11.15&nbsp;&nbsp;&nbsp;<a href="#ext.element.note">&lt;note&gt; element</a></li><li>11.16&nbsp;&nbsp;&nbsp;<a href="#ext.element.parse-xml">&lt;parse-xml&gt; element</a></li><li>11.17&nbsp;&nbsp;&nbsp;<a href="#ext.element.prose">&lt;prose&gt; element</a></li><li>11.18&nbsp;&nbsp;&nbsp;<a href="#ext.element.q">&lt;q&gt; element</a></li><li>11.19&nbsp;&nbsp;&nbsp;<a href="#ext.element.ref">&lt;ref&gt; element</a></li><li>11.20&nbsp;&nbsp;&nbsp;<a href="#ext.element.source">&lt;source&gt; element</a></li><li>11.21&nbsp;&nbsp;&nbsp;<a href="#ext.element.sup">&lt;sup&gt; element</a></li><li>11.22&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.artwork">Extensions to Xml2rfc &lt;artwork&gt; element</a></li><li>11.23&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.iref">Extensions to Xml2rfc &lt;iref&gt; element</a></li><li>11.24&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.list">Extensions to Xml2rfc &lt;list&gt; element</a></li><li>11.25&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.rfc">Extensions to Xml2rfc &lt;rfc&gt; element</a></li><li>11.26&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.section">Extensions to Xml2rfc &lt;section&gt; element</a></li><li>11.27&nbsp;&nbsp;&nbsp;<a href="#ext-rfc2629.xref">Extensions to Xml2rfc &lt;xref&gt; element</a></li></ul></li><li>12.&nbsp;&nbsp;&nbsp;<a href="#utilities">Utilities</a><ul><li>12.1&nbsp;&nbsp;&nbsp;<a href="#checking-references">Checking References</a></li><li>12.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.2">Generating Graphs from References</a></li><li>12.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.3">Producing reference entries for books</a></li><li>12.4&nbsp;&nbsp;&nbsp;<a href="#clean-for-dtd">Down-converting to RFC2629bis DTD</a></li><li>12.5&nbsp;&nbsp;&nbsp;<a href="#extract-artwork">Extracting artwork</a></li><li>12.6&nbsp;&nbsp;&nbsp;<a href="#grddl">GRRDL</a></li></ul></li><li>13.&nbsp;&nbsp;&nbsp;<a href="#rfc.references">Informative References</a></li><li><a href="#rfc.authors">Author's Address</a></li><li>A.&nbsp;&nbsp;&nbsp;<a href="#grammar">RELAX NG Compact Schema</a></li><li>B.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.B">Implementation Notes</a><ul><li>B.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.B.1">Recognized type attributes for &lt;artwork&gt; element</a></li></ul></li><li>C.&nbsp;&nbsp;&nbsp;<a href="#examples">Examples</a><ul><li>C.1&nbsp;&nbsp;&nbsp;<a href="#examples.internalsubset">Using the 'Internal Subset'</a></li><li>C.2&nbsp;&nbsp;&nbsp;<a href="#examples.customizing">Customization</a></li></ul></li><li>D.&nbsp;&nbsp;&nbsp;<a href="#boilerplate">Producing the IETF 'Boilerplate'</a><ul><li>D.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr">The /rfc/@ipr Attribute</a><ul><li>D.1.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-current">Current Values: '*trust200902'</a><ul><li>D.1.1.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-trust200902">trust200902</a></li><li>D.1.1.2&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-noModificationTrust200902">noModificationTrust200902</a></li><li>D.1.1.3&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-noDerivativesTrust200902">noDerivativesTrust200902</a></li><li>D.1.1.4&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-pre5378Trust200902">pre5378Trust200902</a></li></ul></li><li>D.1.2&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-historic">Historic Values</a><ul><li>D.1.2.1&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-200811">Historic Values: '*trust200811'</a></li><li>D.1.2.2&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-3978">Historic Values: '*3978'</a></li><li>D.1.2.3&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-3667">Historic Values: '*3667'</a></li><li>D.1.2.4&nbsp;&nbsp;&nbsp;<a href="#attribute-ipr-2026">Historic Values: '*2026'</a></li></ul></li></ul></li><li>D.2&nbsp;&nbsp;&nbsp;<a href="#attribute-category">The /rfc/@category Attribute</a></li><li>D.3&nbsp;&nbsp;&nbsp;<a href="#attribute-submissiontype">The /rfc/@submissionType Attribute</a></li><li>D.4&nbsp;&nbsp;&nbsp;<a href="#attribute-consensus">The /rfc/@consensus Attribute</a></li><li>D.5&nbsp;&nbsp;&nbsp;<a href="#attribute-number">The /rfc/@number Attribute</a></li><li>D.6&nbsp;&nbsp;&nbsp;<a href="#attribute-docname">The /rfc/@docName Attribute</a></li><li>D.7&nbsp;&nbsp;&nbsp;<a href="#attribute-obsoletes">The /rfc/@obsoletes Attribute</a></li><li>D.8&nbsp;&nbsp;&nbsp;<a href="#attribute-updates">The /rfc/@updates Attribute</a></li></ul></li><li>E.&nbsp;&nbsp;&nbsp;<a href="#license">License</a></li><li>F.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F">Change Logs</a><ul><li>F.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.1">Package</a></li><li>F.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.2">amazon-asin.xslt</a></li><li>F.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.3">check-references.xslt</a></li><li>F.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.4">gen-reference-graph.xslt</a></li><li>F.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.5">rfc2629.xslt</a></li><li>F.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.6">rfc2629toFO.xslt</a></li><li>F.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.7">xsl11toAn.xslt</a></li><li>F.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.F.8">xsl11toFop.xslt</a></li><li>F.9&nbsp;&nbsp;&nbsp;<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>&nbsp;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&nbsp;2</a>),</li><li>support for xml2rfc processing instructions (<a href="#processing.instructions" title="Processing Instructions">Section&nbsp;3</a>),</li><li>the names of anchor elements generated in HTML and PDF output (<a href="#anchors" title="Anchors">Section&nbsp;4</a>),</li><li>various XSLT engines that can be used (<a href="#xslt.engines" title="Supported XSLT engines">Section&nbsp;5</a>),</li><li>outputting HTML (<a href="#output.html" title="Transforming to HTML">Section&nbsp;6</a>) and XHTML (<a href="#output.xhtml" title="Transforming to XHTML">Section&nbsp;7</a>),</li><li>outputting CHM (Compiled Microsoft Help, <a href="#output.chm" title="Transforming to CHM (Microsoft Compiled Help)">Section&nbsp;8</a>),</li><li>outputting PDF (<a href="#output.pdf" title="Transforming to PDF">Section&nbsp;9</a>),</li><li>extensions to the xml2rfc vocabulary (<a href="#extensions" title="Generic Extensions">Section&nbsp;11</a>).</li><li>various utilities (<a href="#utilities" title="Utilities">Section&nbsp;12</a>).</li></ul><p id="rfc.section.1.p.2">The full distribution is available at &lt;<a href="http://greenbytes.de/tech/webdav/rfc2629xslt.zip">http://greenbytes.de/tech/webdav/rfc2629xslt.zip</a>&gt;.</p><hr class="noprint"><h1 id="rfc.section.2" class="np"><a href="#rfc.section.2">2.</a>&nbsp;<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.33.</p><h2 id="rfc.section.2.1"><a href="#rfc.section.2.1">2.1</a>&nbsp;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&nbsp;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>&nbsp;<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">&lt;?rfc toc="yes"?&gt;
    380386&lt;?rfc-ext support-rfc2731="no"?&gt;
    381387</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 \
     
    492498 &lt;/reference&gt;
    493499&lt;/references&gt;
    494 </pre><p id="rfc.section.12.3.p.3">Note that the resulting XML usually requires checking, in this case Amazon's database is playing tricks with Marshall's name...</p><h2 id="rfc.section.12.4"><a href="#rfc.section.12.4">12.4</a>&nbsp;<a id="clean-for-dtd" href="#clean-for-dtd">Down-converting to RFC2629bis DTD</a></h2><p id="rfc.section.12.4.p.1"> <samp>clean-for-DTD.xslt</samp> can be used to down-convert some extensions to a format that is supported by the base xml2rfc distribution. Note that these extensions are experimental (feedback appreciated).</p><p id="rfc.section.12.4.p.2">The following mappings are done: </p><ul><li>&lt;iref&gt; elements inside &lt;artwork&gt; elements are moved in front of the enclosing &lt;figure&gt; element.</li><li>&lt;xref&gt; elements inside &lt;artwork&gt; are expanded just like in regular text (that is, the markup is stripped, but the element is replaced by the applicable replacement text).</li><li>&lt;x:<a href="#ext.element.anchor-alias" class="smpl">anchor-alias</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.bcp14" class="smpl">bcp14</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.bb" class="smpl">bb</a>&gt;, &lt;x:<a href="#ext.element.bc" class="smpl">bc</a>&gt; and &lt;x:<a href="#ext.element.bt" class="smpl">bt</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.blockquote" class="smpl">blockquote</a>&gt; elements get converted to indented text (through a &lt;list&gt; element).</li><li>&lt;x:<a href="#ext.element.dfn" class="smpl">dfn</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.h" class="smpl">h</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.link" class="smpl">link</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.note" class="smpl">note</a>&gt; elements get converted to indented text (through a &lt;list&gt; element).</li><li>&lt;x:<a href="#ext.element.q" class="smpl">q</a>&gt; elements get stripped, with apostrophes added around the text.</li><li>&lt;x:<a href="#ext.element.prose" class="smpl">prose</a>&gt; elements are transformed into &lt;seriesInfo&gt; elements (which is an abuse of the element and only a workaround until xml2rfc gets a matching extension).</li><li>&lt;x:<a href="#ext.element.ref" class="smpl">ref</a>&gt; elements get replaced by &lt;xref&gt; elements, targetting either the anchor or another anchor with matching &lt;x:<a href="#ext.element.anchor-alias" class="smpl">anchor-alias</a>&gt; child element.</li></ul><h2 id="rfc.section.12.5"><a href="#rfc.section.12.5">12.5</a>&nbsp;<a id="extract-artwork" href="#extract-artwork">Extracting artwork</a></h2><p id="rfc.section.12.5.p.1">With <samp>extract-artwork.xslt</samp>, artwork elements named through the "name" attribute can be extracted. This can be used to automatically check their syntax (for instance, when ABNFs appear within a figure element).</p><div id="rfc.figure.u.20"></div><p>For instance:</p>  <pre class="text">saxon rfc3986.xml extract-artwork.xslt name=uri.abnf
     500</pre><p id="rfc.section.12.3.p.3">Note that the resulting XML usually requires checking, in this case Amazon's database is playing tricks with Marshall's name...</p><h2 id="rfc.section.12.4"><a href="#rfc.section.12.4">12.4</a>&nbsp;<a id="clean-for-dtd" href="#clean-for-dtd">Down-converting to RFC2629bis DTD</a></h2><p id="rfc.section.12.4.p.1"> <samp>clean-for-DTD.xslt</samp> can be used to down-convert some extensions to a format that is supported by the base xml2rfc distribution. Note that these extensions are experimental (feedback appreciated).</p><p id="rfc.section.12.4.p.2">The following mappings are done: </p><ul><li>&lt;iref&gt; elements inside &lt;artwork&gt; elements are moved in front of the enclosing &lt;figure&gt; element.</li><li>&lt;xref&gt; elements inside &lt;artwork&gt; are expanded just like in regular text (that is, the markup is stripped, but the element is replaced by the applicable replacement text).</li><li>&lt;x:<a href="#ext.element.anchor-alias" class="smpl">anchor-alias</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.bcp14" class="smpl">bcp14</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.bb" class="smpl">bb</a>&gt;, &lt;x:<a href="#ext.element.bc" class="smpl">bc</a>&gt; and &lt;x:<a href="#ext.element.bt" class="smpl">bt</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.blockquote" class="smpl">blockquote</a>&gt; elements get converted to indented text (through a &lt;list&gt; element).</li><li>&lt;x:<a href="#ext.element.dfn" class="smpl">dfn</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.h" class="smpl">h</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.link" class="smpl">link</a>&gt; elements get stripped.</li><li>&lt;x:<a href="#ext.element.lt" class="smpl">lt</a>&gt; elements get collapsed into a single &lt;lt&gt; element with added &lt;vspace&gt; added to simulate paragraph breaks.</li><li>&lt;x:<a href="#ext.element.note" class="smpl">note</a>&gt; elements get converted to indented text (through a &lt;list&gt; element).</li><li>&lt;x:<a href="#ext.element.q" class="smpl">q</a>&gt; elements get stripped, with apostrophes added around the text.</li><li>&lt;x:<a href="#ext.element.prose" class="smpl">prose</a>&gt; elements are transformed into &lt;seriesInfo&gt; elements (which is an abuse of the element and only a workaround until xml2rfc gets a matching extension).</li><li>&lt;x:<a href="#ext.element.ref" class="smpl">ref</a>&gt; elements get replaced by &lt;xref&gt; elements, targetting either the anchor or another anchor with matching &lt;x:<a href="#ext.element.anchor-alias" class="smpl">anchor-alias</a>&gt; child element.</li></ul><h2 id="rfc.section.12.5"><a href="#rfc.section.12.5">12.5</a>&nbsp;<a id="extract-artwork" href="#extract-artwork">Extracting artwork</a></h2><p id="rfc.section.12.5.p.1">With <samp>extract-artwork.xslt</samp>, artwork elements named through the "name" attribute can be extracted. This can be used to automatically check their syntax (for instance, when ABNFs appear within a figure element).</p><div id="rfc.figure.u.20"></div><p>For instance:</p>  <pre class="text">saxon rfc3986.xml extract-artwork.xslt name=uri.abnf
    495501</pre> <p id="rfc.section.12.5.p.3">In addition, artwork of a specific type can be extracted, such as with:</p><div id="rfc.figure.u.21"></div> <pre class="text">saxon rfc3986.xml extract-artwork.xslt type=abnf
    496502</pre> <p id="rfc.section.12.5.p.5">When extracting by type, artwork elements with a specified name can be excluded; this can be handy when the document uses some kind of schema language, and an appendix contains the collected schema, repeating definitions from earlier on. Example:</p><div id="rfc.figure.u.22"></div><pre class="text">saxon rfc3986.xml extract-artwork.xslt type=abnf except-name=clschm
  • rfc2629xslt/rfc2629xslt.txt

    r1103 r1145  
    44RFC2629 through XSLT                                          J. Reschke
    55                                                              greenbytes
    6                                                         January 27, 2011
     6                                                       February 18, 2011
    77
    88
     
    5656
    5757
    58 Documentation             RFC2629 through XSLT              January 2011
     58Documentation             RFC2629 through XSLT             February 2011
    5959
    6060
     
    113113
    114114
    115 Documentation             RFC2629 through XSLT              January 2011
     115Documentation             RFC2629 through XSLT             February 2011
    116116
    117117
     
    170170
    171171
    172 Documentation             RFC2629 through XSLT              January 2011
     172Documentation             RFC2629 through XSLT             February 2011
    173173
    174174
     
    227227
    228228
    229 Documentation             RFC2629 through XSLT              January 2011
     229Documentation             RFC2629 through XSLT             February 2011
    230230
    231231
     
    284284
    285285
    286 Documentation             RFC2629 through XSLT              January 2011
     286Documentation             RFC2629 through XSLT             February 2011
    287287
    288288
     
    341341
    342342
    343 Documentation             RFC2629 through XSLT              January 2011
     343Documentation             RFC2629 through XSLT             February 2011
    344344
    345345
     
    398398
    399399
    400 Documentation             RFC2629 through XSLT              January 2011
     400Documentation             RFC2629 through XSLT             February 2011
    401401
    402402
     
    455455
    456456
    457 Documentation             RFC2629 through XSLT              January 2011
     457Documentation             RFC2629 through XSLT             February 2011
    458458
    459459
     
    512512
    513513
    514 Documentation             RFC2629 through XSLT              January 2011
     514Documentation             RFC2629 through XSLT             February 2011
    515515
    516516
     
    569569
    570570
    571 Documentation             RFC2629 through XSLT              January 2011
     571Documentation             RFC2629 through XSLT             February 2011
    572572
    573573
     
    626626
    627627
    628 Documentation             RFC2629 through XSLT              January 2011
     628Documentation             RFC2629 through XSLT             February 2011
    629629
    630630
     
    683683
    684684
    685 Documentation             RFC2629 through XSLT              January 2011
     685Documentation             RFC2629 through XSLT             February 2011
    686686
    687687
     
    740740
    741741
    742 Documentation             RFC2629 through XSLT              January 2011
     742Documentation             RFC2629 through XSLT             February 2011
    743743
    744744
     
    797797
    798798
    799 Documentation             RFC2629 through XSLT              January 2011
     799Documentation             RFC2629 through XSLT             February 2011
    800800
    801801
     
    854854
    855855
    856 Documentation             RFC2629 through XSLT              January 2011
     856Documentation             RFC2629 through XSLT             February 2011
    857857
    858858
     
    911911
    912912
    913 Documentation             RFC2629 through XSLT              January 2011
     913Documentation             RFC2629 through XSLT             February 2011
    914914
    915915
     
    968968
    969969
    970 Documentation             RFC2629 through XSLT              January 2011
     970Documentation             RFC2629 through XSLT             February 2011
    971971
    972972
     
    10251025
    10261026
    1027 Documentation             RFC2629 through XSLT              January 2011
     1027Documentation             RFC2629 through XSLT             February 2011
    10281028
    10291029
     
    10821082
    10831083
    1084 Documentation             RFC2629 through XSLT              January 2011
     1084Documentation             RFC2629 through XSLT             February 2011
    10851085
    10861086
     
    11391139
    11401140
    1141 Documentation             RFC2629 through XSLT              January 2011
     1141Documentation             RFC2629 through XSLT             February 2011
    11421142
    11431143
     
    11961196
    11971197
    1198 Documentation             RFC2629 through XSLT              January 2011
     1198Documentation             RFC2629 through XSLT             February 2011
    11991199
    12001200
     
    12531253
    12541254
    1255 Documentation             RFC2629 through XSLT              January 2011
     1255Documentation             RFC2629 through XSLT             February 2011
    12561256
    12571257
     
    13101310
    13111311
    1312 Documentation             RFC2629 through XSLT              January 2011
     1312Documentation             RFC2629 through XSLT             February 2011
    13131313
    13141314
     
    13671367
    13681368
    1369 Documentation             RFC2629 through XSLT              January 2011
     1369Documentation             RFC2629 through XSLT             February 2011
    13701370
    13711371
     
    14241424
    14251425
    1426 Documentation             RFC2629 through XSLT              January 2011
     1426Documentation             RFC2629 through XSLT             February 2011
    14271427
    14281428
     
    14811481
    14821482
    1483 Documentation             RFC2629 through XSLT              January 2011
     1483Documentation             RFC2629 through XSLT             February 2011
    14841484
    14851485
     
    15381538
    15391539
    1540 Documentation             RFC2629 through XSLT              January 2011
     1540Documentation             RFC2629 through XSLT             February 2011
    15411541
    15421542
     
    15951595
    15961596
    1597 Documentation             RFC2629 through XSLT              January 2011
     1597Documentation             RFC2629 through XSLT             February 2011
    15981598
    15991599
     
    16521652
    16531653
    1654 Documentation             RFC2629 through XSLT              January 2011
     1654Documentation             RFC2629 through XSLT             February 2011
    16551655
    16561656
     
    17091709
    17101710
    1711 Documentation             RFC2629 through XSLT              January 2011
     1711Documentation             RFC2629 through XSLT             February 2011
    17121712
    17131713
     
    17661766
    17671767
    1768 Documentation             RFC2629 through XSLT              January 2011
     1768Documentation             RFC2629 through XSLT             February 2011
    17691769
    17701770
     
    18231823
    18241824
    1825 Documentation             RFC2629 through XSLT              January 2011
     1825Documentation             RFC2629 through XSLT             February 2011
    18261826
    18271827
     
    18801880
    18811881
    1882 Documentation             RFC2629 through XSLT              January 2011
     1882Documentation             RFC2629 through XSLT             February 2011
    18831883
    18841884
     
    19161916   o  <x:link> elements get stripped.
    19171917
     1918   o  <x:lt> elements get collapsed into a single <lt> element with
     1919      added <vspace> added to simulate paragraph breaks.
     1920
    19181921   o  <x:note> elements get converted to indented text (through a <list>
    19191922      element).
     
    19281931   o  <x:ref> elements get replaced by <xref> elements, targetting
    19291932      either the anchor or another anchor with matching <x:anchor-alias>
     1933
     1934
     1935
     1936Reschke                                                        [Page 34]
     1937
     1938
     1939Documentation             RFC2629 through XSLT             February 2011
     1940
     1941
    19301942      child element.
    1931 
    1932 
    1933 
    1934 
    1935 
    1936 Reschke                                                        [Page 34]
    1937 
    1938 
    1939 Documentation             RFC2629 through XSLT              January 2011
    1940 
    19411943
    1942194412.5.  Extracting artwork
     
    19891991
    19901992
    1991 
    1992 
    19931993Reschke                                                        [Page 35]
    19941994
    19951995
    1996 Documentation             RFC2629 through XSLT              January 2011
     1996Documentation             RFC2629 through XSLT             February 2011
    19971997
    19981998
     
    20512051
    20522052
    2053 Documentation             RFC2629 through XSLT              January 2011
     2053Documentation             RFC2629 through XSLT             February 2011
    20542054
    20552055
     
    21082108
    21092109
    2110 Documentation             RFC2629 through XSLT              January 2011
     2110Documentation             RFC2629 through XSLT             February 2011
    21112111
    21122112
     
    21652165
    21662166
    2167 Documentation             RFC2629 through XSLT              January 2011
     2167Documentation             RFC2629 through XSLT             February 2011
    21682168
    21692169
     
    22222222
    22232223
    2224 Documentation             RFC2629 through XSLT              January 2011
     2224Documentation             RFC2629 through XSLT             February 2011
    22252225
    22262226
     
    22792279
    22802280
    2281 Documentation             RFC2629 through XSLT              January 2011
     2281Documentation             RFC2629 through XSLT             February 2011
    22822282
    22832283
     
    23362336
    23372337
    2338 Documentation             RFC2629 through XSLT              January 2011
     2338Documentation             RFC2629 through XSLT             February 2011
    23392339
    23402340
     
    23932393
    23942394
    2395 Documentation             RFC2629 through XSLT              January 2011
     2395Documentation             RFC2629 through XSLT             February 2011
    23962396
    23972397
     
    24502450
    24512451
    2452 Documentation             RFC2629 through XSLT              January 2011
     2452Documentation             RFC2629 through XSLT             February 2011
    24532453
    24542454
     
    25072507
    25082508
    2509 Documentation             RFC2629 through XSLT              January 2011
     2509Documentation             RFC2629 through XSLT             February 2011
    25102510
    25112511
     
    25642564
    25652565
    2566 Documentation             RFC2629 through XSLT              January 2011
     2566Documentation             RFC2629 through XSLT             February 2011
    25672567
    25682568
     
    26212621
    26222622
    2623 Documentation             RFC2629 through XSLT              January 2011
     2623Documentation             RFC2629 through XSLT             February 2011
    26242624
    26252625
     
    26782678
    26792679
    2680 Documentation             RFC2629 through XSLT              January 2011
     2680Documentation             RFC2629 through XSLT             February 2011
    26812681
    26822682
     
    27352735
    27362736
    2737 Documentation             RFC2629 through XSLT              January 2011
     2737Documentation             RFC2629 through XSLT             February 2011
    27382738
    27392739
     
    27922792
    27932793
    2794 Documentation             RFC2629 through XSLT              January 2011
     2794Documentation             RFC2629 through XSLT             February 2011
    27952795
    27962796
     
    28492849
    28502850
    2851 Documentation             RFC2629 through XSLT              January 2011
     2851Documentation             RFC2629 through XSLT             February 2011
    28522852
    28532853
     
    29062906
    29072907
    2908 Documentation             RFC2629 through XSLT              January 2011
     2908Documentation             RFC2629 through XSLT             February 2011
    29092909
    29102910
     
    29632963
    29642964
    2965 Documentation             RFC2629 through XSLT              January 2011
     2965Documentation             RFC2629 through XSLT             February 2011
    29662966
    29672967
     
    30203020
    30213021
    3022 Documentation             RFC2629 through XSLT              January 2011
     3022Documentation             RFC2629 through XSLT             February 2011
    30233023
    30243024
     
    30773077
    30783078
    3079 Documentation             RFC2629 through XSLT              January 2011
     3079Documentation             RFC2629 through XSLT             February 2011
    30803080
    30813081
     
    31343134
    31353135
    3136 Documentation             RFC2629 through XSLT              January 2011
     3136Documentation             RFC2629 through XSLT             February 2011
    31373137
    31383138
     
    31913191
    31923192
    3193 Documentation             RFC2629 through XSLT              January 2011
     3193Documentation             RFC2629 through XSLT             February 2011
    31943194
    31953195
     
    32483248
    32493249
    3250 Documentation             RFC2629 through XSLT              January 2011
     3250Documentation             RFC2629 through XSLT             February 2011
    32513251
    32523252
     
    33053305
    33063306
    3307 Documentation             RFC2629 through XSLT              January 2011
     3307Documentation             RFC2629 through XSLT             February 2011
    33083308
    33093309
     
    33623362
    33633363
    3364 Documentation             RFC2629 through XSLT              January 2011
     3364Documentation             RFC2629 through XSLT             February 2011
    33653365
    33663366
     
    34193419
    34203420
    3421 Documentation             RFC2629 through XSLT              January 2011
     3421Documentation             RFC2629 through XSLT             February 2011
    34223422
    34233423
     
    34763476
    34773477
    3478 Documentation             RFC2629 through XSLT              January 2011
     3478Documentation             RFC2629 through XSLT             February 2011
    34793479
    34803480
     
    35333533
    35343534
    3535 Documentation             RFC2629 through XSLT              January 2011
     3535Documentation             RFC2629 through XSLT             February 2011
    35363536
    35373537
     
    35903590
    35913591
    3592 Documentation             RFC2629 through XSLT              January 2011
     3592Documentation             RFC2629 through XSLT             February 2011
    35933593
    35943594
     
    36473647
    36483648
    3649 Documentation             RFC2629 through XSLT              January 2011
     3649Documentation             RFC2629 through XSLT             February 2011
    36503650
    36513651
     
    37043704
    37053705
    3706 Documentation             RFC2629 through XSLT              January 2011
     3706Documentation             RFC2629 through XSLT             February 2011
    37073707
    37083708
     
    37613761
    37623762
    3763 Documentation             RFC2629 through XSLT              January 2011
     3763Documentation             RFC2629 through XSLT             February 2011
    37643764
    37653765
     
    38183818
    38193819
    3820 Documentation             RFC2629 through XSLT              January 2011
     3820Documentation             RFC2629 through XSLT             February 2011
    38213821
    38223822
     
    38753875
    38763876
    3877 Documentation             RFC2629 through XSLT              January 2011
     3877Documentation             RFC2629 through XSLT             February 2011
    38783878
    38793879
     
    39323932
    39333933
    3934 Documentation             RFC2629 through XSLT              January 2011
     3934Documentation             RFC2629 through XSLT             February 2011
    39353935
    39363936
     
    39893989
    39903990
    3991 Documentation             RFC2629 through XSLT              January 2011
     3991Documentation             RFC2629 through XSLT             February 2011
    39923992
    39933993
     
    40464046
    40474047
    4048 Documentation             RFC2629 through XSLT              January 2011
     4048Documentation             RFC2629 through XSLT             February 2011
    40494049
    40504050
     
    41034103
    41044104
    4105 Documentation             RFC2629 through XSLT              January 2011
     4105Documentation             RFC2629 through XSLT             February 2011
    41064106
    41074107
     
    41604160
    41614161
    4162 Documentation             RFC2629 through XSLT              January 2011
     4162Documentation             RFC2629 through XSLT             February 2011
    41634163
    41644164
     
    42174217
    42184218
    4219 Documentation             RFC2629 through XSLT              January 2011
     4219Documentation             RFC2629 through XSLT             February 2011
    42204220
    42214221
     
    42744274
    42754275
    4276 Documentation             RFC2629 through XSLT              January 2011
     4276Documentation             RFC2629 through XSLT             February 2011
    42774277
    42784278
     
    43314331
    43324332
    4333 Documentation             RFC2629 through XSLT              January 2011
     4333Documentation             RFC2629 through XSLT             February 2011
    43344334
    43354335
     
    43884388
    43894389
    4390 Documentation             RFC2629 through XSLT              January 2011
     4390Documentation             RFC2629 through XSLT             February 2011
    43914391
    43924392
     
    44454445
    44464446
    4447 Documentation             RFC2629 through XSLT              January 2011
     4447Documentation             RFC2629 through XSLT             February 2011
    44484448
    44494449
     
    45024502
    45034503
    4504 Documentation             RFC2629 through XSLT              January 2011
     4504Documentation             RFC2629 through XSLT             February 2011
    45054505
    45064506
     
    45594559
    45604560
    4561 Documentation             RFC2629 through XSLT              January 2011
     4561Documentation             RFC2629 through XSLT             February 2011
    45624562
    45634563
  • rfc2629xslt/rfc2629xslt.xml

    r1103 r1145  
    3030        </author>
    3131     
    32     <date month="January" year="2011"/>
     32    <date month="February" year="2011"/>
    3333
    3434    <keyword>RFC2629</keyword>
     
    13581358    <t>
    13591359      &lt;x:<x:ref>link</x:ref>> elements get stripped.
     1360    </t>
     1361    <t>
     1362      &lt;x:<x:ref>lt</x:ref>> elements get collapsed into a single &lt;lt>
     1363      element with added &lt;vspace> added to simulate paragraph breaks.
    13601364    </t>
    13611365    <t>
  • rfc2629xslt/samples/rfc2629.xslt

    r1103 r1145  
    744744    <xsl:otherwise>
    745745      <xsl:variable name="start" select="substring-before($content,'&#10;')"/>
    746       <xsl:variable name="end" select="substring-after($content,'&#10;')"/>
    747       <xsl:if test="string-length($start) > 69 + $indent">
     746      <xsl:variable name="end" select="substring-after($content,'&#10;')"/>
     747      <xsl:variable name="max">
     748        <xsl:choose>
     749          <xsl:when test="$indent!=''"><xsl:value-of select="69 + $indent"/></xsl:when>
     750          <xsl:otherwise>69</xsl:otherwise>
     751        </xsl:choose>         
     752      </xsl:variable>
     753      <xsl:if test="string-length($start) > $max">
    748754        <xsl:call-template name="warning">
    749755          <xsl:with-param name="inline" select="'no'"/>
     
    11581164  <xsl:apply-templates select="x:boilerplate"/>
    11591165  <xsl:apply-templates select="abstract" />
    1160   <xsl:apply-templates select="note" />
     1166 
     1167  <!-- Notes except IESG Notes -->
     1168  <xsl:apply-templates select="note[@title!='IESG Note' or $xml2rfc-private!='']" />
    11611169  <!-- show notes inside change tracking as well -->
    1162   <xsl:apply-templates select="ed:replace[.//note]" />
     1170  <xsl:apply-templates select="ed:replace[.//note[@title!='IESG Note' or $xml2rfc-private!='']]" />
    11631171   
    11641172  <xsl:if test="$xml2rfc-private='' and $abstract-first">
     
    12651273<!-- numbered list inside numbered list -->
    12661274<xsl:template match="list[@style='numbers']/t/list[@style='numbers']" priority="9">
    1267   <ol style="list-style-type: lower-alpha">
     1275  <ol class="la">
    12681276    <xsl:call-template name="insertInsDelClass"/>
    12691277    <xsl:apply-templates />
     
    12721280
    12731281<xsl:template match="list[@style='letters']">
    1274   <ol style="list-style-type: lower-alpha">
     1282  <ol class="la">
    12751283    <xsl:call-template name="insertInsDelClass"/>
    12761284    <xsl:apply-templates />
     
    12801288<!-- nested lettered list uses uppercase -->
    12811289<xsl:template match="list//t//list[@style='letters']" priority="9">
    1282   <ol style="list-style-type: upper-alpha">
     1290  <ol class="ua">
    12831291    <xsl:call-template name="insertInsDelClass"/>
    12841292    <xsl:apply-templates />
     
    32883296  margin-right: 2em;
    32893297}
     3298ol.la {
     3299  list-style-type: lower-alpha;
     3300}
     3301ol.ua {
     3302  list-style-type: upper-alpha;
     3303}
    32903304ol p {
    32913305  margin-left: 0em;
     
    44394453  </section>
    44404454 
     4455  <!-- IESG Note goes here; see http://www.rfc-editor.org/rfc-style-guide/rfc-style -->
     4456  <xsl:copy-of select="/rfc/front/note[@title='IESG Note']"/>
     4457 
    44414458  <xsl:choose>
    44424459    <xsl:when test="$ipr-2008-11">
     
    62246241    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    62256242    <!-- when RCS keyword substitution in place, add version info -->
    6226     <xsl:if test="contains('$Revision: 1.540 $',':')">
    6227       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.540 $', 'Revision: '),'$','')),', ')" />
     6243    <xsl:if test="contains('$Revision: 1.543 $',':')">
     6244      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.543 $', 'Revision: '),'$','')),', ')" />
    62286245    </xsl:if>
    6229     <xsl:if test="contains('$Date: 2011-01-10 09:27:20 $',':')">
    6230       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-01-10 09:27:20 $', 'Date: '),'$','')),', ')" />
     6246    <xsl:if test="contains('$Date: 2011-02-18 21:03:40 $',':')">
     6247      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-02-18 21:03:40 $', 'Date: '),'$','')),', ')" />
    62316248    </xsl:if>
    62326249    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" />
  • rfc2629xslt/samples/sample.ipr.id.noDerivativesTrust200902.200909.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.noModification3978.200606.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.noModificationTrust200902.200909.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.pre5378Trust200902.200909.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.pre5378Trust200902.200912.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.pre5378Trust200902.201011.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.trust200902.200909.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.trust200902.200911.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.trust200902.201006.iab.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.trust200902.201006.ietf.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.trust200902.201006.ind.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.trust200902.201006.irtf.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.id.trust200902.201006.test.xhtml

    r1103 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200201.iprnotified.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200201.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200609.ind.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200609.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
     
    332338      </h1>
    333339      <p>This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited.</p>
     340      <h1 id="rfc.note.1">
     341         <a href="#rfc.note.1">IESG Note</a>
     342      </h1>
     343      <p>This should appear after "Status of this Memo".</p>
    334344      <h1>
    335345         <a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a>
  • rfc2629xslt/samples/sample.ipr.rfc.200609.txt

    r799 r1145  
    2424   issued by the RFC-Editor).
    2525
     26IESG Note
     27
     28   This should appear after "Status of this Memo".
     29
    2630
    27311.  Dummy Section
     
    3337
    3438   John Doe
    35 
    36 
    37 
    38 
    3939
    4040
  • rfc2629xslt/samples/sample.ipr.rfc.200609.xml

    r799 r1145  
    1414      </t>
    1515    </abstract>
     16    <note title="IESG Note">
     17      <t>
     18        This should appear after "Status of this Memo".
     19      </t>
     20    </note>
    1621  </front>
    1722  <middle>
  • rfc2629xslt/samples/sample.ipr.rfc.200808.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200812.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200906.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200907.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200909.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.200912.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
     
    336342      </h1>
    337343      <p>This memo provides information for the Internet community. It does not specify an Internet standard of any kind. Distribution of this memo is unlimited.</p>
     344      <h1 id="rfc.note.1">
     345         <a href="#rfc.note.1">IESG Note</a>
     346      </h1>
     347      <p>This should appear after "Status of this Memo".</p>
    338348      <h1>
    339349         <a id="rfc.copyrightnotice" href="#rfc.copyrightnotice">Copyright Notice</a>
  • rfc2629xslt/samples/sample.ipr.rfc.200912.txt

    r799 r1145  
    1212
    1313   Dummy Abstract.
     14
     15IESG Note
     16
     17   This should appear after "Status of this Memo".
    1418
    1519Status of this Memo
     
    4953
    5054
    51 
    52 
    53 
    54 
    5555Doe                           Informational                     [Page 1]
    5656
  • rfc2629xslt/samples/sample.ipr.rfc.200912.xml

    r799 r1145  
    1313      </t>
    1414    </abstract>
     15    <note title="IESG Note">
     16      <t>
     17        This should appear after "Status of this Memo".
     18      </t>
     19    </note>
    1520  </front>
    1621  <middle>
  • rfc2629xslt/samples/sample.ipr.rfc.201001.iab.exp.test.xhtml

    r1095 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.iab.hist.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.iab.inf.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.bcp.c.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.exp.c.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.exp.nc.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.hist.c.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.hist.nc.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.inf.c.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.inf.nc.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ietf.std.c.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ind.exp.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ind.hist.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.ind.inf.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.exp.c.test.xhtml

    r1095 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.exp.nc.test.xhtml

    r1095 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.exp.norg.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.hist.c.test.xhtml

    r1095 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.hist.nc.test.xhtml

    r1095 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.hist.norg.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.inf.c.test.xhtml

    r1095 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.inf.nc.test.xhtml

    r1095 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.201001.irtf.inf.norg.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/samples/sample.ipr.rfc.pre5378Trust200902.200912.test.xhtml

    r1072 r1145  
    8484  margin-left: 2em;
    8585  margin-right: 2em;
     86}
     87ol.la {
     88  list-style-type: lower-alpha;
     89}
     90ol.ua {
     91  list-style-type: upper-alpha;
    8692}
    8793ol p {
  • rfc2629xslt/testcase.html

    r1103 r1145  
    8989  margin-left: 2em;
    9090  margin-right: 2em;
     91}
     92ol.la {
     93  list-style-type: lower-alpha;
     94}
     95ol.ua {
     96  list-style-type: upper-alpha;
    9197}
    9298ol p {
     
    390396    }
    391397}
    392 </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.540, 2011-01-10 09:27:20, 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.&nbsp;&nbsp;&nbsp;<a href="#lists">Lists</a><ul><li>1.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.1">hanging list</a></li><li>1.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.2">numbered list</a></li><li>1.3&nbsp;&nbsp;&nbsp;<a href="#ordered.list.letters">ordered list (letters)</a></li><li>1.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.4">no explicit counters</a></li><li>1.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.5">with explicit counters</a></li><li>1.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.6">Nested list</a></li><li>1.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.7">list without style</a></li><li>1.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.8">list with multiple paragraphs in a single list item</a></li></ul></li><li>2.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.2">spanx</a></li><li>3.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3">Tables</a><ul><li>3.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.1">no borders</a></li><li>3.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.2">borders around headers</a></li><li>3.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.3">example from xml2rc README</a></li><li>3.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.4">no column titles</a></li><li>3.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.5">referencing tables</a></li><li>3.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.6">table captions</a></li><li>3.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.7">single column</a></li><li>3.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.8">table alignment</a></li></ul></li><li>4.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4">Figures</a><ul><li>4.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.1">with preamble, no title...</a></li><li>4.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.2">with postamble and title...</a></li><li>4.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.3">Whitespace handling</a></li><li>4.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.4">Whitespace around figures</a></li><li>4.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.5">SVG</a></li><li>4.6&nbsp;&nbsp;&nbsp;<a href="#code.components">Code Components</a></li></ul></li><li>5.&nbsp;&nbsp;&nbsp;<a href="#refs">References</a><ul><li>5.1&nbsp;&nbsp;&nbsp;<a href="#xref.with.no.content">xref with no content</a></li><li>5.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.2">xref to named &lt;t&gt; element</a></li><li>5.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.3">xref to named &lt;spanx&gt; element</a></li><li>5.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.4">xref to named &lt;t&gt; element inside list</a></li><li>5.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.5">xref to named &lt;cref&gt; element</a></li><li>5.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.6">xref to named &lt;t&gt; element inside list</a></li><li>5.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.7">xref with no auto-formatting</a></li><li>5.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.8">xref with content and auto-formatting</a></li><li>5.9&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.9">xref with content and no formatting</a></li><li>5.10&nbsp;&nbsp;&nbsp;<a href="#formatting.none">xref with content and 'none' formatting</a></li><li>5.11&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.11">xref with no content and anchor formatting</a></li><li>5.12&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.12">eref with no content</a></li><li>5.13&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.13">eref with content</a></li><li>5.14&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.14">iref inside paragraph</a></li></ul></li><li>6.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.6">Paragraph formatting</a></li><li>7.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.7">Sections</a><ul><li>7.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.7.1">Subsection with TOC entry</a></li><li class="excluded"><ul><li>7.2.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.7.2.1">Sub-subsection with TOC entry</a></li></ul></li></ul></li><li>8.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.8">Comments</a></li><li>9.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.9">Artwork Width</a></li><li>10.&nbsp;&nbsp;&nbsp;<a href="#extensions">Extensions</a><ul><li>10.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.1">Markup in figure/artwork</a></li><li>10.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.2">Measuring Lengths</a></li><li>10.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.3">Quotations</a></li><li>10.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.4">Subsections</a></li><li>10.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.5">Box Drawing</a></li><li>10.6&nbsp;&nbsp;&nbsp;<a href="#computed.reference.targets">Computed Reference Targets</a></li><li>10.7&nbsp;&nbsp;&nbsp;<a href="#abnf.support">ABNF Support</a></li></ul></li><li>11.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.11">Blank Lines</a></li><li>12.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12">Other</a><ul><li>12.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.1">Comments in Text</a></li><li>12.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.2">Special Characters</a><ul><li>12.2.1&nbsp;&nbsp;&nbsp;<a href="#nbsp">Non-Breaking Space</a></li><li>12.2.2&nbsp;&nbsp;&nbsp;<a href="#nbhy">Non-Breaking Hyphen</a></li><li>12.2.3&nbsp;&nbsp;&nbsp;<a href="#dashes">Dashes</a></li></ul></li></ul></li><li>13.&nbsp;&nbsp;&nbsp;<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>&nbsp;<a id="lists" href="#lists">Lists</a></h1><h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a>&nbsp;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>&nbsp;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>&nbsp;<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 style="list-style-type: lower-alpha"><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>&nbsp;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>&nbsp;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>&nbsp;Nested list</h2><p id="rfc.section.1.6.p.1"> </p><ol><li>One</li><li>Two <ol style="list-style-type: upper-alpha"><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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;referencing tables</h2><p id="rfc.section.3.5.p.1"> <a href="#tablenoborder">Table&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;Figures</h1><h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a>&nbsp;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.543, 2011-02-18 21:03:40, 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.&nbsp;&nbsp;&nbsp;<a href="#lists">Lists</a><ul><li>1.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.1">hanging list</a></li><li>1.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.2">numbered list</a></li><li>1.3&nbsp;&nbsp;&nbsp;<a href="#ordered.list.letters">ordered list (letters)</a></li><li>1.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.4">no explicit counters</a></li><li>1.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.5">with explicit counters</a></li><li>1.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.6">Nested list</a></li><li>1.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.7">list without style</a></li><li>1.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.1.8">list with multiple paragraphs in a single list item</a></li></ul></li><li>2.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.2">spanx</a></li><li>3.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3">Tables</a><ul><li>3.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.1">no borders</a></li><li>3.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.2">borders around headers</a></li><li>3.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.3">example from xml2rc README</a></li><li>3.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.4">no column titles</a></li><li>3.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.5">referencing tables</a></li><li>3.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.6">table captions</a></li><li>3.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.7">single column</a></li><li>3.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.3.8">table alignment</a></li></ul></li><li>4.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4">Figures</a><ul><li>4.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.1">with preamble, no title...</a></li><li>4.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.2">with postamble and title...</a></li><li>4.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.3">Whitespace handling</a></li><li>4.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.4">Whitespace around figures</a></li><li>4.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.4.5">SVG</a></li><li>4.6&nbsp;&nbsp;&nbsp;<a href="#code.components">Code Components</a></li></ul></li><li>5.&nbsp;&nbsp;&nbsp;<a href="#refs">References</a><ul><li>5.1&nbsp;&nbsp;&nbsp;<a href="#xref.with.no.content">xref with no content</a></li><li>5.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.2">xref to named &lt;t&gt; element</a></li><li>5.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.3">xref to named &lt;spanx&gt; element</a></li><li>5.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.4">xref to named &lt;t&gt; element inside list</a></li><li>5.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.5">xref to named &lt;cref&gt; element</a></li><li>5.6&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.6">xref to named &lt;t&gt; element inside list</a></li><li>5.7&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.7">xref with no auto-formatting</a></li><li>5.8&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.8">xref with content and auto-formatting</a></li><li>5.9&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.9">xref with content and no formatting</a></li><li>5.10&nbsp;&nbsp;&nbsp;<a href="#formatting.none">xref with content and 'none' formatting</a></li><li>5.11&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.11">xref with no content and anchor formatting</a></li><li>5.12&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.12">eref with no content</a></li><li>5.13&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.13">eref with content</a></li><li>5.14&nbsp;&nbsp;&nbsp;<a href="#rfc.section.5.14">iref inside paragraph</a></li></ul></li><li>6.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.6">Paragraph formatting</a></li><li>7.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.7">Sections</a><ul><li>7.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.7.1">Subsection with TOC entry</a></li><li class="excluded"><ul><li>7.2.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.7.2.1">Sub-subsection with TOC entry</a></li></ul></li></ul></li><li>8.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.8">Comments</a></li><li>9.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.9">Artwork Width</a></li><li>10.&nbsp;&nbsp;&nbsp;<a href="#extensions">Extensions</a><ul><li>10.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.1">Markup in figure/artwork</a></li><li>10.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.2">Measuring Lengths</a></li><li>10.3&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.3">Quotations</a></li><li>10.4&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.4">Subsections</a></li><li>10.5&nbsp;&nbsp;&nbsp;<a href="#rfc.section.10.5">Box Drawing</a></li><li>10.6&nbsp;&nbsp;&nbsp;<a href="#computed.reference.targets">Computed Reference Targets</a></li><li>10.7&nbsp;&nbsp;&nbsp;<a href="#abnf.support">ABNF Support</a></li></ul></li><li>11.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.11">Blank Lines</a></li><li>12.&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12">Other</a><ul><li>12.1&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.1">Comments in Text</a></li><li>12.2&nbsp;&nbsp;&nbsp;<a href="#rfc.section.12.2">Special Characters</a><ul><li>12.2.1&nbsp;&nbsp;&nbsp;<a href="#nbsp">Non-Breaking Space</a></li><li>12.2.2&nbsp;&nbsp;&nbsp;<a href="#nbhy">Non-Breaking Hyphen</a></li><li>12.2.3&nbsp;&nbsp;&nbsp;<a href="#dashes">Dashes</a></li></ul></li></ul></li><li>13.&nbsp;&nbsp;&nbsp;<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>&nbsp;<a id="lists" href="#lists">Lists</a></h1><h2 id="rfc.section.1.1"><a href="#rfc.section.1.1">1.1</a>&nbsp;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>&nbsp;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>&nbsp;<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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;referencing tables</h2><p id="rfc.section.3.5.p.1"> <a href="#tablenoborder">Table&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;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>&nbsp;Figures</h1><h2 id="rfc.section.4.1"><a href="#rfc.section.4.1">4.1</a>&nbsp;with preamble, no title...</h2><div id="rfc.figure.u.1"></div> <p>with preamble, no title...</p>  <pre>  +--+
    393399  |  |
    394400  +--+
Note: See TracChangeset for help on using the changeset viewer.