Ignore:
Timestamp:
Sep 15, 2012, 2:36:21 AM (7 years ago)
Author:
julian.reschke@…
Message:

Trim index.

File:
1 edited

Legend:

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

    r700 r1895  
    1616      <ttcol>Description</ttcol>
    1717      <ttcol>Reference</ttcol>
    18       <xsl:apply-templates select="//section[iref/@item='Status Codes']">
    19         <xsl:sort select="iref[@item='Status Codes']/@subitem"/>
     18      <xsl:apply-templates select="//section[iref[contains(@item,' (status code)') and @primary='true']]">
     19        <xsl:sort select="iref[contains(@item,' (status code)') and @primary='true']/@item"/>
    2020      </xsl:apply-templates>
    2121    </texttable>
     
    7676
    7777<xsl:template match="section">
    78   <xsl:variable name="text" select="iref[@item='Status Codes']/@subitem"/>
     78  <xsl:variable name="t" select="iref[contains(@item,'(status code)')]/@item"/>
     79  <xsl:variable name="text" select="substring-before($t,' (status code)')"/>
    7980  <xsl:variable name="redirects-to-other-part" xmlns:p2="urn:ietf:id:draft-ietf-httpbis-p2-semantics#" select="rdf:Description/p2:redirects-to"/>
    8081
Note: See TracChangeset for help on using the changeset viewer.