Ignore:
Timestamp:
Jul 19, 2008, 2:59:06 AM (11 years ago)
Author:
julian.reschke@…
Message:

Add checking of consistency of auto-generated tables for IANA header registrations (related to #72)

Location:
draft-ietf-httpbis/latest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest

    • Property svn:ignore
      •  

        old new  
        1010p2-semantics.iana-methods.xml
        1111p2-semantics.iana-status-codes.xml
         12p1-messaging.iana-headers.xml
         13p2-semantics.iana-headers.xml
         14p3-payload.iana-headers.xml
         15p4-conditional.iana-headers.xml
         16p5-range.iana-headers.xml
         17p6-cache.iana-headers.xml
         18p7-auth.iana-headers.xml
  • draft-ietf-httpbis/latest/extract-header-defs.xslt

    r258 r290  
    11<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     2               xmlns:x="http://purl.org/net/xml2rfc/ext"
     3               xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    24               version="1.0"
     5               exclude-result-prefixes="rdf x"
    36>
    47
    5 <xsl:output indent="yes" omit-xml-declaration="yes" encoding="US-ASCII"/>
     8<xsl:output indent="yes" omit-xml-declaration="yes"/>
    69
    710<xsl:template match="/">
     11  <xsl:variable name="table">
     12    <texttable align="left" suppress-title="true" anchor="iana.header.registration.table">
     13      <ttcol>Header Field Name</ttcol>
     14      <ttcol>Protocol</ttcol>
     15      <ttcol>Status</ttcol>
     16      <ttcol>Reference</ttcol>
     17      <xsl:text>&#10;</xsl:text>
     18      <xsl:apply-templates select="//section[iref/@item='Headers']">
     19        <xsl:sort select="iref[@item='Headers']/@subitem"/>
     20      </xsl:apply-templates>
     21    </texttable>
     22    <xsl:text>&#10;</xsl:text>
     23  </xsl:variable>
     24
    825  <xsl:comment>AUTOGENERATED FROM extract-header-defs.xslt, do not edit manually</xsl:comment>
    926  <xsl:text>&#10;</xsl:text>
    10   <xsl:comment>(START)</xsl:comment>
     27  <xsl:copy-of select="$table"/>
     28  <xsl:comment>(END)</xsl:comment>
    1129  <xsl:text>&#10;</xsl:text>
    12   <t>
    13     The Message Header Registry located at <eref target="http://www.iana.org/assignments/message-headers/message-header-index.html"/> should be updated
    14     with the permanent registrations below (see <xref target="RFC3864"/>):
    15   </t>
    16   <texttable>
    17     <ttcol>Header Field Name</ttcol>
    18     <ttcol>Protocol</ttcol>
    19     <ttcol>Status</ttcol>
    20     <ttcol>Reference</ttcol>
    21     <xsl:apply-templates select="//section[iref/@item='Headers']">
    22       <xsl:sort select="iref[@item='Headers']/@subitem"/>
    23     </xsl:apply-templates>
    24   </texttable>
    25   <t>
    26     The change controller is: "IETF (iesg@ietf.org) - Internet Engineering Task Force".
    27   </t>
    28   <xsl:text>&#10;</xsl:text>
    29   <xsl:comment>(END)</xsl:comment>
     30 
     31    <!-- check against current version -->
     32  <xsl:variable name="oldtable" select="//texttable[@anchor='iana.header.registration.table']" />
     33
     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>
     36  </xsl:if>
     37
    3038</xsl:template>
    3139
Note: See TracChangeset for help on using the changeset viewer.