Changeset 493b079


Ignore:
Timestamp:
08/20/2005 09:05:47 PM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
6.1
Children:
4727f975
Parents:
b773a24
Message:

Update 6.1 stylesheets

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/6.1/BOOK@4965 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
stylesheets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/blfs-nochunks.xsl

    rb773a24 r493b079  
    1919
    2020    <!-- This file contains our localization strings (for internationalization) -->
    21   <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
     21  <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/>
    2222
    2323    <!-- Dropping some unwanted style attributes -->
  • stylesheets/blfs-pdf.xsl

    rb773a24 r493b079  
    55                version="1.0">
    66
    7         <!-- We use FO and FOP as the processor -->
     7    <!-- We use FO and FOP as the processor -->
    88  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.68.1/fo/docbook.xsl"/>
    99  <xsl:param name="fop.extensions" select="1"/>
    1010  <xsl:param name="draft.mode" select="'no'"/>
    1111
    12         <!-- Including our others customized templates -->
     12    <!-- Including our others customized templates -->
    1313  <xsl:include href="pdf/lfs-admon.xsl"/>
    1414  <xsl:include href="pdf/lfs-index.xsl"/>
     
    2121  <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/>
    2222
    23         <!-- Probably want to make the paper size configurable -->
     23    <!-- Probably want to make the paper size configurable -->
    2424  <xsl:param name="paper.type" select="'letter'"/>
    2525
    2626    <!-- Printing Style -->
    27   <xsl:param name="double.sided" select="1"/>
     27  <xsl:param name="double.sided" select="0"/>
    2828  <xsl:param name="hyphenate">false</xsl:param>
    2929  <xsl:param name="alignment">justify</xsl:param>
    3030
    31         <!-- Font size -->
     31    <!-- Font size -->
    3232  <xsl:param name="body.font.master">9</xsl:param>
    3333  <xsl:param name="body.font.size">12pt</xsl:param>
    3434
    35         <!-- TOC generation -->
     35    <!-- TOC generation -->
    3636  <xsl:param name="generate.toc">
    3737    book      toc
  • stylesheets/pdf/lfs-mixed.xsl

    rb773a24 r493b079  
    66
    77
    8     <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage 
    9       tags should be placed in the XML source only to render the PDF output and 
     8    <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage
     9      tags should be placed in the XML source only to render the PDF output and
    1010      should be removed after it. But there is no a better way and we need this.-->
    1111  <xsl:template match="beginpage">
     
    139139  <xsl:param name="variablelist.max.termlength">32</xsl:param>
    140140
    141     <!-- Adding space before segmentedlist -->
     141    <!-- Making the same look that in the XHTML output. -->
    142142  <xsl:template match="segmentedlist">
    143143    <!--<xsl:variable name="presentation">
     
    162162      </xsl:when>
    163163      <xsl:otherwise>-->
    164         <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"
    165                 space-before.maximum="0.8em">
    166           <xsl:apply-templates/>
    167         </fo:block>
     164        <fo:list-block provisional-distance-between-starts="11em"
     165              provisional-label-separation="1em"
     166              xsl:use-attribute-sets="list.block.spacing">
     167          <xsl:apply-templates/>
     168        </fo:list-block>
    168169      <!--</xsl:otherwise>
    169170    </xsl:choose>-->
     171  </xsl:template>
     172
     173  <xsl:template match="seglistitem">
     174    <xsl:apply-templates/>
     175  </xsl:template>
     176
     177  <xsl:template match="seg">
     178    <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
     179    <xsl:variable name="seglist" select="ancestor::segmentedlist"/>
     180    <xsl:variable name="segtitles" select="$seglist/segtitle"/>
     181    <!-- Note: segtitle is only going to be the right thing in a well formed
     182      SegmentedList.  If there are too many Segs or too few SegTitles,
     183      you'll get something odd...maybe an error -->
     184    <fo:list-item xsl:use-attribute-sets="list.item.spacing">
     185      <fo:list-item-label end-indent="label-end()" text-align="start">
     186        <fo:block>
     187          <fo:inline font-weight="bold">
     188            <xsl:apply-templates select="$segtitles[$segnum=position()]"
     189                    mode="segtitle-in-seg"/>
     190            <xsl:text>: </xsl:text>
     191          </fo:inline>
     192        </fo:block>
     193      </fo:list-item-label>
     194      <fo:list-item-body start-indent="body-start()">
     195        <fo:block text-align="left">
     196          <xsl:apply-templates/>
     197        </fo:block>
     198      </fo:list-item-body>
     199    </fo:list-item>
    170200  </xsl:template>
    171201
Note: See TracChangeset for help on using the changeset viewer.