Ignore:
Timestamp:
Feb 3, 2008, 6:58:34 AM (12 years ago)
Author:
julian.reschke@…
Message:

Update to latest version of rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toFO.xslt

    r6 r189  
    22        XSLT transformation from RFC2629 XML format to XSL-FO
    33     
    4     Copyright (c) 2006-2007, Julian Reschke (julian.reschke@greenbytes.de)
     4    Copyright (c) 2006-2008, Julian Reschke (julian.reschke@greenbytes.de)
    55    All rights reserved.
    66
     
    250250    <xsl:call-template name="add-anchor"/>
    251251        <xsl:apply-templates />
    252     <xsl:if test="@title!='' or @anchor!=''">
    253       <xsl:variable name="n"><xsl:number level="any" count="figure[@title!='' or @anchor!='']" /></xsl:variable>
     252    <xsl:if test="(@title!='' or @anchor!='') and not(@suppress-title='true')">
     253      <xsl:variable name="n"><xsl:number level="any" count="figure[(@title!='' or @anchor!='') and not(@suppress-title='true')]" /></xsl:variable>
    254254      <fo:block text-align="center" space-before=".5em" space-after="1em">Figure <xsl:value-of select="$n"/><xsl:if test="@title!=''">: <xsl:value-of select="@title" /></xsl:if></fo:block>
    255255    </xsl:if>
     
    11541154        <xsl:variable name="figcnt">
    11551155          <xsl:for-each select="$node">
    1156             <xsl:number level="any" count="figure[@title!='' or @anchor!='']" />
     1156            <xsl:number level="any" count="figure[(@title!='' or @anchor!='') and not(@suppress-title='true')]" />
    11571157          </xsl:for-each>
    11581158        </xsl:variable>
     
    11761176        <xsl:variable name="tabcnt">
    11771177          <xsl:for-each select="$node">
    1178             <xsl:number level="any" count="texttable[@title!='' or @anchor!='']" />
     1178            <xsl:number level="any" count="texttable[(@title!='' or @anchor!='') and not(@suppress-title='true')]" />
    11791179          </xsl:for-each>
    11801180        </xsl:variable>
     
    21842184    </fo:table>
    21852185    <xsl:apply-templates select="postamble" />
    2186     <xsl:if test="@title!='' or @anchor!=''">
    2187       <xsl:variable name="n"><xsl:number level="any" count="texttable[@title!='' or @anchor!='']" /></xsl:variable>
     2186    <xsl:if test="(@title!='' or @anchor!='') and not(@suppress-title='true')">
     2187      <xsl:variable name="n"><xsl:number level="any" count="texttable[(@title!='' or @anchor!='') and not(@suppress-title='true')]" /></xsl:variable>
    21882188      <fo:block text-align="center" space-before="1em" space-after="1em">Table <xsl:value-of select="$n"/><xsl:if test="@title!=''">: <xsl:value-of select="@title" /></xsl:if></fo:block>
    21892189    </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.