Ignore:
Timestamp:
12/10/2013 11:37:38 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
112db9d
Parents:
f2a5108
Message:

Import new branch

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

File:
1 moved

Legend:

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

    rf2a5108 rb1a51ac1  
    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.