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)

File:
1 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>
Note: See TracChangeset for help on using the changeset viewer.