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/common/subtitles.xsl

    rf2a5108 rb1a51ac1  
    66
    77<!-- ********************************************************************
    8      $Id$
     8     $Id: subtitles.xsl 9286 2012-04-19 10:10:58Z bobstayton $
    99     ********************************************************************
    1010
     
    3030
    3131<xsl:template match="*" mode="subtitle.markup">
    32   <xsl:message>
    33     <xsl:text>Request for subtitle of unexpected element: </xsl:text>
    34     <xsl:value-of select="local-name(.)"/>
    35   </xsl:message>
    36   <xsl:text>???SUBTITLE???</xsl:text>
     32  <xsl:param name="verbose" select="1"/>
     33  <xsl:if test="$verbose != 0">
     34    <xsl:message>
     35      <xsl:text>Request for subtitle of unexpected element: </xsl:text>
     36      <xsl:value-of select="local-name(.)"/>
     37    </xsl:message>
     38    <xsl:text>???SUBTITLE???</xsl:text>
     39  </xsl:if>
    3740</xsl:template>
    3841
    3942<xsl:template match="subtitle" mode="subtitle.markup">
    4043  <xsl:param name="allow-anchors" select="'0'"/>
     44  <xsl:param name="verbose" select="1"/>
    4145  <xsl:apply-templates/>
    4246</xsl:template>
     
    4448<xsl:template match="set" mode="subtitle.markup">
    4549  <xsl:param name="allow-anchors" select="'0'"/>
     50  <xsl:param name="verbose" select="1"/>
    4651  <xsl:apply-templates select="(setinfo/subtitle|info/subtitle|subtitle)[1]"
    4752                       mode="subtitle.markup">
    4853    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     54    <xsl:with-param name="verbose" select="$verbose"/>
    4955  </xsl:apply-templates>
    5056</xsl:template>
     
    5258<xsl:template match="book" mode="subtitle.markup">
    5359  <xsl:param name="allow-anchors" select="'0'"/>
     60  <xsl:param name="verbose" select="1"/>
    5461  <xsl:apply-templates select="(bookinfo/subtitle|info/subtitle|subtitle)[1]"
    5562                       mode="subtitle.markup">
    5663    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     64    <xsl:with-param name="verbose" select="$verbose"/>
    5765  </xsl:apply-templates>
    5866</xsl:template>
     
    6068<xsl:template match="part" mode="subtitle.markup">
    6169  <xsl:param name="allow-anchors" select="'0'"/>
     70  <xsl:param name="verbose" select="1"/>
    6271  <xsl:apply-templates select="(partinfo/subtitle
    6372                                |docinfo/subtitle
     
    6675                       mode="subtitle.markup">
    6776    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     77    <xsl:with-param name="verbose" select="$verbose"/>
    6878  </xsl:apply-templates>
    6979</xsl:template>
     
    7181<xsl:template match="preface|chapter|appendix" mode="subtitle.markup">
    7282  <xsl:param name="allow-anchors" select="'0'"/>
     83  <xsl:param name="verbose" select="1"/>
    7384  <xsl:apply-templates select="(docinfo/subtitle
    7485                                |info/subtitle
     
    7990                       mode="subtitle.markup">
    8091    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     92    <xsl:with-param name="verbose" select="$verbose"/>
    8193  </xsl:apply-templates>
    8294</xsl:template>
     
    8496<xsl:template match="article" mode="subtitle.markup">
    8597  <xsl:param name="allow-anchors" select="'0'"/>
     98  <xsl:param name="verbose" select="1"/>
    8699  <xsl:apply-templates select="(artheader/subtitle
    87100                                |articleinfo/subtitle
     
    90103                       mode="subtitle.markup">
    91104    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     105    <xsl:with-param name="verbose" select="$verbose"/>
    92106  </xsl:apply-templates>
    93107</xsl:template>
     
    95109<xsl:template match="dedication|colophon" mode="subtitle.markup">
    96110  <xsl:param name="allow-anchors" select="'0'"/>
     111  <xsl:param name="verbose" select="1"/>
    97112  <xsl:apply-templates select="(subtitle|info/subtitle)[1]"
    98113                       mode="subtitle.markup">
    99114    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     115    <xsl:with-param name="verbose" select="$verbose"/>
    100116  </xsl:apply-templates>
    101117</xsl:template>
     
    103119<xsl:template match="reference" mode="subtitle.markup">
    104120  <xsl:param name="allow-anchors" select="'0'"/>
     121  <xsl:param name="verbose" select="1"/>
    105122  <xsl:apply-templates select="(referenceinfo/subtitle
    106123                                |docinfo/subtitle
     
    109126                       mode="subtitle.markup">
    110127    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     128    <xsl:with-param name="verbose" select="$verbose"/>
    111129  </xsl:apply-templates>
    112130</xsl:template>
     
    114132<xsl:template match="qandaset" mode="subtitle.markup">
    115133  <xsl:param name="allow-anchors" select="'0'"/>
     134  <xsl:param name="verbose" select="1"/>
    116135  <xsl:apply-templates select="(blockinfo/subtitle|info/subtitle)[1]"
    117136                       mode="subtitle.markup">
    118137    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     138    <xsl:with-param name="verbose" select="$verbose"/>
    119139  </xsl:apply-templates>
    120140</xsl:template>
     
    122142<xsl:template match="refentry" mode="subtitle.markup">
    123143  <xsl:param name="allow-anchors" select="'0'"/>
     144  <xsl:param name="verbose" select="1"/>
    124145  <xsl:apply-templates select="(refentryinfo/subtitle
    125146                                |info/subtitle
     
    127148                       mode="subtitle.markup">
    128149    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     150    <xsl:with-param name="verbose" select="$verbose"/>
    129151  </xsl:apply-templates>
    130152</xsl:template>
     
    133155                     |sect1|sect2|sect3|sect4|sect5
    134156                     |refsect1|refsect2|refsect3
     157                     |topic
    135158                     |simplesect"
    136159              mode="subtitle.markup">
    137160  <xsl:param name="allow-anchors" select="'0'"/>
     161  <xsl:param name="verbose" select="1"/>
    138162  <xsl:apply-templates select="(info/subtitle
    139163                                |sectioninfo/subtitle
     
    149173                       mode="subtitle.markup">
    150174    <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
     175    <xsl:with-param name="verbose" select="$verbose"/>
    151176  </xsl:apply-templates>
    152177</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.