Ignore:
Timestamp:
06/05/14 14:02:46 (8 years ago)
Author:
julian.reschke@…
Message:

header field sorting (#553)

File:
1 edited

Legend:

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

    r1894 r2644  
    77
    88<xsl:output indent="yes" omit-xml-declaration="yes"/>
     9
     10<!-- character translation tables -->
     11<xsl:variable name="lcase" select="'abcdefghijklmnopqrstuvwxyz'" />
     12<xsl:variable name="ucase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
    913
    1014<xsl:template match="/">
     
    1721      <xsl:text>&#10;</xsl:text>
    1822      <xsl:apply-templates select="//section[iref[contains(@item,' header field') and @primary='true']]">
    19         <xsl:sort select="iref[contains(@item,' header field') and @primary='true']/@item"/>
     23        <xsl:sort select="translate(iref[contains(@item,' header field') and @primary='true']/@item,$ucase,$lcase)"/>
    2024      </xsl:apply-templates>
    2125    </texttable>
Note: See TracChangeset for help on using the changeset viewer.