Changeset 291


Ignore:
Timestamp:
Jul 19, 2008, 5:47:15 AM (11 years ago)
Author:
julian.reschke@…
Message:

markup Mime-Version as header (affects IANA table), fix table consistency check (related to #40)

Location:
draft-ietf-httpbis/latest
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/extract-header-defs.xslt

    r290 r291  
    2929  <xsl:text>&#10;</xsl:text>
    3030 
    31     <!-- check against current version -->
     31  <!-- check against current version -->
    3232  <xsl:variable name="oldtable" select="//texttable[@anchor='iana.header.registration.table']" />
    3333
    34   <xsl:if test="string($table//ttcol | $table//c) != string($oldtable//ttcol | $oldtable//c)">
    35     <xsl:message>WARNING: table contained inside source document needs to be updated!</xsl:message>
     34  <xsl:variable name="s">
     35    <xsl:apply-templates select="$table//texttable" mode="tostring"/>
     36  </xsl:variable>
     37 
     38  <xsl:variable name="s1">
     39    <xsl:apply-templates select="$oldtable" mode="tostring"/>
     40  </xsl:variable>
     41
     42  <xsl:if test="$s != $s1">
     43    <xsl:message>WARNING: table contained inside source document needs to be updated</xsl:message>
     44    <xsl:message><xsl:value-of select="$s"/></xsl:message>
     45    <xsl:message><xsl:value-of select="$s1"/></xsl:message>
    3646  </xsl:if>
    3747
    3848</xsl:template>
     49
     50<xsl:template match="*" mode="tostring">
     51  <xsl:text>&lt;</xsl:text>
     52  <xsl:value-of select="name()"/>
     53  <xsl:for-each select="@*">
     54    <xsl:sort select="name()"/>
     55    <xsl:text> </xsl:text>
     56    <xsl:value-of select="name()"/>
     57    <xsl:text>=</xsl:text>
     58    <xsl:value-of select="."/>
     59  </xsl:for-each>
     60  <xsl:text>&gt;</xsl:text>
     61 
     62  <xsl:apply-templates select="node()" mode="tostring"/>
     63 
     64  <xsl:text>&lt;/</xsl:text>
     65  <xsl:value-of select="name()"/>
     66  <xsl:text>&gt;</xsl:text>
     67
     68</xsl:template>
     69
     70<xsl:template match="text()" mode="tostring">
     71  <xsl:value-of select="."/>
     72</xsl:template>
     73
     74<xsl:template match="texttable/text()" mode="tostring"/>
     75<xsl:template match="texttable/c[xref]/text()" mode="tostring"/>
    3976
    4077<xsl:template match="section">
     
    4582    <xsl:choose>
    4683      <xsl:when test="ancestor::middle">standard</xsl:when>
    47       <xsl:otherwise>&#160;</xsl:otherwise>
     84      <xsl:otherwise></xsl:otherwise>
    4885    </xsl:choose>
    4986  </c>
  • draft-ietf-httpbis/latest/p3-payload.html

    r290 r291  
    12831283                  <td>Content-Disposition</td>
    12841284                  <td>http</td>
    1285                   <td>&nbsp;</td>
     1285                  <td></td>
    12861286                  <td> <a href="#content-disposition" id="rfc.xref.content-disposition.1" title="Content-Disposition">Appendix&nbsp;B.1</a>
    12871287                  </td>
     
    13221322                  </td>
    13231323               </tr>
     1324               <tr>
     1325                  <td>MIME-Version</td>
     1326                  <td>http</td>
     1327                  <td></td>
     1328                  <td> <a href="#mime-version" id="rfc.xref.mime-version.1" title="MIME-Version">Appendix&nbsp;A.1</a>
     1329                  </td>
     1330               </tr>
    13241331            </tbody>
    13251332         </table>
     
    15351542         to HTTP also need to be aware of the differences because some conversions might be required.
    15361543      </p>
     1544      <div id="rfc.iref.m.1"></div>
     1545      <div id="rfc.iref.h.10"></div>
    15371546      <h2 id="rfc.section.A.1"><a href="#rfc.section.A.1">A.1</a>&nbsp;<a id="mime-version" href="#mime-version">MIME-Version</a></h2>
    15381547      <p id="rfc.section.A.1.p.1">HTTP is not a MIME-compliant protocol. However, HTTP/1.1 messages <em class="bcp14">MAY</em> include a single MIME-Version general-header field to indicate what version of the MIME protocol was used to construct the
     
    15881597      <p id="rfc.section.B.p.2">A number of other headers, such as Content-Disposition and Title, from SMTP and MIME are also often implemented (see <a href="#RFC2076" id="rfc.xref.RFC2076.1"><cite title="Common Internet Message Headers">[RFC2076]</cite></a>).
    15891598      </p>
    1590       <div id="rfc.iref.h.10"></div>
     1599      <div id="rfc.iref.h.11"></div>
    15911600      <div id="rfc.iref.c.7"></div>
    15921601      <h2 id="rfc.section.B.1"><a href="#rfc.section.B.1">B.1</a>&nbsp;<a id="content-disposition" href="#content-disposition">Content-Disposition</a></h2>
     
    16271636      <p id="rfc.section.C.1.p.5">Quality Values of zero should indicate that "I don't want something" to allow clients to refuse a representation. (<a href="#quality.values" title="Quality Values">Section&nbsp;3.4</a>)
    16281637      </p>
    1629       <p id="rfc.section.C.1.p.6">The Alternates<span id="rfc.iref.a.5"></span><span id="rfc.iref.h.11"></span>, Content-Version<span id="rfc.iref.c.8"></span><span id="rfc.iref.h.12"></span>, Derived-From<span id="rfc.iref.d.2"></span><span id="rfc.iref.h.13"></span>, Link<span id="rfc.iref.l.1"></span><span id="rfc.iref.h.14"></span>, URI<span id="rfc.iref.u.1"></span><span id="rfc.iref.h.15"></span>, Public<span id="rfc.iref.p.1"></span><span id="rfc.iref.h.16"></span> and Content-Base<span id="rfc.iref.c.9"></span><span id="rfc.iref.h.17"></span> header fields were defined in previous versions of this specification, but not commonly implemented. See <a href="http://tools.ietf.org/html/rfc2068#section-19.6.2">Section 19.6.2</a> of <a href="#RFC2068" id="rfc.xref.RFC2068.5"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2068]</cite></a>.
     1638      <p id="rfc.section.C.1.p.6">The Alternates<span id="rfc.iref.a.5"></span><span id="rfc.iref.h.12"></span>, Content-Version<span id="rfc.iref.c.8"></span><span id="rfc.iref.h.13"></span>, Derived-From<span id="rfc.iref.d.2"></span><span id="rfc.iref.h.14"></span>, Link<span id="rfc.iref.l.1"></span><span id="rfc.iref.h.15"></span>, URI<span id="rfc.iref.u.1"></span><span id="rfc.iref.h.16"></span>, Public<span id="rfc.iref.p.1"></span><span id="rfc.iref.h.17"></span> and Content-Base<span id="rfc.iref.c.9"></span><span id="rfc.iref.h.18"></span> header fields were defined in previous versions of this specification, but not commonly implemented. See <a href="http://tools.ietf.org/html/rfc2068#section-19.6.2">Section 19.6.2</a> of <a href="#RFC2068" id="rfc.xref.RFC2068.5"><cite title="Hypertext Transfer Protocol -- HTTP/1.1">[RFC2068]</cite></a>.
    16301639      </p>
    16311640      <h2 id="rfc.section.C.2"><a href="#rfc.section.C.2">C.2</a>&nbsp;<a id="changes.from.rfc.2616" href="#changes.from.rfc.2616">Changes from RFC 2616</a></h2>
     
    17241733      </p>
    17251734      <h1 id="rfc.index"><a href="#rfc.index">Index</a></h1>
    1726       <p class="noprint"><a href="#rfc.index.A">A</a> <a href="#rfc.index.B">B</a> <a href="#rfc.index.C">C</a> <a href="#rfc.index.D">D</a> <a href="#rfc.index.G">G</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.I">I</a> <a href="#rfc.index.L">L</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.U">U</a>
     1735      <p class="noprint"><a href="#rfc.index.A">A</a> <a href="#rfc.index.B">B</a> <a href="#rfc.index.C">C</a> <a href="#rfc.index.D">D</a> <a href="#rfc.index.G">G</a> <a href="#rfc.index.H">H</a> <a href="#rfc.index.I">I</a> <a href="#rfc.index.L">L</a> <a href="#rfc.index.M">M</a> <a href="#rfc.index.P">P</a> <a href="#rfc.index.R">R</a> <a href="#rfc.index.U">U</a>
    17271736      </p>
    17281737      <div class="print2col">
     
    18091818                        <li class="indline1">Accept-Encoding&nbsp;&nbsp;<a class="iref" href="#rfc.xref.header.accept-encoding.1">3.2</a>, <a class="iref" href="#rfc.xref.header.accept-encoding.2">5.1</a>, <a class="iref" href="#rfc.iref.h.3"><b>6.3</b></a>, <a class="iref" href="#rfc.xref.header.accept-encoding.3">7.1</a></li>
    18101819                        <li class="indline1">Accept-Language&nbsp;&nbsp;<a class="iref" href="#rfc.xref.header.accept-language.1">5.1</a>, <a class="iref" href="#rfc.iref.h.4"><b>6.4</b></a>, <a class="iref" href="#rfc.xref.header.accept-language.2">7.1</a></li>
    1811                         <li class="indline1">Alternate&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.11"><b>C.1</b></a></li>
    1812                         <li class="indline1">Content-Base&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.17"><b>C.1</b></a></li>
    1813                         <li class="indline1">Content-Disposition&nbsp;&nbsp;<a class="iref" href="#rfc.xref.content-disposition.1">7.1</a>, <a class="iref" href="#rfc.xref.content-disposition.2">8.2</a>, <a class="iref" href="#rfc.iref.h.10"><b>B.1</b></a>, <a class="iref" href="#rfc.extref.c.22">B.1</a></li>
     1820                        <li class="indline1">Alternate&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.12"><b>C.1</b></a></li>
     1821                        <li class="indline1">Content-Base&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.18"><b>C.1</b></a></li>
     1822                        <li class="indline1">Content-Disposition&nbsp;&nbsp;<a class="iref" href="#rfc.xref.content-disposition.1">7.1</a>, <a class="iref" href="#rfc.xref.content-disposition.2">8.2</a>, <a class="iref" href="#rfc.iref.h.11"><b>B.1</b></a>, <a class="iref" href="#rfc.extref.c.22">B.1</a></li>
    18141823                        <li class="indline1">Content-Encoding&nbsp;&nbsp;<a class="iref" href="#rfc.xref.header.content-encoding.1">3.2</a>, <a class="iref" href="#rfc.xref.header.content-encoding.2">4.1</a>, <a class="iref" href="#rfc.iref.h.5"><b>6.5</b></a>, <a class="iref" href="#rfc.xref.header.content-encoding.3">6.5</a>, <a class="iref" href="#rfc.xref.header.content-encoding.4">7.1</a></li>
    18151824                        <li class="indline1">Content-Language&nbsp;&nbsp;<a class="iref" href="#rfc.xref.header.content-language.1">4.1</a>, <a class="iref" href="#rfc.iref.h.6"><b>6.6</b></a>, <a class="iref" href="#rfc.xref.header.content-language.2">7.1</a></li>
     
    18171826                        <li class="indline1">Content-MD5&nbsp;&nbsp;<a class="iref" href="#rfc.xref.header.content-md5.1">4.1</a>, <a class="iref" href="#rfc.iref.h.8"><b>6.8</b></a>, <a class="iref" href="#rfc.xref.header.content-md5.2">7.1</a></li>
    18181827                        <li class="indline1">Content-Type&nbsp;&nbsp;<a class="iref" href="#rfc.xref.header.content-type.1">3.3</a>, <a class="iref" href="#rfc.xref.header.content-type.2">4.1</a>, <a class="iref" href="#rfc.iref.h.9"><b>6.9</b></a>, <a class="iref" href="#rfc.xref.header.content-type.3">7.1</a></li>
    1819                         <li class="indline1">Content-Version&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.12"><b>C.1</b></a></li>
    1820                         <li class="indline1">Derived-From&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.13"><b>C.1</b></a></li>
    1821                         <li class="indline1">Link&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.14"><b>C.1</b></a></li>
    1822                         <li class="indline1">Public&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.16"><b>C.1</b></a></li>
    1823                         <li class="indline1">URI&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.15"><b>C.1</b></a></li>
     1828                        <li class="indline1">Content-Version&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.13"><b>C.1</b></a></li>
     1829                        <li class="indline1">Derived-From&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.14"><b>C.1</b></a></li>
     1830                        <li class="indline1">Link&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.15"><b>C.1</b></a></li>
     1831                        <li class="indline1">MIME-Version&nbsp;&nbsp;<a class="iref" href="#rfc.xref.mime-version.1">7.1</a>, <a class="iref" href="#rfc.iref.h.10"><b>A.1</b></a></li>
     1832                        <li class="indline1">Public&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.17"><b>C.1</b></a></li>
     1833                        <li class="indline1">URI&nbsp;&nbsp;<a class="iref" href="#rfc.iref.h.16"><b>C.1</b></a></li>
    18241834                     </ul>
    18251835                  </li>
     
    18331843            <li class="indline0"><a id="rfc.index.L" href="#rfc.index.L"><b>L</b></a><ul class="ind">
    18341844                  <li class="indline1">Link header&nbsp;&nbsp;<a class="iref" href="#rfc.iref.l.1"><b>C.1</b></a></li>
     1845               </ul>
     1846            </li>
     1847            <li class="indline0"><a id="rfc.index.M" href="#rfc.index.M"><b>M</b></a><ul class="ind">
     1848                  <li class="indline1">MIME-Version header&nbsp;&nbsp;<a class="iref" href="#rfc.xref.mime-version.1">7.1</a>, <a class="iref" href="#rfc.iref.m.1"><b>A.1</b></a></li>
    18351849               </ul>
    18361850            </li>
  • draft-ietf-httpbis/latest/p3-payload.xml

    r290 r291  
    15221522   <c>Content-Disposition</c>
    15231523   <c>http</c>
    1524    <c> </c>
     1524   <c/>
    15251525   <c>
    15261526      <xref target="content-disposition"/>
     
    15561556      <xref target="header.content-type"/>
    15571557   </c>
     1558   <c>MIME-Version</c>
     1559   <c>http</c>
     1560   <c/>
     1561   <c>
     1562      <xref target="mime-version"/>
     1563   </c>
    15581564</texttable>
    15591565<!--(END)-->
     
    23162322
    23172323<section title="MIME-Version" anchor="mime-version">
     2324  <iref primary="true" item="MIME-Version header" x:for-anchor=""/>
     2325  <iref primary="true" item="Headers" subitem="MIME-Version" x:for-anchor=""/>
    23182326  <x:anchor-alias value="MIME-Version"/>
    23192327<t>
Note: See TracChangeset for help on using the changeset viewer.