Ignore:
Timestamp:
10/08/2013 08:03:29 PM (11 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
58675ce
Parents:
09a35dd
Message:

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 moved

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/synop.xsl

    r09a35dd r15c7d39  
    99
    1010<!-- ********************************************************************
    11      $Id$
     11     $Id: synop.xsl 8334 2009-03-15 14:26:23Z mzjn $
    1212     ********************************************************************
    1313
     
    163163
    164164<xsl:template match="funcprototype">
     165
     166  <xsl:variable name="style">
     167    <xsl:call-template name="funcsynopsis.style"/>
     168  </xsl:variable>
     169
    165170  <fo:block font-family="{$monospace.font.family}"
    166171          space-before.minimum="0.8em"
     
    168173          space-before.maximum="1.2em">
    169174    <xsl:apply-templates/>
    170     <xsl:if test="$funcsynopsis.style='kr'">
     175   
     176    <xsl:if test="$style='kr'">
    171177      <fo:block
    172178          space-before.minimum="0.8em"
     
    176182      </fo:block>
    177183    </xsl:if>
     184
    178185  </fo:block>
    179186</xsl:template>
     
    199206
    200207<xsl:template match="void">
     208
     209  <xsl:variable name="style">
     210    <xsl:call-template name="funcsynopsis.style"/>
     211  </xsl:variable>
     212
    201213  <xsl:choose>
    202     <xsl:when test="$funcsynopsis.style='ansi'">
     214    <xsl:when test="$style='ansi'">
    203215      <xsl:text>(void);</xsl:text>
    204216    </xsl:when>
     
    214226
    215227<xsl:template match="paramdef">
     228
     229  <xsl:variable name="style">
     230    <xsl:call-template name="funcsynopsis.style"/>
     231  </xsl:variable>
     232 
    216233  <xsl:variable name="paramnum">
    217234    <xsl:number count="paramdef" format="1"/>
     
    219236  <xsl:if test="$paramnum=1">(</xsl:if>
    220237  <xsl:choose>
    221     <xsl:when test="$funcsynopsis.style='ansi'">
     238    <xsl:when test="$style='ansi'">
    222239      <xsl:apply-templates/>
    223240    </xsl:when>
     
    261278  <xsl:apply-templates/>
    262279  <xsl:text>)</xsl:text>
     280</xsl:template>
     281
     282<!-- Return value of PI or parameter -->
     283<xsl:template name="funcsynopsis.style">
     284  <xsl:variable name="pi.style">
     285    <xsl:call-template name="pi.dbfo_funcsynopsis-style">
     286      <xsl:with-param name="node" select="ancestor::funcsynopsis/descendant-or-self::*"/>
     287    </xsl:call-template>
     288  </xsl:variable>
     289
     290  <xsl:choose>
     291    <xsl:when test="$pi.style != ''">
     292      <xsl:value-of select="$pi.style"/>
     293    </xsl:when>
     294    <xsl:otherwise>
     295      <xsl:value-of select="$funcsynopsis.style"/>
     296    </xsl:otherwise>
     297  </xsl:choose>
    263298</xsl:template>
    264299
     
    940975</xsl:template>
    941976
     977<!-- Used when not occurring as a child of classsynopsis -->
     978<xsl:template match="ooclass|oointerface|ooexception">
     979  <xsl:apply-templates/>
     980</xsl:template>
     981
    942982<!-- ==================================================================== -->
    943983
Note: See TracChangeset for help on using the changeset viewer.