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/xhtml/lists.xsl

    rf2a5108 rb1a51ac1  
    55
    66<!-- ********************************************************************
    7      $Id$
     7     $Id: lists.xsl 9307 2012-04-28 03:55:07Z bobstayton $
    88     ********************************************************************
    99
     
    1717
    1818<xsl:template match="itemizedlist">
     19  <!-- Handle spacing="compact" as multiple class attribute instead
     20       of the deprecated HTML compact attribute -->
     21  <xsl:variable name="default.class">
     22    <xsl:value-of select="local-name()"/>
     23    <xsl:if test="@spacing = 'compact'">
     24      <xsl:text> compact</xsl:text>
     25    </xsl:if>
     26  </xsl:variable>
     27 
     28  <xsl:variable name="style.value">
     29    <xsl:variable name="type">
     30      <xsl:call-template name="list.itemsymbol"/>
     31    </xsl:variable>
     32
     33    <xsl:text>list-style-type: </xsl:text>
     34    <xsl:value-of select="$type"/>
     35    <xsl:text>; </xsl:text>
     36  </xsl:variable>
     37
    1938  <div>
    20     <xsl:apply-templates select="." mode="class.attribute"/>
     39    <xsl:call-template name="common.html.attributes"/>
     40    <xsl:call-template name="id.attribute"/>
    2141    <xsl:call-template name="anchor"/>
    22     <xsl:if test="title">
     42    <xsl:if test="title|info/title">
    2343      <xsl:call-template name="formal.object.heading"/>
    2444    </xsl:if>
     
    2848
    2949    <ul>
    30       <xsl:if test="$css.decoration != 0">
    31         <xsl:attribute name="type">
    32           <xsl:call-template name="list.itemsymbol"/>
    33         </xsl:attribute>
    34       </xsl:if>
    35 
    36       <xsl:if test="@spacing='compact'">
    37         <xsl:attribute name="compact">
    38           <xsl:value-of select="@spacing"/>
    39         </xsl:attribute>
    40       </xsl:if>
     50      <xsl:call-template name="generate.class.attribute">
     51        <xsl:with-param name="class" select="$default.class"/>
     52      </xsl:call-template>
     53      <xsl:choose>
     54        <xsl:when test="$css.decoration != 0">
     55          <xsl:attribute name="style">
     56            <xsl:value-of select="$style.value"/>
     57          </xsl:attribute>
     58        </xsl:when>
     59        <xsl:when test="$make.clean.html != 0">
     60          <!-- styled by separate css only -->
     61        </xsl:when>
     62        <xsl:otherwise>
     63          <!-- use the old @type attribute -->
     64          <xsl:attribute name="type">
     65            <xsl:call-template name="list.itemsymbol"/>
     66          </xsl:attribute>
     67        </xsl:otherwise>
     68      </xsl:choose>
     69
    4170      <xsl:apply-templates select="listitem                     |comment()[preceding-sibling::listitem]                     |processing-instruction()[preceding-sibling::listitem]"/>
    4271    </ul>
     
    75104
    76105  <li>
     106    <xsl:call-template name="common.html.attributes"/>
     107    <xsl:call-template name="id.attribute"/>
    77108    <xsl:if test="$css.decoration = '1' and $cssmark != ''">
    78109      <xsl:attribute name="style">
     
    104135
    105136<xsl:template match="orderedlist">
     137  <!-- Handle spacing="compact" as multiple class attribute instead
     138       of the deprecated HTML compact attribute -->
     139  <xsl:variable name="default.class">
     140    <xsl:value-of select="local-name()"/>
     141    <xsl:if test="@spacing = 'compact'">
     142      <xsl:text> compact</xsl:text>
     143    </xsl:if>
     144  </xsl:variable>
     145 
    106146  <xsl:variable name="start">
    107147    <xsl:call-template name="orderedlist-starting-number"/>
     
    131171
    132172  <div>
    133     <xsl:apply-templates select="." mode="class.attribute"/>
     173    <xsl:call-template name="common.html.attributes"/>
     174    <xsl:call-template name="id.attribute"/>
    134175    <xsl:call-template name="anchor"/>
    135176
    136     <xsl:if test="title">
     177    <xsl:if test="title|info/title">
    137178      <xsl:call-template name="formal.object.heading"/>
    138179    </xsl:if>
     
    141182    <xsl:apply-templates select="*[not(self::listitem                   or self::title                   or self::titleabbrev)]                 |comment()[not(preceding-sibling::listitem)]                 |processing-instruction()[not(preceding-sibling::listitem)]"/>
    142183
    143     <ol>
    144       <xsl:if test="$start != '1'">
    145         <xsl:attribute name="start">
    146           <xsl:value-of select="$start"/>
    147         </xsl:attribute>
    148       </xsl:if>
    149       <xsl:if test="$numeration != ''">
    150         <xsl:attribute name="type">
    151           <xsl:value-of select="$type"/>
    152         </xsl:attribute>
    153       </xsl:if>
    154       <xsl:if test="@spacing='compact'">
    155         <xsl:attribute name="compact">
    156           <xsl:value-of select="@spacing"/>
    157         </xsl:attribute>
    158       </xsl:if>
    159       <xsl:apply-templates select="listitem                     |comment()[preceding-sibling::listitem]                     |processing-instruction()[preceding-sibling::listitem]"/>
    160     </ol>
     184    <xsl:choose>
     185      <xsl:when test="@inheritnum='inherit' and ancestor::listitem[parent::orderedlist]">
     186        <table border="{$table.border.off}">
     187          <xsl:call-template name="generate.class.attribute">
     188            <xsl:with-param name="class" select="$default.class"/>
     189          </xsl:call-template>
     190          <colgroup>
     191            <col align="{$direction.align.start}" valign="top"/>
     192            <col/>
     193          </colgroup>
     194          <tbody>
     195            <xsl:apply-templates mode="orderedlist-table" select="listitem                         |comment()[preceding-sibling::listitem]                         |processing-instruction()[preceding-sibling::listitem]"/>
     196          </tbody>
     197        </table>
     198      </xsl:when>
     199      <xsl:otherwise>
     200        <ol>
     201          <xsl:call-template name="generate.class.attribute">
     202            <xsl:with-param name="class" select="$default.class"/>
     203          </xsl:call-template>
     204          <xsl:if test="$start != '1'">
     205            <xsl:attribute name="start">
     206              <xsl:value-of select="$start"/>
     207            </xsl:attribute>
     208          </xsl:if>
     209          <xsl:if test="$numeration != ''">
     210            <xsl:attribute name="type">
     211              <xsl:value-of select="$type"/>
     212            </xsl:attribute>
     213          </xsl:if>
     214          <xsl:apply-templates select="listitem                         |comment()[preceding-sibling::listitem]                         |processing-instruction()[preceding-sibling::listitem]"/>
     215        </ol>
     216      </xsl:otherwise>
     217    </xsl:choose>
    161218  </div>
    162219</xsl:template>
     
    168225<xsl:template match="orderedlist/listitem">
    169226  <li>
     227    <xsl:call-template name="common.html.attributes"/>
     228    <xsl:call-template name="id.attribute"/>
    170229    <xsl:if test="@override">
    171230      <xsl:attribute name="value">
     
    195254</xsl:template>
    196255
     256<xsl:template match="orderedlist/listitem" mode="orderedlist-table">
     257  <tr>
     258    <td>
     259      <xsl:apply-templates select="." mode="item-number"/>
     260    </td>
     261    <td>
     262      <xsl:if test="local-name(child::*[1]) != 'para'">
     263        <xsl:call-template name="id.attribute"/>
     264        <xsl:call-template name="anchor"/>
     265      </xsl:if>
     266
     267      <xsl:choose>
     268        <xsl:when test="$show.revisionflag != 0 and @revisionflag">
     269          <div class="{@revisionflag}">
     270            <xsl:apply-templates/>
     271          </div>
     272        </xsl:when>
     273        <xsl:otherwise>
     274          <xsl:apply-templates/>
     275        </xsl:otherwise>
     276      </xsl:choose>
     277    </td>
     278  </tr>
     279</xsl:template>
     280
    197281<xsl:template match="variablelist">
    198282  <xsl:variable name="pi-presentation">
    199283    <xsl:call-template name="pi.dbhtml_list-presentation"/>
    200284  </xsl:variable>
     285  <!-- Handle spacing="compact" as multiple class attribute instead
     286       of the deprecated HTML compact attribute -->
     287  <xsl:variable name="default.class">
     288    <xsl:value-of select="local-name()"/>
     289    <xsl:if test="@spacing = 'compact'">
     290      <xsl:text> compact</xsl:text>
     291    </xsl:if>
     292  </xsl:variable>
     293 
    201294
    202295  <xsl:variable name="presentation">
     
    227320
    228321  <div>
    229     <xsl:apply-templates select="." mode="class.attribute"/>
     322    <xsl:call-template name="common.html.attributes"/>
     323    <xsl:call-template name="id.attribute"/>
    230324    <xsl:call-template name="anchor"/>
    231     <xsl:if test="title">
     325    <xsl:if test="title|info/title">
    232326      <xsl:call-template name="formal.object.heading"/>
    233327    </xsl:if>
     
    237331        <!-- Preserve order of PIs and comments -->
    238332        <xsl:apply-templates select="*[not(self::varlistentry                     or self::title                     or self::titleabbrev)]                   |comment()[not(preceding-sibling::varlistentry)]                   |processing-instruction()[not(preceding-sibling::varlistentry)]"/>
    239         <table border="0">
     333        <table border="{$table.border.off}">
     334          <xsl:call-template name="generate.class.attribute">
     335            <xsl:with-param name="class" select="$default.class"/>
     336          </xsl:call-template>
    240337          <xsl:if test="$list-width != ''">
    241338            <xsl:attribute name="width">
     
    248345            </xsl:attribute>
    249346          </xsl:if>
    250           <col align="left" valign="top">
    251             <xsl:if test="$term-width != ''">
    252               <xsl:attribute name="width">
    253                 <xsl:value-of select="$term-width"/>
    254               </xsl:attribute>
    255             </xsl:if>
    256           </col>
     347          <colgroup>
     348            <col align="{$direction.align.start}" valign="top">
     349              <xsl:if test="$term-width != ''">
     350                <xsl:attribute name="width">
     351                  <xsl:value-of select="$term-width"/>
     352                </xsl:attribute>
     353              </xsl:if>
     354            </col>
     355            <col/>
     356          </colgroup>
    257357          <tbody>
    258358            <xsl:apply-templates mode="varlist-table" select="varlistentry                       |comment()[preceding-sibling::varlistentry]                       |processing-instruction()[preceding-sibling::varlistentry]"/>
     
    264364        <xsl:apply-templates select="*[not(self::varlistentry                     or self::title                     or self::titleabbrev)]                   |comment()[not(preceding-sibling::varlistentry)]                   |processing-instruction()[not(preceding-sibling::varlistentry)]"/>
    265365        <dl>
     366          <xsl:call-template name="generate.class.attribute">
     367            <xsl:with-param name="class" select="$default.class"/>
     368          </xsl:call-template>
    266369          <xsl:apply-templates select="varlistentry                       |comment()[preceding-sibling::varlistentry]                       |processing-instruction()[preceding-sibling::varlistentry]"/>
    267370        </dl>
     
    298401    <xsl:otherwise>
    299402      <p>
    300         <xsl:if test="@role and $para.propagates.style != 0">
    301            <xsl:apply-templates select="." mode="class.attribute">
    302              <xsl:with-param name="class" select="@role"/>
    303            </xsl:apply-templates>
    304         </xsl:if>
     403        <xsl:call-template name="id.attribute"/>
     404        <xsl:choose>
     405          <xsl:when test="@role and $para.propagates.style != 0">
     406            <xsl:call-template name="common.html.attributes">
     407              <xsl:with-param name="class" select="@role"/>
     408            </xsl:call-template>
     409          </xsl:when>
     410          <xsl:otherwise>
     411            <xsl:call-template name="common.html.attributes"/>
     412          </xsl:otherwise>
     413        </xsl:choose>
    305414
    306415        <xsl:call-template name="anchor"/>
     
    313422<xsl:template match="varlistentry">
    314423  <dt>
     424    <xsl:call-template name="id.attribute"/>
    315425    <xsl:call-template name="anchor"/>
    316426    <xsl:apply-templates select="term"/>
     
    341451
    342452    <td>
     453      <xsl:call-template name="id.attribute"/>
    343454      <p>
    344455      <xsl:call-template name="anchor"/>
    345456      <xsl:choose>
    346457        <xsl:when test="$presentation = 'bold'">
    347           <b>
     458          <strong>
    348459            <xsl:apply-templates select="term"/>
    349460            <xsl:value-of select="$separator"/>
    350           </b>
     461          </strong>
    351462        </xsl:when>
    352463        <xsl:when test="$presentation = 'italic'">
    353           <i>
     464          <em>
    354465            <xsl:apply-templates select="term"/>
    355466            <xsl:value-of select="$separator"/>
    356           </i>
     467          </em>
    357468        </xsl:when>
    358469        <xsl:when test="$presentation = 'bold-italic'">
    359           <b>
    360             <i>
     470          <strong>
     471            <em>
    361472              <xsl:apply-templates select="term"/>
    362473              <xsl:value-of select="$separator"/>
    363             </i>
    364           </b>
     474            </em>
     475          </strong>
    365476        </xsl:when>
    366477        <xsl:otherwise>
     
    378489
    379490<xsl:template match="varlistentry/term">
    380   <span class="term">
     491  <span>
     492    <xsl:call-template name="common.html.attributes"/>
     493    <xsl:call-template name="id.attribute"/>
    381494    <xsl:call-template name="anchor"/>
    382495    <xsl:call-template name="simple.xlink">
     
    426539  <!-- with no type specified, the default is 'vert' -->
    427540  <xsl:call-template name="anchor"/>
    428   <table class="simplelist" border="0" summary="Simple list">
     541  <table border="{$table.border.off}">
     542    <xsl:if test="$div.element != 'section'">
     543      <xsl:attribute name="summary">Simple list</xsl:attribute>
     544    </xsl:if>
     545    <xsl:call-template name="common.html.attributes"/>
     546    <xsl:call-template name="id.attribute"/>
    429547    <xsl:call-template name="simplelist.vert">
    430548      <xsl:with-param name="cols">
     
    442560<xsl:template match="simplelist[@type='inline']">
    443561  <span>
    444     <xsl:apply-templates select="." mode="class.attribute"/>
    445   <!-- if dbchoice PI exists, use that to determine the choice separator -->
    446   <!-- (that is, equivalent of "and" or "or" in current locale), or literal -->
    447   <!-- value of "choice" otherwise -->
    448   <xsl:variable name="localized-choice-separator">
    449     <xsl:choose>
    450       <xsl:when test="processing-instruction('dbchoice')">
    451         <xsl:call-template name="select.choice.separator"/>
    452       </xsl:when>
    453       <xsl:otherwise>
    454         <!-- empty -->
    455       </xsl:otherwise>
    456     </xsl:choose>
    457   </xsl:variable>
    458 
    459   <xsl:for-each select="member">
    460     <xsl:call-template name="simple.xlink">
    461       <xsl:with-param name="content">
    462         <xsl:apply-templates/>
    463       </xsl:with-param>
    464     </xsl:call-template>
    465     <xsl:choose>
    466       <xsl:when test="position() = last()"/> <!-- do nothing -->
    467       <xsl:otherwise>
    468         <xsl:text>, </xsl:text>
    469         <xsl:if test="position() = last() - 1">
    470           <xsl:if test="$localized-choice-separator != ''">
    471             <xsl:value-of select="$localized-choice-separator"/>
    472             <xsl:text> </xsl:text>
    473           </xsl:if>
    474         </xsl:if>
    475       </xsl:otherwise>
    476     </xsl:choose>
    477   </xsl:for-each>
     562    <xsl:call-template name="common.html.attributes"/>
     563    <xsl:call-template name="id.attribute"/>
     564    <!-- if dbchoice PI exists, use that to determine the choice separator -->
     565    <!-- (that is, equivalent of "and" or "or" in current locale), or literal -->
     566    <!-- value of "choice" otherwise -->
     567    <xsl:variable name="localized-choice-separator">
     568      <xsl:choose>
     569        <xsl:when test="processing-instruction('dbchoice')">
     570          <xsl:call-template name="select.choice.separator"/>
     571        </xsl:when>
     572        <xsl:otherwise>
     573          <!-- empty -->
     574        </xsl:otherwise>
     575      </xsl:choose>
     576    </xsl:variable>
     577 
     578    <xsl:for-each select="member">
     579      <xsl:call-template name="simple.xlink">
     580        <xsl:with-param name="content">
     581          <xsl:apply-templates/>
     582        </xsl:with-param>
     583      </xsl:call-template>
     584      <xsl:choose>
     585        <xsl:when test="position() = last()"/> <!-- do nothing -->
     586        <xsl:otherwise>
     587          <xsl:text>, </xsl:text>
     588          <xsl:if test="position() = last() - 1">
     589            <xsl:if test="$localized-choice-separator != ''">
     590              <xsl:value-of select="$localized-choice-separator"/>
     591              <xsl:text> </xsl:text>
     592            </xsl:if>
     593          </xsl:if>
     594        </xsl:otherwise>
     595      </xsl:choose>
     596    </xsl:for-each>
    478597  </span>
    479598</xsl:template>
     
    481600<xsl:template match="simplelist[@type='horiz']">
    482601  <xsl:call-template name="anchor"/>
    483   <table class="simplelist" border="0" summary="Simple list">
     602  <table border="{$table.border.off}">
     603    <xsl:if test="$div.element != 'section'">
     604      <xsl:attribute name="summary">Simple list</xsl:attribute>
     605    </xsl:if>
     606    <xsl:call-template name="common.html.attributes"/>
     607    <xsl:call-template name="id.attribute"/>
    484608    <xsl:call-template name="simplelist.horiz">
    485609      <xsl:with-param name="cols">
     
    497621<xsl:template match="simplelist[@type='vert']">
    498622  <xsl:call-template name="anchor"/>
    499   <table class="simplelist" border="0" summary="Simple list">
     623  <table border="{$table.border.off}">
     624    <xsl:if test="$div.element != 'section'">
     625      <xsl:attribute name="summary">Simple list</xsl:attribute>
     626    </xsl:if>
     627    <xsl:call-template name="common.html.attributes"/>
     628    <xsl:call-template name="id.attribute"/>
    500629    <xsl:call-template name="simplelist.vert">
    501630      <xsl:with-param name="cols">
     
    650779
    651780  <div>
    652     <xsl:apply-templates select="." mode="class.attribute"/>
     781    <xsl:call-template name="common.html.attributes"/>
     782    <xsl:call-template name="id.attribute">
     783      <xsl:with-param name="conditional">
     784        <xsl:choose>
     785          <xsl:when test="title">0</xsl:when>
     786          <xsl:otherwise>1</xsl:otherwise>
     787        </xsl:choose>
     788      </xsl:with-param>
     789    </xsl:call-template>
    653790    <xsl:call-template name="anchor">
    654791      <xsl:with-param name="conditional">
    655792        <xsl:choose>
    656           <xsl:when test="title">0</xsl:when>
    657           <xsl:otherwise>1</xsl:otherwise>
    658         </xsl:choose>
     793          <xsl:when test="title">0</xsl:when>
     794          <xsl:otherwise>1</xsl:otherwise>
     795        </xsl:choose>
    659796      </xsl:with-param>
    660797    </xsl:call-template>
    661798
    662     <xsl:if test="title and $placement = 'before'">
     799    <xsl:if test="(title or info/title) and $placement = 'before'">
    663800      <xsl:call-template name="formal.object.heading"/>
    664801    </xsl:if>
     
    669806      <xsl:when test="count(step) = 1">
    670807        <ul>
     808          <xsl:call-template name="generate.class.attribute"/>
    671809          <xsl:apply-templates select="step                     |comment()[preceding-sibling::step]                     |processing-instruction()[preceding-sibling::step]"/>
    672810        </ul>
     
    674812      <xsl:otherwise>
    675813        <ol>
     814          <xsl:call-template name="generate.class.attribute"/>
    676815          <xsl:attribute name="type">
    677816            <xsl:value-of select="substring($procedure.step.numeration.formats,1,1)"/>
     
    682821    </xsl:choose>
    683822
    684     <xsl:if test="title and $placement != 'before'">
     823    <xsl:if test="(title or info/title) and $placement != 'before'">
    685824      <xsl:call-template name="formal.object.heading"/>
    686825    </xsl:if>
     
    700839
    701840  <ol type="{$numeration}">
     841    <xsl:call-template name="common.html.attributes"/>
     842    <xsl:call-template name="id.attribute"/>
    702843    <xsl:apply-templates/>
    703844  </ol>
     
    706847<xsl:template match="step">
    707848  <li>
     849    <xsl:call-template name="common.html.attributes"/>
     850    <xsl:call-template name="id.attribute"/>
    708851    <xsl:call-template name="anchor"/>
    709852    <xsl:apply-templates/>
     
    714857  <xsl:call-template name="anchor"/>
    715858  <ul>
     859    <xsl:call-template name="common.html.attributes"/>
     860    <xsl:call-template name="id.attribute"/>
    716861    <xsl:apply-templates/>
    717862  </ul>
     
    719864
    720865<xsl:template match="step/title">
    721   <p class="title">
    722     <b>
     866  <p>
     867    <xsl:call-template name="common.html.attributes"/>
     868    <strong xmlns:xslo="http://www.w3.org/1999/XSL/Transform">
    723869      <xsl:apply-templates/>
    724     </b>
     870    </strong>
    725871  </p>
    726872</xsl:template>
     
    734880
    735881  <div>
    736     <xsl:apply-templates select="." mode="class.attribute"/>
     882    <xsl:call-template name="common.html.attributes"/>
     883    <xsl:call-template name="id.attribute"/>
    737884    <xsl:call-template name="anchor"/>
    738885
     
    755902
    756903<xsl:template match="segmentedlist/title">
    757   <div class="title">
    758     <strong><span class="title"><xsl:apply-templates/></span></strong>
     904  <div>
     905    <xsl:call-template name="common.html.attributes"/>
     906    <strong>
     907      <span>
     908        <xsl:call-template name="generate.class.attribute"/>
     909        <xsl:apply-templates/>
     910      </span>
     911    </strong>
    759912  </div>
    760913</xsl:template>
     
    768921
    769922<xsl:template match="seglistitem">
    770   <div class="seglistitem">
     923  <div>
     924    <xsl:call-template name="common.html.attributes"/>
     925    <xsl:call-template name="id.attribute"/>
    771926    <xsl:call-template name="anchor"/>
    772927    <xsl:apply-templates/>
     
    785940  -->
    786941
    787   <div class="seg">
     942  <div>
     943    <xsl:call-template name="common.html.attributes"/>
     944    <xsl:call-template name="id.attribute"/>
    788945    <strong>
    789946      <span class="segtitle">
     
    807964  <xsl:apply-templates select="title"/>
    808965
    809   <table border="0">
     966  <table border="{$table.border.off}">
    810967    <xsl:if test="$list-width != ''">
    811968      <xsl:attribute name="width">
     
    813970      </xsl:attribute>
    814971    </xsl:if>
    815     <xsl:if test="$table-summary != ''">
     972    <xsl:if test="$table-summary != '' and $div.element != 'section'">
    816973      <xsl:attribute name="summary">
    817974        <xsl:value-of select="$table-summary"/>
     
    842999  </xsl:variable>
    8431000
    844   <tr class="seglistitem">
     1001  <tr>
     1002    <xsl:call-template name="common.html.attributes"/>
     1003    <xsl:call-template name="id.attribute"/>
    8451004    <xsl:call-template name="tr.attributes">
    8461005      <xsl:with-param name="rownum" select="$seglinum + 1"/>
     
    8511010
    8521011<xsl:template match="seg" mode="seglist-table">
    853   <td class="seg"><xsl:apply-templates/></td>
     1012  <td>
     1013    <xsl:call-template name="common.html.attributes"/>
     1014    <xsl:call-template name="id.attribute"/>
     1015    <xsl:apply-templates/>
     1016  </td>
    8541017</xsl:template>
    8551018
    8561019<xsl:template match="seg[1]" mode="seglist-table">
    857   <td class="seg">
     1020  <td>
     1021    <xsl:call-template name="common.html.attributes"/>
     1022    <xsl:call-template name="id.attribute"/>
    8581023    <xsl:call-template name="anchor">
    8591024      <xsl:with-param name="node" select="ancestor::seglistitem"/>
     
    8671032<xsl:template match="calloutlist">
    8681033  <div>
    869     <xsl:apply-templates select="." mode="class.attribute"/>
     1034    <xsl:call-template name="common.html.attributes"/>
     1035    <xsl:call-template name="id.attribute"/>
    8701036    <xsl:call-template name="anchor"/>
    8711037    <xsl:if test="title|info/title">
     
    8741040
    8751041    <!-- Preserve order of PIs and comments -->
    876     <xsl:apply-templates select="*[not(self::callout or self::title or self::titleabbrev)]                    |comment()[not(preceding-sibling::callout)]      |processing-instruction()[not(preceding-sibling::callout)]"/>
     1042    <xsl:apply-templates select="*[not(self::callout or self::title or self::titleabbrev)]                    |comment()[not(preceding-sibling::callout)]                    |processing-instruction()[not(preceding-sibling::callout)]"/>
    8771043
    8781044    <xsl:choose>
    8791045      <xsl:when test="$callout.list.table != 0">
    880         <table border="0" summary="Callout list">
    881           <xsl:apply-templates select="callout            |comment()[preceding-sibling::callout]     |processing-instruction()[preceding-sibling::callout]"/>
    882         </table>
    883       </xsl:when>
    884       <xsl:otherwise>
    885         <dl compact="compact">
    886           <xsl:apply-templates select="callout            |comment()[preceding-sibling::callout]     |processing-instruction()[preceding-sibling::callout]"/>
    887         </dl>
     1046        <table border="{$table.border.off}">
     1047          <xsl:if test="$div.element != 'section'">
     1048            <xsl:attribute name="summary">Callout list</xsl:attribute>
     1049          </xsl:if>
     1050          <xsl:apply-templates select="callout                                 |comment()[preceding-sibling::callout]                                 |processing-instruction()[preceding-sibling::callout]"/>
     1051        </table>
     1052      </xsl:when>
     1053      <xsl:otherwise>
     1054        <dl>
     1055          <xsl:apply-templates select="." mode="class.attribute"/>
     1056          <xsl:apply-templates select="callout                                 |comment()[preceding-sibling::callout]                                 |processing-instruction()[preceding-sibling::callout]"/>
     1057        </dl>
    8881058      </xsl:otherwise>
    8891059    </xsl:choose>
     
    9041074        </xsl:call-template>
    9051075
    906         <td width="5%" valign="top" align="left">
     1076        <td width="5%" valign="top" align="{$direction.align.start}">
     1077          <xsl:call-template name="id.attribute"/>
    9071078          <p>
    9081079            <xsl:call-template name="anchor"/>
     
    9121083          </p>
    9131084        </td>
    914         <td valign="top" align="left">
     1085        <td valign="top" align="{$direction.align.start}">
    9151086          <xsl:apply-templates/>
    9161087        </td>
     
    9191090    <xsl:otherwise>
    9201091      <dt>
     1092        <xsl:call-template name="id.attribute"/>
    9211093        <xsl:call-template name="anchor"/>
    9221094        <xsl:call-template name="callout.arearefs">
     
    9401112    <xsl:otherwise>
    9411113      <p>
     1114        <xsl:call-template name="id.attribute"/>
    9421115        <xsl:if test="@role and $para.propagates.style != 0">
    943           <xsl:apply-templates select="." mode="class.attribute">
    944             <xsl:with-param name="class" select="@role"/>
    945           </xsl:apply-templates>
     1116          <xsl:choose>
     1117            <xsl:when test="@role and $para.propagates.style != 0">
     1118              <xsl:call-template name="common.html.attributes">
     1119                <xsl:with-param name="class" select="@role"/>
     1120              </xsl:call-template>
     1121            </xsl:when>
     1122            <xsl:otherwise>
     1123              <xsl:call-template name="common.html.attributes"/>
     1124            </xsl:otherwise>
     1125          </xsl:choose>
    9461126        </xsl:if>
    9471127
Note: See TracChangeset for help on using the changeset viewer.