Ignore:
Timestamp:
Sep 26, 2009, 8:08:50 AM (10 years ago)
Author:
julian.reschke@…
Message:

Resolve #198: move IANA registrations for optional status codes

File:
1 edited

Legend:

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

    r292 r700  
    7777<xsl:template match="section">
    7878  <xsl:variable name="text" select="iref[@item='Status Codes']/@subitem"/>
    79   <xsl:text>&#10;</xsl:text>
    80   <c><xsl:value-of select="substring-before($text,' ')"/></c>
    81   <c><xsl:value-of select="substring($text,2+string-length(substring-before($text,' ')))"/></c>
    82   <c><xref target="{@anchor}"/></c>
     79  <xsl:variable name="redirects-to-other-part" xmlns:p2="urn:ietf:id:draft-ietf-httpbis-p2-semantics#" select="rdf:Description/p2:redirects-to"/>
     80
     81  <xsl:if test="not($redirects-to-other-part)">
     82    <xsl:text>&#10;</xsl:text>
     83    <c><xsl:value-of select="substring-before($text,' ')"/></c>
     84    <c><xsl:value-of select="substring($text,2+string-length(substring-before($text,' ')))"/></c>
     85    <c><xref target="{@anchor}"/></c>
     86  </xsl:if>
    8387</xsl:template>
    8488
Note: See TracChangeset for help on using the changeset viewer.