source: draft-ietf-httpbis/latest/extract-status-code-defs.xslt @ 271

Last change on this file since 271 was 262, checked in by julian.reschke@…, 11 years ago

Resolve #59: Take over HTTP Status Code Registry from RFC2817 (closes #59).

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.3 KB
Line 
1<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2               xmlns:x="http://purl.org/net/xml2rfc/ext"
3               version="1.0"
4>
5
6<xsl:output indent="yes" omit-xml-declaration="yes"/>
7
8<xsl:template match="/">
9  <xsl:comment>AUTOGENERATED FROM extract-status-code-defs.xslt, do not edit manually</xsl:comment>
10  <xsl:text>&#10;</xsl:text>
11  <xsl:comment>(START)</xsl:comment>
12  <xsl:text>&#10;</xsl:text>
13  <t>
14    The HTTP Status Code Registry located at <eref target="http://www.iana.org/assignments/http-status-codes"/>
15    should be updated with the registrations below:
16  </t>
17  <texttable>
18    <ttcol>Value</ttcol>
19    <ttcol>Description</ttcol>
20    <ttcol>Reference</ttcol>
21    <xsl:apply-templates select="//section[iref/@item='Status Codes']">
22      <xsl:sort select="iref[@item='Status Codes']/@subitem"/>
23    </xsl:apply-templates>
24  </texttable>
25  <t>
26  </t>
27  <xsl:text>&#10;</xsl:text>
28  <xsl:comment>(END)</xsl:comment>
29</xsl:template>
30
31<xsl:template match="section">
32  <xsl:variable name="text" select="iref[@item='Status Codes']/@subitem"/>
33  <xsl:text>&#10;</xsl:text>
34  <c><xsl:value-of select="substring-before($text,' ')"/></c>
35  <c><xsl:value-of select="substring($text,2+string-length(substring-before($text,' ')))"/></c>
36  <c><xref target="{@anchor}"/></c>
37</xsl:template>
38
39</xsl:transform>
Note: See TracBrowser for help on using the repository browser.