Ignore:
Timestamp:
Feb 20, 2009, 6:59:11 AM (11 years ago)
Author:
julian.reschke@…
Message:

Update to latest version of rfc2629.xslt, and add experimental version of xml2rfc.tcl (supporting the new IPR escape clause), use that clause in P1..P7 (but not for the method registrations).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toFO.xslt

    r440 r446  
    22        XSLT transformation from RFC2629 XML format to XSL-FO
    33     
    4     Copyright (c) 2006-2008, Julian Reschke (julian.reschke@greenbytes.de)
     4    Copyright (c) 2006-2009, Julian Reschke (julian.reschke@greenbytes.de)
    55    All rights reserved.
    66
     
    346346  </xsl:if>
    347347 
     348  <xsl:apply-templates select="x:boilerplate"/>
    348349        <xsl:apply-templates select="abstract" />
    349350        <xsl:apply-templates select="note" />
     
    751752      <xsl:choose>
    752753        <xsl:when test="string-length($target) &gt; 0">
    753           <fo:basic-link external-destination="url('{$target}')" xsl:use-attribute-sets="external-link"><xsl:value-of select="front/title" /></fo:basic-link>
     754          <fo:basic-link external-destination="url('{$target}')" xsl:use-attribute-sets="external-link"><xsl:value-of select="normalize-space(front/title)" /></fo:basic-link>
    754755        </xsl:when>
    755756        <xsl:otherwise>
    756           <xsl:value-of select="front/title" />
     757          <xsl:value-of select="normalize-space(front/title)" />
    757758        </xsl:otherwise>
    758759      </xsl:choose>
     
    940941<xsl:template name="section-maker">
    941942  <xsl:variable name="sectionNumber">
    942     <xsl:if test="not(@myns:unnumbered)"><xsl:call-template name="get-section-number" /></xsl:if>
     943    <xsl:choose>
     944      <xsl:when test="@myns:unnumbered"></xsl:when>
     945      <xsl:when test="ancestor::x:boilerplate"></xsl:when>
     946      <xsl:otherwise><xsl:call-template name="get-section-number" /></xsl:otherwise>
     947    </xsl:choose>
    943948  </xsl:variable>
    944949
     
    959964</xsl:template>
    960965
    961 <xsl:template match="section[count(ancestor::section) = 0 and @myns:notoclink]">
     966<xsl:template match="section[count(ancestor::section) = 0 and (@myns:notoclink or ancestor::x:boilerplate)]">
    962967
    963968  <fo:block xsl:use-attribute-sets="h1">
     
    970975</xsl:template>
    971976
    972 <xsl:template match="section[count(ancestor::section) = 0 and not(@myns:notoclink)]">
     977<xsl:template match="section[count(ancestor::section) = 0 and not(@myns:notoclink or ancestor::x:boilerplate)]">
    973978
    974979  <fo:block xsl:use-attribute-sets="h1 newpage">
     
    24982503</xsl:template>
    24992504
     2505<!-- boilerplate -->
     2506<xsl:template match="x:boilerplate">
     2507  <xsl:apply-templates/>
     2508</xsl:template>
     2509
    25002510  <!-- experimental: format URI with zero-width spaces to ease line breaks -->
    25012511 
Note: See TracChangeset for help on using the changeset viewer.