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/html/block.xsl

    rf2a5108 rb1a51ac1  
    1 <?xml version="1.0" encoding="ASCII"?>
    2 <!--This file was created automatically by html2xhtml-->
    3 <!--from the HTML stylesheets.-->
    4 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
     1<?xml version='1.0'?>
     2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     3                version='1.0'>
    54
    65<!-- ********************************************************************
    7      $Id$
     6     $Id: block.xsl 9667 2012-11-26 23:10:44Z bobstayton $
    87     ********************************************************************
    98
     
    2524<xsl:template name="block.object">
    2625  <div>
    27     <xsl:apply-templates select="." mode="class.attribute"/>
     26    <xsl:call-template name="common.html.attributes"/>
     27    <xsl:call-template name="id.attribute"/>
    2828    <xsl:call-template name="anchor"/>
    2929    <xsl:apply-templates/>
     
    5959  <xsl:variable name="p">
    6060    <p>
    61       <xsl:call-template name="dir"/>
    62       <xsl:if test="$class != ''">
    63         <xsl:apply-templates select="." mode="class.attribute">
    64           <xsl:with-param name="class" select="$class"/>
    65         </xsl:apply-templates>
    66       </xsl:if>
     61      <xsl:call-template name="id.attribute"/>
     62      <xsl:choose>
     63        <xsl:when test="$class != ''">
     64          <xsl:call-template name="common.html.attributes">
     65            <xsl:with-param name="class" select="$class"/>
     66          </xsl:call-template>
     67        </xsl:when>
     68        <xsl:otherwise>
     69          <xsl:call-template name="common.html.attributes">
     70            <xsl:with-param name="class" select="''"/>
     71          </xsl:call-template>
     72        </xsl:otherwise>
     73      </xsl:choose>
     74
    6775      <xsl:copy-of select="$content"/>
    6876    </p>
     
    8492  <!-- see also listitem/simpara in lists.xsl -->
    8593  <p>
     94    <xsl:call-template name="id.attribute"/>
     95    <xsl:call-template name="locale.html.attributes"/>
    8696    <xsl:if test="@role and $para.propagates.style != 0">
    8797      <xsl:apply-templates select="." mode="class.attribute">
     
    124134  </xsl:variable>
    125135
    126   <b>
    127     <xsl:copy-of select="$titleStr"/>
    128     <xsl:if test="$lastChar != ''                   and not(contains($runinhead.title.end.punct, $lastChar))">
    129       <xsl:value-of select="$runinhead.default.title.end.punct"/>
    130     </xsl:if>
    131     <xsl:text>&#160;</xsl:text>
    132   </b>
     136  <xsl:choose>
     137    <xsl:when test="$make.clean.html != 0">
     138      <span class="formalpara-title">
     139        <xsl:copy-of select="$titleStr"/>
     140        <xsl:if test="$lastChar != ''
     141                      and not(contains($runinhead.title.end.punct, $lastChar))">
     142          <xsl:value-of select="$runinhead.default.title.end.punct"/>
     143        </xsl:if>
     144        <xsl:text>&#160;</xsl:text>
     145      </span>
     146    </xsl:when>
     147    <xsl:otherwise>
     148      <b>
     149        <xsl:copy-of select="$titleStr"/>
     150        <xsl:if test="$lastChar != ''
     151                      and not(contains($runinhead.title.end.punct, $lastChar))">
     152          <xsl:value-of select="$runinhead.default.title.end.punct"/>
     153        </xsl:if>
     154        <xsl:text>&#160;</xsl:text>
     155      </b>
     156    </xsl:otherwise>
     157  </xsl:choose>
    133158</xsl:template>
    134159
     
    141166<xsl:template match="blockquote">
    142167  <div>
    143     <xsl:apply-templates select="." mode="class.attribute"/>
    144     <xsl:if test="@lang or @xml:lang">
    145       <xsl:call-template name="language.attribute"/>
    146     </xsl:if>
     168    <xsl:call-template name="common.html.attributes"/>
     169    <xsl:call-template name="id.attribute"/>
    147170    <xsl:call-template name="anchor"/>
    148171
    149172    <xsl:choose>
    150173      <xsl:when test="attribution">
    151         <table border="0" width="100%" cellspacing="0" cellpadding="0" class="blockquote" summary="Block quote">
     174        <table border="{$table.border.off}" class="blockquote">
     175          <xsl:if test="$css.decoration != 0">
     176            <xsl:attribute name="style">
     177              <xsl:text>width: 100%; cellspacing: 0; cellpadding: 0;</xsl:text>
     178            </xsl:attribute>
     179          </xsl:if>
     180          <xsl:if test="$div.element != 'section'">
     181            <xsl:attribute name="summary">Block quote</xsl:attribute>
     182          </xsl:if>
    152183          <tr>
    153184            <td width="10%" valign="top">&#160;</td>
     
    159190          <tr>
    160191            <td width="10%" valign="top">&#160;</td>
    161             <td colspan="2" align="right" valign="top">
     192            <td colspan="2" align="{$direction.align.end}" valign="top">
    162193              <xsl:text>--</xsl:text>
    163194              <xsl:apply-templates select="attribution"/>
     
    168199      <xsl:otherwise>
    169200        <blockquote>
    170           <xsl:apply-templates select="." mode="class.attribute"/>
     201          <xsl:call-template name="common.html.attributes"/>
    171202          <xsl:apply-templates/>
    172203        </blockquote>
     
    177208
    178209<xsl:template match="blockquote/title|blockquote/info/title">
    179   <div class="blockquote-title">
    180     <p>
    181       <b>
    182         <xsl:apply-templates/>
    183       </b>
    184     </p>
    185   </div>
    186 </xsl:template>
    187 
     210  <xsl:choose>
     211    <xsl:when test="$make.clean.html != 0">
     212      <div class="blockquote-title">
     213        <xsl:apply-templates/>
     214      </div>
     215    </xsl:when>
     216    <xsl:otherwise>
     217      <div class="blockquote-title">
     218        <p>
     219          <b>
     220            <xsl:apply-templates/>
     221          </b>
     222        </p>
     223      </div>
     224    </xsl:otherwise>
     225  </xsl:choose>
     226</xsl:template>
     227
     228<!-- Use an em dash per Chicago Manual of Style and https://sourceforge.net/tracker/index.php?func=detail&aid=2793878&group_id=21935&atid=373747 -->
    188229<xsl:template match="epigraph">
    189230  <div>
    190     <xsl:apply-templates select="." mode="class.attribute"/>
    191       <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
    192       <xsl:if test="attribution">
    193         <div class="attribution">
    194           <span>--<xsl:apply-templates select="attribution"/></span>
    195         </div>
    196       </xsl:if>
     231    <xsl:call-template name="common.html.attributes"/>
     232    <xsl:call-template name="id.attribute"/>
     233    <xsl:apply-templates select="para|simpara|formalpara|literallayout"/>
     234    <xsl:if test="attribution">
     235      <div class="attribution">
     236        <span>&#x2014;<xsl:apply-templates select="attribution"/></span>
     237      </div>
     238    </xsl:if>
    197239  </div>
    198240</xsl:template>
     
    200242<xsl:template match="attribution">
    201243  <span>
    202     <xsl:apply-templates select="." mode="class.attribute"/>
     244    <xsl:call-template name="common.html.attributes"/>
     245    <xsl:call-template name="id.attribute"/>
    203246    <xsl:apply-templates/>
    204247  </span>
     
    207250<!-- ==================================================================== -->
    208251
    209 <xsl:template match="abstract|sidebar">
     252<xsl:template match="sidebar">
    210253  <div>
    211     <xsl:apply-templates select="." mode="class.attribute"/>
     254    <xsl:call-template name="common.html.attributes"/>
     255    <xsl:call-template name="id.attribute"/>
     256    <xsl:call-template name="anchor"/>
     257    <xsl:call-template name="sidebar.titlepage"/>
     258    <xsl:apply-templates/>
     259  </div>
     260</xsl:template>
     261
     262<xsl:template match="abstract/title|sidebar/title">
     263</xsl:template>
     264
     265<xsl:template match="sidebar/sidebarinfo|sidebar/info"/>
     266
     267<xsl:template match="abstract">
     268  <div>
     269    <xsl:call-template name="common.html.attributes"/>
    212270    <xsl:call-template name="anchor"/>
    213271    <xsl:call-template name="formal.object.heading">
     
    222280</xsl:template>
    223281
    224 <xsl:template match="abstract/title|sidebar/title">
    225 </xsl:template>
    226 
    227 <xsl:template match="sidebar/sidebarinfo|sidebar/info"/>
    228 
    229282<!-- ==================================================================== -->
    230283
     
    250303
    251304<xsl:template match="msgmain/title">
    252   <b><xsl:apply-templates/></b>
     305  <xsl:choose>
     306    <xsl:when test="$make.clean.html != 0">
     307      <span class="msgmain-title">
     308        <xsl:apply-templates/>
     309      </span>
     310    </xsl:when>
     311    <xsl:otherwise>
     312      <b><xsl:apply-templates/></b>
     313    </xsl:otherwise>
     314  </xsl:choose>
    253315</xsl:template>
    254316
     
    258320
    259321<xsl:template match="msgsub/title">
    260   <b><xsl:apply-templates/></b>
     322  <xsl:choose>
     323    <xsl:when test="$make.clean.html != 0">
     324      <span class="msgsub-title">
     325        <xsl:apply-templates/>
     326      </span>
     327    </xsl:when>
     328    <xsl:otherwise>
     329      <b><xsl:apply-templates/></b>
     330    </xsl:otherwise>
     331  </xsl:choose>
    261332</xsl:template>
    262333
     
    266337
    267338<xsl:template match="msgrel/title">
    268   <b><xsl:apply-templates/></b>
     339  <xsl:choose>
     340    <xsl:when test="$make.clean.html != 0">
     341      <span class="msgrel-title">
     342        <xsl:apply-templates/>
     343      </span>
     344    </xsl:when>
     345    <xsl:otherwise>
     346      <b><xsl:apply-templates/></b>
     347    </xsl:otherwise>
     348  </xsl:choose>
    269349</xsl:template>
    270350
     
    278358
    279359<xsl:template match="msglevel">
    280   <p>
    281     <b>
    282       <xsl:call-template name="gentext.template">
    283         <xsl:with-param name="context" select="'msgset'"/>
    284         <xsl:with-param name="name" select="'MsgLevel'"/>
    285       </xsl:call-template>
    286     </b>
    287     <xsl:apply-templates/>
    288   </p>
     360  <xsl:choose>
     361    <xsl:when test="$make.clean.html != 0">
     362      <div class="msglevel">
     363        <span class="msglevel-title">
     364          <xsl:call-template name="gentext.template">
     365            <xsl:with-param name="context" select="'msgset'"/>
     366            <xsl:with-param name="name" select="'MsgLevel'"/>
     367          </xsl:call-template>
     368        </span>
     369        <xsl:apply-templates/>
     370      </div>
     371    </xsl:when>
     372    <xsl:otherwise>
     373      <p>
     374        <b>
     375          <xsl:call-template name="gentext.template">
     376            <xsl:with-param name="context" select="'msgset'"/>
     377            <xsl:with-param name="name" select="'MsgLevel'"/>
     378          </xsl:call-template>
     379        </b>
     380        <xsl:apply-templates/>
     381      </p>
     382    </xsl:otherwise>
     383  </xsl:choose>
    289384</xsl:template>
    290385
    291386<xsl:template match="msgorig">
    292   <p>
    293     <b>
    294       <xsl:call-template name="gentext.template">
    295         <xsl:with-param name="context" select="'msgset'"/>
    296         <xsl:with-param name="name" select="'MsgOrig'"/>
    297       </xsl:call-template>
    298     </b>
    299     <xsl:apply-templates/>
    300   </p>
     387  <xsl:choose>
     388    <xsl:when test="$make.clean.html != 0">
     389      <div class="msgorig">
     390        <span class="msgorig-title">
     391          <xsl:call-template name="gentext.template">
     392            <xsl:with-param name="context" select="'msgset'"/>
     393            <xsl:with-param name="name" select="'MsgOrig'"/>
     394          </xsl:call-template>
     395        </span>
     396        <xsl:apply-templates/>
     397      </div>
     398    </xsl:when>
     399    <xsl:otherwise>
     400      <p>
     401        <b>
     402          <xsl:call-template name="gentext.template">
     403            <xsl:with-param name="context" select="'msgset'"/>
     404            <xsl:with-param name="name" select="'MsgOrig'"/>
     405          </xsl:call-template>
     406        </b>
     407        <xsl:apply-templates/>
     408      </p>
     409    </xsl:otherwise>
     410  </xsl:choose>
    301411</xsl:template>
    302412
    303413<xsl:template match="msgaud">
    304   <p>
    305     <b>
    306       <xsl:call-template name="gentext.template">
    307         <xsl:with-param name="context" select="'msgset'"/>
    308         <xsl:with-param name="name" select="'MsgAud'"/>
    309       </xsl:call-template>
    310     </b>
    311     <xsl:apply-templates/>
    312   </p>
     414  <xsl:choose>
     415    <xsl:when test="$make.clean.html != 0">
     416      <div class="msgaud">
     417        <span class="msgaud-title">
     418          <xsl:call-template name="gentext.template">
     419            <xsl:with-param name="context" select="'msgset'"/>
     420            <xsl:with-param name="name" select="'MsgAud'"/>
     421          </xsl:call-template>
     422        </span>
     423        <xsl:apply-templates/>
     424      </div>
     425    </xsl:when>
     426    <xsl:otherwise>
     427      <p>
     428        <b>
     429          <xsl:call-template name="gentext.template">
     430            <xsl:with-param name="context" select="'msgset'"/>
     431            <xsl:with-param name="name" select="'MsgAud'"/>
     432          </xsl:call-template>
     433        </b>
     434        <xsl:apply-templates/>
     435      </p>
     436    </xsl:otherwise>
     437  </xsl:choose>
    313438</xsl:template>
    314439
     
    318443
    319444<xsl:template match="msgexplan/title">
    320   <p><b><xsl:apply-templates/></b></p>
     445  <xsl:choose>
     446    <xsl:when test="$make.clean.html != 0">
     447      <div class="msgexplan">
     448        <span class="msgexplan-title">
     449          <xsl:apply-templates/>
     450        </span>
     451      </div>
     452    </xsl:when>
     453    <xsl:otherwise>
     454      <p>
     455        <b>
     456          <xsl:apply-templates/>
     457        </b>
     458      </p>
     459    </xsl:otherwise>
     460  </xsl:choose>
    321461</xsl:template>
    322462
     
    325465<xsl:template match="revhistory">
    326466  <div>
    327     <xsl:apply-templates select="." mode="class.attribute"/>
    328     <table border="0" width="100%" summary="Revision history">
     467    <xsl:call-template name="common.html.attributes"/>
     468    <xsl:call-template name="id.attribute"/>
     469    <table>
     470      <xsl:if test="$css.decoration != 0">
     471        <xsl:attribute name="style">
     472          <xsl:text>border-style:solid; width:100%;</xsl:text>
     473        </xsl:attribute>
     474      </xsl:if>
     475      <!-- include summary attribute if not HTML5 -->
     476      <xsl:if test="$div.element != 'section'">
     477        <xsl:attribute name="summary">
     478          <xsl:call-template name="gentext">
     479            <xsl:with-param name="key">revhistory</xsl:with-param>
     480          </xsl:call-template>
     481        </xsl:attribute>
     482      </xsl:if>
    329483      <tr>
    330         <th align="left" valign="top" colspan="3">
     484        <th align="{$direction.align.start}" valign="top" colspan="3">
    331485          <b>
    332486            <xsl:call-template name="gentext">
     
    343497<xsl:template match="revhistory/revision">
    344498  <xsl:variable name="revnumber" select="revnumber"/>
    345   <xsl:variable name="revdate" select="date"/>
     499  <xsl:variable name="revdate"   select="date"/>
    346500  <xsl:variable name="revauthor" select="authorinitials|author"/>
    347501  <xsl:variable name="revremark" select="revremark|revdescription"/>
    348502  <tr>
    349     <td align="left">
     503    <td align="{$direction.align.start}">
    350504      <xsl:if test="$revnumber">
    351505        <xsl:call-template name="gentext">
     
    356510      </xsl:if>
    357511    </td>
    358     <td align="left">
     512    <td align="{$direction.align.start}">
    359513      <xsl:apply-templates select="$revdate"/>
    360514    </td>
    361515    <xsl:choose>
    362516      <xsl:when test="count($revauthor)=0">
    363         <td align="left">
     517        <td align="{$direction.align.start}">
    364518          <xsl:call-template name="dingbat">
    365519            <xsl:with-param name="dingbat">nbsp</xsl:with-param>
     
    368522      </xsl:when>
    369523      <xsl:otherwise>
    370         <td align="left">
     524        <td align="{$direction.align.start}">
    371525          <xsl:for-each select="$revauthor">
    372526            <xsl:apply-templates select="."/>
     
    381535  <xsl:if test="$revremark">
    382536    <tr>
    383       <td align="left" colspan="3">
     537      <td align="{$direction.align.start}" colspan="3">
    384538        <xsl:apply-templates select="$revremark"/>
    385539      </td>
     
    415569<!-- ==================================================================== -->
    416570
    417 <xsl:template match="ackno">
    418   <p>
    419     <xsl:apply-templates select="." mode="class.attribute"/>
    420     <xsl:apply-templates/>
    421   </p>
     571<xsl:template match="ackno|acknowledgements[parent::article]">
     572  <xsl:call-template name="block.object"/>
    422573</xsl:template>
    423574
Note: See TracChangeset for help on using the changeset viewer.