Changeset 3d3643fd for stylesheets


Ignore:
Timestamp:
09/04/2004 06:45:43 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
6.0
Children:
ce1be57
Parents:
3453864
Message:

Left alignament for itemizedlist.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/pdf/lfs-mixed.xsl

    r3453864 r3d3643fd  
    158158  </xsl:template>
    159159
     160    <!-- Left alingnament for itemizedlist -->
     161  <xsl:template match="itemizedlist">
     162    <xsl:variable name="id">
     163      <xsl:call-template name="object.id"/>
     164    </xsl:variable>
     165    <xsl:variable name="label-width">
     166      <xsl:call-template name="dbfo-attribute">
     167        <xsl:with-param name="pis"
     168                        select="processing-instruction('dbfo')"/>
     169        <xsl:with-param name="attribute" select="'label-width'"/>
     170      </xsl:call-template>
     171    </xsl:variable>
     172    <xsl:if test="title">
     173      <xsl:apply-templates select="title" mode="list.title.mode"/>
     174    </xsl:if>
     175    <!-- Preserve order of PIs and comments -->
     176    <xsl:apply-templates
     177        select="*[not(self::listitem
     178                  or self::title
     179                  or self::titleabbrev)]
     180                |comment()[not(preceding-sibling::listitem)]
     181                |processing-instruction()[not(preceding-sibling::listitem)]"/>
     182    <fo:list-block id="{$id}" xsl:use-attribute-sets="list.block.spacing"
     183                  provisional-label-separation="0.2em" text-align="left">
     184      <xsl:attribute name="provisional-distance-between-starts">
     185        <xsl:choose>
     186          <xsl:when test="$label-width != ''">
     187            <xsl:value-of select="$label-width"/>
     188          </xsl:when>
     189          <xsl:otherwise>1.5em</xsl:otherwise>
     190        </xsl:choose>
     191      </xsl:attribute>
     192      <xsl:apply-templates
     193            select="listitem
     194                    |comment()[preceding-sibling::listitem]
     195                    |processing-instruction()[preceding-sibling::listitem]"/>
     196    </fo:list-block>
     197  </xsl:template>
     198
    160199</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.