Ignore:
Timestamp:
Nov 21, 2008, 7:31:40 AM (11 years ago)
Author:
julian.reschke@…
Message:

add collected abnf appendices (related to #36)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/abnf2xml2rfc.xslt

    r420 r421  
    88 
    99<xsl:template match="/">
    10   <section title="Collected ABNF" anchor="collected.abnf">
     10  <xsl:variable name="collected" select="unparsed-text($abnf)"/>
    1111
     12  <section title="Collected ABNF" anchor="collected.abnf"> 
    1213<figure>
    1314  <artwork type="abnf" name="{$abnf}">
    14     <xsl:text>&#10;</xsl:text>
    15     <xsl:value-of select="unparsed-text($abnf)"/>
     15    <xsl:value-of select="$collected"/>
    1616  </artwork>
    1717</figure> 
     18  </section>
    1819
    19   </section>
     20  <!-- check whether it's up2date... -->
     21 
     22  <xsl:if test="not(//section[@anchor='collected.abnf']) or //section[@anchor='collected.abnf']//artwork != $collected">
     23    <xsl:message>WARNING: appendix contained inside source document needs to be updated</xsl:message>
     24<!--    <xsl:message>A: <xsl:value-of select="//section[@anchor='collected.abnf']//artwork"/></xsl:message>
     25    <xsl:message>B: <xsl:value-of select="$collected"/></xsl:message>-->
     26  </xsl:if>
    2027</xsl:template>
    2128 
Note: See TracChangeset for help on using the changeset viewer.