Changeset a9e89d0


Ignore:
Timestamp:
05/19/2004 08:16:58 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
8df9f63
Parents:
28501c7
Message:

HEAD: StyleSheets - unified the identation to use spaces.

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

Location:
stylesheets
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-chunked.xsl

    r28501c7 ra9e89d0  
    55                version="1.0">
    66
    7         <!-- We use XHTML -->
     7    <!-- We use XHTML -->
    88  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/chunk.xsl"/>
    99  <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
    1010 
    11         <!-- Including our others customized templates -->
     11    <!-- Including our others customized templates -->
    1212  <xsl:include href="xhtml/lfs-admon.xsl"/>
    1313  <xsl:include href="xhtml/lfs-index.xsl"/>
     
    1818  <xsl:include href="xhtml/lfs-toc.xsl"/>
    1919
    20         <!-- The CSS Stylesheet -->
     20    <!-- The CSS Stylesheet -->
    2121  <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/>
    2222
    23         <!-- Dropping some unwanted style attributes -->
     23    <!-- Dropping some unwanted style attributes -->
    2424  <xsl:param name="ulink.target" select="''"></xsl:param>
    2525  <xsl:param name="css.decoration" select="0"></xsl:param>
    2626 
    27         <!-- No XML declaration -->
    28         <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
     27    <!-- No XML declaration -->
     28  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
    2929
    3030</xsl:stylesheet>
  • stylesheets/lfs-print.xsl

    r28501c7 ra9e89d0  
    44                xmlns:fo="http://www.w3.org/1999/XSL/Format"
    55                version="1.0">
    6 
    7         <!-- We use FO and FOP as the processor -->
     6    <!-- We use FO and FOP as the processor -->
    87  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/fo/docbook.xsl"/>
    98  <xsl:param name="fop.extensions" select="1"/>
    109  <xsl:param name="draft.mode" select="'no'"/>
    1110
    12         <!-- Including our others customized templates -->
     11    <!-- Including our others customized templates -->
    1312  <xsl:include href="print/lfs-index.xsl"/>
    1413  <xsl:include href="print/lfs-pagesetup.xsl"/>
    1514
    16         <!-- Probably want to make the paper size configurable -->
     15    <!-- Probably want to make the paper size configurable -->
    1716  <xsl:param name="paper.type" select="'A4'"/>
    1817
    19         <!-- Printing Style -->
     18    <!-- Printing Style -->
    2019  <xsl:param name="double.sided" select="1"/>
    2120  <xsl:param name="hyphenate">true</xsl:param>
    2221  <xsl:param name="alignment">justify</xsl:param>
    2322 
    24         <!-- Hyphenate links -->
     23    <!-- Hyphenate links -->
    2524  <xsl:param name="ulink.hyphenate" select="' '"></xsl:param>
    2625
    27         <!-- Font size -->
     26    <!-- Font size -->
    2827  <xsl:param name="body.font.master">8</xsl:param>
    2928  <xsl:param name="body.font.size">10pt</xsl:param>
    3029
    31         <!-- TOC stuff -->
     30    <!-- TOC stuff -->
    3231  <xsl:param name="generate.toc">
    3332    book      toc
     
    3837  <xsl:param name="toc.indent.width" select="18"></xsl:param>
    3938
    40         <!-- Page number in Xref-->
    41   <xsl:param name="insert.xref.page.number">yes</xsl:param>
    42         <xsl:template match="*" mode="page.citation">
    43         <xsl:param name="id" select="'???'"/>
    44         <fo:inline keep-together.within-line="always">
    45                 <xsl:text>[p</xsl:text>
     39    <!-- Page number in Xref-->
     40  <xsl:param name="insert.xref.page.number">yes</xsl:param> <xsl:template match="*" mode="page.citation">
     41    <xsl:param name="id" select="'???'"/>
     42    <fo:inline keep-together.within-line="always">
     43      <xsl:text>[p</xsl:text>
    4644      <fo:page-number-citation ref-id="{$id}"/>
    47                 <xsl:text>]</xsl:text>
    48         </fo:inline>
    49         </xsl:template>
     45      <xsl:text>]</xsl:text>
     46    </fo:inline>
     47  </xsl:template>
    5048
    51         <!-- Prevent duplicate e-mails in the Acknowledgments pages-->
     49    <!-- Prevent duplicate e-mails in the Acknowledgments pages-->
    5250  <xsl:param name="ulink.show" select="0"/>
    5351
  • stylesheets/patcheslist.xsl

    r28501c7 ra9e89d0  
    66                version="1.0">
    77
    8         <xsl:output method="text"/>
     8  <xsl:output method="text"/>
    99
    1010  <xsl:template match="//text()">
    11         <xsl:text/>
     11    <xsl:text/>
    1212  </xsl:template>
    1313
    14         <xsl:template match="//ulink">
    15         <xsl:if test="contains(@url, '.patch')">
    16         <xsl:value-of select="@url"/>
    17                         <xsl:text>&#x0a;</xsl:text>
    18                 </xsl:if>
    19         </xsl:template>
     14  <xsl:template match="//ulink">
     15    <xsl:if test="contains(@url, '.patch')">
     16      <xsl:value-of select="@url"/>
     17      <xsl:text>&#x0a;</xsl:text>
     18    </xsl:if>
     19  </xsl:template>
    2020
    2121</xsl:stylesheet>
  • stylesheets/pdf/lfs-index.xsl

    r28501c7 ra9e89d0  
    1313                version="1.0">
    1414
    15         <!--Only one column to fit the table layout-->
     15    <!--Only one column to fit the table layout-->
    1616  <xsl:param name="column.count.index" select="1"/>
    1717
     
    1919  <xsl:template match="index" mode="title.markup">
    2020    <xsl:text>Index of packages and important installed files</xsl:text>
    21         </xsl:template>
     21  </xsl:template>
    2222
    23         <!-- Divisions-->
     23    <!-- Divisions-->
    2424  <xsl:template match="indexterm" mode="index-div">
    2525    <xsl:param name="scope" select="."/>
     
    5252                  <xsl:value-of select="$divtitle"/>
    5353                </xsl:otherwise>
    54                 </xsl:choose>
     54              </xsl:choose>
    5555            </xsl:with-param>
    5656          </xsl:call-template>
    5757        </xsl:if>
    5858        <fo:table table-layout="fixed" width="100%">
    59                 <fo:table-column column-number="1" column-width="11em"/>
    60                 <fo:table-column column-number="2" column-width="19em"/>
    61                 <fo:table-column column-number="3"/>
     59          <fo:table-column column-number="1" column-width="11em"/>
     60          <fo:table-column column-number="2" column-width="19em"/>
     61          <fo:table-column column-number="3"/>
    6262          <fo:table-body>
    6363            <xsl:apply-templates select="key('letter', $key)[&scope;]
     
    6767              <xsl:with-param name="scope" select="$scope"/>
    6868            </xsl:apply-templates>
    69                 </fo:table-body>
     69          </fo:table-body>
    7070        </fo:table>
    7171      </fo:block>
     
    7373  </xsl:template>
    7474
    75         <!-- Dropping the separator from here -->
     75    <!-- Dropping the separator from here -->
    7676  <xsl:template match="indexterm" mode="reference">
    7777    <xsl:param name="scope" select="."/>
    78         <xsl:call-template name="reference">
     78      <xsl:call-template name="reference">
    7979        <xsl:with-param name="zones" select="normalize-space(@zone)"/>
    8080        <xsl:with-param name="scope" select="$scope"/>
     
    8282  </xsl:template>
    8383
    84         <!-- Changing the output tags and re-addind the separator-->
     84    <!-- Changing the output tags and re-addind the separator-->
    8585  <xsl:template match="indexterm" mode="index-primary">
    8686    <xsl:param name="scope" select="."/>
     
    8888    <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
    8989    <fo:table-row>
    90         <fo:table-cell>
    91         <fo:block>
     90      <fo:table-cell>
     91        <fo:block>
    9292          <xsl:value-of select="primary"/>
    9393          <xsl:text>: </xsl:text>
    94                                 </fo:block>
     94        </fo:block>
    9595      </fo:table-cell>
    9696      <xsl:for-each select="$refs[not(see) and not(seealso)
     
    100100        </xsl:apply-templates>
    101101      </xsl:for-each>
    102                 </fo:table-row>
    103                 <xsl:if test="$refs/secondary">
     102    </fo:table-row>
     103    <xsl:if test="$refs/secondary">
    104104      <xsl:apply-templates select="$refs[secondary and count(.|key('secondary',
    105                                 concat($key, &sep;, &secondary;))[&scope;][1]) = 1]" mode="index-secondary">
    106                                 <xsl:with-param name="scope" select="$scope"/>
    107                                 <xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
    108                         </xsl:apply-templates>
    109                 </xsl:if>
     105              concat($key, &sep;, &secondary;))[&scope;][1]) = 1]" mode="index-secondary">
     106        <xsl:with-param name="scope" select="$scope"/>
     107        <xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
     108      </xsl:apply-templates>
     109    </xsl:if>
    110110  </xsl:template>
    111111
    112112  <xsl:template match="indexterm" mode="index-secondary">
    113113    <xsl:param name="scope" select="."/>
    114                 <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
     114     <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
    115115    <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
    116116    <fo:table-row>
    117         <fo:table-cell>
    118                     <fo:block start-indent="1pc">
     117      <fo:table-cell>
     118        <fo:block start-indent="1pc">
    119119          <xsl:value-of select="secondary"/>
    120120          <xsl:text>: </xsl:text>
    121121        </fo:block>
    122         </fo:table-cell>
     122      </fo:table-cell>
    123123      <xsl:for-each select="$refs[not(see) and not(seealso) and not(tertiary)]">
    124124        <xsl:apply-templates select="." mode="reference">
     
    126126        </xsl:apply-templates>
    127127      </xsl:for-each>
    128                 </fo:table-row>
     128    </fo:table-row>
    129129  </xsl:template>
    130130 
    131         <!-- Targets titles and bookmarks-->
     131    <!-- Targets titles and bookmarks-->
    132132  <xsl:template name="reference">
    133133    <xsl:param name="scope" select="."/>
     
    150150        </xsl:variable>
    151151        <fo:table-cell>
    152                 <fo:block>
     152          <fo:block>
    153153            <fo:basic-link internal-destination="{$id}">
    154154              <xsl:value-of select="$target/title"/>
     
    157157              </xsl:apply-templates>
    158158            </fo:basic-link>
    159                 </fo:block>
    160                                 </fo:table-cell>
     159          </fo:block>
     160        </fo:table-cell>
    161161        <fo:table-cell>
    162                 <fo:block>
     162          <fo:block>
    163163            <fo:basic-link internal-destination="{$id2}">
    164164              <xsl:text>description</xsl:text>
     
    167167              </xsl:apply-templates>
    168168            </fo:basic-link>
    169                 </fo:block>
    170                                 </fo:table-cell>
     169          </fo:block>
     170        </fo:table-cell>
    171171      </xsl:when>
    172172      <xsl:otherwise>
     
    179179        </xsl:variable>
    180180        <fo:table-cell>
    181                 <fo:block>
     181          <fo:block>
    182182            <fo:basic-link internal-destination="{$id}">
    183183              <xsl:value-of select="$target/title"/>
     
    186186              </xsl:apply-templates>
    187187            </fo:basic-link>
    188                 </fo:block>
    189                                 </fo:table-cell>
     188          </fo:block>
     189        </fo:table-cell>
    190190      </xsl:otherwise>
    191191    </xsl:choose>
  • stylesheets/pdf/lfs-pagesetup.xsl

    r28501c7 ra9e89d0  
    55                version="1.0">
    66
    7         <!-- Force section1's onto a new page -->
     7    <!-- Force section1's onto a new page -->
    88  <xsl:attribute-set name="section.level1.properties">
    9         <xsl:attribute name="break-after">
    10         <xsl:choose>
    11                         <xsl:when test="not(position()=last())">
    12                 <xsl:text>page</xsl:text>
    13                 </xsl:when>
     9    <xsl:attribute name="break-after">
     10      <xsl:choose>
     11        <xsl:when test="not(position()=last())">
     12          <xsl:text>page</xsl:text>
     13        </xsl:when>
    1414        <xsl:otherwise>
    15                 <xsl:text>auto</xsl:text>
     15          <xsl:text>auto</xsl:text>
    1616        </xsl:otherwise>
    1717      </xsl:choose>
     
    1919  </xsl:attribute-set>
    2020
    21                 <!-- Header -->
     21    <!-- Header -->
    2222  <xsl:attribute-set name="header.content.properties">
    2323    <xsl:attribute name="font-family">
     
    3838      <xsl:when test="$gentext-key = 'book'"/>
    3939      <xsl:otherwise>
    40         <xsl:call-template name="header.content"/>
     40        <xsl:call-template name="header.content"/>
    4141      </xsl:otherwise>
    4242    </xsl:choose>
    4343  </xsl:template>
    4444
    45                 <!-- Centered titles for book and part -->
     45    <!-- Centered titles for book and part -->
    4646  <xsl:template name="book.titlepage">
    4747    <fo:block space-before="2in">
     
    7272  </xsl:template>
    7373
    74         <!-- Margins -->
     74    <!-- Margins -->
    7575  <xsl:param name="page.margin.inner">0.75in</xsl:param>
    7676  <xsl:param name="page.margin.outer">0.75in</xsl:param>
     
    103103  </xsl:attribute-set>
    104104
    105         <!-- Others-->
     105    <!-- Others-->
    106106  <xsl:param name="header.rule" select="0"></xsl:param>
    107107  <xsl:param name="footer.rule" select="0"></xsl:param>
    108         <xsl:param name="marker.section.level" select="-1"></xsl:param>
     108  <xsl:param name="marker.section.level" select="-1"></xsl:param>
    109109
    110         <!-- Dropping a blank page -->
    111         <xsl:template name="book.titlepage.separator"/>
     110    <!-- Dropping a blank page -->
     111  <xsl:template name="book.titlepage.separator"/>
    112112
    113         <!-- How render a variablelist -->
    114         <xsl:param name="variablelist.as.blocks" select="1"/>
     113    <!-- How render a variablelist -->
     114  <xsl:param name="variablelist.as.blocks" select="1"/>
    115115
    116116</xsl:stylesheet>
  • stylesheets/print/lfs-index.xsl

    r28501c7 ra9e89d0  
    1313    <!--Title-->
    1414  <xsl:template match="index" mode="title.markup">
    15         <xsl:param name="allow-anchors" select="0"/>
     15    <xsl:param name="allow-anchors" select="0"/>
    1616    <xsl:text>Index of packages and important installed files</xsl:text>
    17         </xsl:template>
     17  </xsl:template>
    1818
    19         <!-- Divisions-->
     19    <!-- Divisions-->
    2020  <xsl:template match="indexterm" mode="index-div">
    2121    <xsl:param name="scope" select="."/>
     
    6464  </xsl:template>
    6565
    66         <!-- The separator -->
     66    <!-- The separator -->
    6767  <xsl:template match="indexterm" mode="reference">
    6868    <xsl:param name="scope" select="."/>
    6969    <xsl:text>:   </xsl:text>
    70         <xsl:call-template name="reference">
     70      <xsl:call-template name="reference">
    7171        <xsl:with-param name="zones" select="normalize-space(@zone)"/>
    7272        <xsl:with-param name="scope" select="$scope"/>
     
    7474  </xsl:template>
    7575 
    76         <!--Bookmarks-->
     76    <!--Bookmarks-->
    7777  <xsl:template name="reference">
    7878    <xsl:param name="scope" select="."/>
     
    9696        <fo:basic-link internal-destination="{$id}">
    9797          <xsl:apply-templates select="$target" mode="page.citation">
    98                 <xsl:with-param name="id" select="$id"/>
     98            <xsl:with-param name="id" select="$id"/>
    9999          </xsl:apply-templates>
    100100        </fo:basic-link>
     
    102102        <fo:basic-link internal-destination="{$id2}">
    103103          <xsl:apply-templates select="$target2" mode="page.citation">
    104                 <xsl:with-param name="id" select="$id2"/>
     104            <xsl:with-param name="id" select="$id2"/>
    105105          </xsl:apply-templates>
    106106        </fo:basic-link>
     
    116116        <fo:basic-link internal-destination="{$id}">
    117117          <xsl:apply-templates select="$target" mode="page.citation">
    118                 <xsl:with-param name="id" select="$id"/>
     118            <xsl:with-param name="id" select="$id"/>
    119119          </xsl:apply-templates>
    120120        </fo:basic-link>
  • stylesheets/print/lfs-pagesetup.xsl

    r28501c7 ra9e89d0  
    55                version="1.0">
    66
    7         <!-- Force section1's onto a new page -->
     7    <!-- Force section1's onto a new page -->
    88  <xsl:attribute-set name="section.level1.properties">
    9         <xsl:attribute name="break-after">
    10         <xsl:choose>
    11                         <xsl:when test="not(position()=last())">
    12                 <xsl:text>page</xsl:text>
    13                 </xsl:when>
     9    <xsl:attribute name="break-after">
     10      <xsl:choose>
     11        <xsl:when test="not(position()=last())">
     12          <xsl:text>page</xsl:text>
     13        </xsl:when>
    1414        <xsl:otherwise>
    15                 <xsl:text>auto</xsl:text>
     15          <xsl:text>auto</xsl:text>
    1616        </xsl:otherwise>
    1717      </xsl:choose>
     
    1919  </xsl:attribute-set>
    2020
    21                 <!-- Header -->
     21    <!-- Header -->
    2222  <xsl:template name="header.content">
    23         <xsl:param name="sequence" select="''"/>
    24                 <fo:block>
     23    <xsl:param name="sequence" select="''"/>
     24    <fo:block>
    2525      <xsl:attribute name="text-align">
    2626        <xsl:choose>
     
    3636
    3737  <xsl:template name="header.table">
    38         <xsl:param name="sequence" select="''"/>
     38    <xsl:param name="sequence" select="''"/>
    3939    <xsl:param name="gentext-key" select="''"/>
    4040    <xsl:choose>
    4141      <xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/>
    4242      <xsl:otherwise>
    43         <xsl:call-template name="header.content">
    44                                         <xsl:with-param name="sequence" select="$sequence"/>
    45                                 </xsl:call-template>
     43        <xsl:call-template name="header.content">
     44          <xsl:with-param name="sequence" select="$sequence"/>
     45        </xsl:call-template>
    4646      </xsl:otherwise>
    4747    </xsl:choose>
    4848  </xsl:template>
    4949
    50                 <!-- Centered titles for book and part -->
     50    <!-- Centered titles for book and part -->
    5151  <xsl:template name="book.titlepage">
    5252    <fo:block space-before="2in">
     
    7777  </xsl:template>
    7878
    79         <!-- Margins -->
     79    <!-- Margins -->
    8080  <xsl:param name="page.margin.inner">1in</xsl:param>
    8181  <xsl:param name="page.margin.outer">0.5in</xsl:param>
     
    108108  </xsl:attribute-set>
    109109
    110         <!-- Others-->
     110    <!-- Others-->
    111111  <xsl:param name="header.rule" select="0"></xsl:param>
    112112  <xsl:param name="footer.rule" select="0"></xsl:param>
    113         <xsl:param name="marker.section.level" select="-1"></xsl:param>
     113  <xsl:param name="marker.section.level" select="-1"></xsl:param>
    114114
    115         <!-- Dropping a blank page -->
    116         <xsl:template name="book.titlepage.separator"/>
     115    <!-- Dropping a blank page -->
     116  <xsl:template name="book.titlepage.separator"/>
    117117
    118         <!-- How render a variablelist -->
    119         <xsl:param name="variablelist.as.blocks" select="1"/>
     118    <!-- How render a variablelist -->
     119  <xsl:param name="variablelist.as.blocks" select="1"/>
    120120
    121121</xsl:stylesheet>
  • stylesheets/xhtml/lfs-admon.xsl

    r28501c7 ra9e89d0  
    55                version="1.0">
    66
    7         <!-- Use graphics in admonitions -->
     7    <!-- Use graphics in admonitions -->
    88  <xsl:param name="admon.graphics" select="1"/>
    99  <xsl:param name="admon.graphics.path">../images/</xsl:param>
    1010  <xsl:param name="admon.graphics.extension" select="'.png'"/>
    1111
    12         <!-- Changing the output tagging -->
     12    <!-- Changing the output tagging -->
    1313  <xsl:template name="graphical.admonition">
    1414    <xsl:variable name="admon.type">
     
    2323    </xsl:variable>
    2424    <div class="admonition">
    25         <div class ="admonhead">
     25      <div class ="admonhead">
    2626        <img alt="[{$admon.type}]">
    2727          <xsl:attribute name="src">
     
    3838      </div>
    3939      <div class="admonbody">
    40                                 <xsl:apply-templates/>
     40        <xsl:apply-templates/>
    4141      </div>
    4242    </div>
  • stylesheets/xhtml/lfs-index.xsl

    r28501c7 ra9e89d0  
    2121  <xsl:template match="index" mode="title.markup">
    2222    <xsl:value-of select="$index-title"/>
    23         </xsl:template>
     23  </xsl:template>
    2424 
    2525  <xsl:template name="index.titlepage">
    2626    <div class="titlepage">
    27         <h1 class="index">
    28                 <xsl:value-of select="$index-title"/>
    29                         </h1>
     27      <h1 class="index">
     28        <xsl:value-of select="$index-title"/>
     29      </h1>
    3030    </div>
    3131  </xsl:template>
    3232
    33         <!--Divisions-->
     33    <!--Divisions-->
    3434  <xsl:template match="indexterm" mode="index-div">
    3535    <xsl:param name="scope" select="."/>
    3636    <xsl:variable name="key" select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
    3737    <xsl:variable name="divtitle" select="translate($key, &lowercase;, &uppercase;)"/>
    38         <!-- Make sure that we don't generate a div if there are no terms in scope -->
     38      <!-- Make sure that we don't generate a div if there are no terms in scope -->
    3939    <xsl:if test="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1]) = 1]">
    4040      <div class="indexdiv">
    4141        <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)">
    4242          <h2>
    43                 <xsl:choose>
    44                 <xsl:when test="$divtitle = 'A'">
    45                 <xsl:text>Packages</xsl:text>
     43            <xsl:choose>
     44              <xsl:when test="$divtitle = 'A'">
     45                <xsl:text>Packages</xsl:text>
    4646             </xsl:when>
    4747             <xsl:when test="$divtitle = 'B'">
    48                 <xsl:text>Programs</xsl:text>
     48                <xsl:text>Programs</xsl:text>
    4949             </xsl:when>
    5050             <xsl:when test="$divtitle = 'C'">
    51                 <xsl:text>Libraries</xsl:text>
     51                <xsl:text>Libraries</xsl:text>
    5252             </xsl:when>
    5353             <xsl:when test="$divtitle = 'D'">
    54                 <xsl:text>Scripts</xsl:text>
     54                <xsl:text>Scripts</xsl:text>
    5555             </xsl:when>
    5656              <xsl:when test="$divtitle = 'E'">
     
    5858              </xsl:when>
    5959             <xsl:otherwise>
    60                         <xsl:value-of select="$divtitle"/>
    61                                                 </xsl:otherwise>
     60              <xsl:value-of select="$divtitle"/>
     61            </xsl:otherwise>
    6262           </xsl:choose>
    6363          </h2>
     
    6565        <ul>
    6666          <xsl:apply-templates select="key('letter', $key)[&scope;]
    67                                         [count(.|key('primary', &primary;)[&scope;][1])=1]" mode="index-primary">
     67                  [count(.|key('primary', &primary;)[&scope;][1])=1]" mode="index-primary">
    6868            <xsl:with-param name="scope" select="$scope"/>
    6969            <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
     
    7474  </xsl:template>
    7575
    76         <!-- Dropping the separator from here-->
     76    <!-- Dropping the separator from here-->
    7777  <xsl:template match="indexterm" mode="reference">
    7878    <xsl:param name="scope" select="."/>
     
    8181        <xsl:with-param name="scope" select="$scope"/>
    8282      </xsl:call-template>
    83         </xsl:template>
     83  </xsl:template>
    8484
    85         <!-- Changing the output tags and re-addind the separator-->
     85    <!-- Changing the output tags and re-addind the separator-->
    8686  <xsl:template match="indexterm" mode="index-primary">
    8787    <xsl:param name="scope" select="."/>
     
    8989    <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
    9090    <li>
    91         <strong class="item">
    92         <xsl:value-of select="primary"/>
     91      <strong class="item">
     92        <xsl:value-of select="primary"/>
    9393        <xsl:text>: </xsl:text>
    94                         </strong>
     94      </strong>
    9595      <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section',
    96                                 concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
     96              concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
    9797              |ancestor-or-self::chapter |ancestor-or-self::appendix |ancestor-or-self::preface
    9898              |ancestor-or-self::sect1 |ancestor-or-self::sect2 |ancestor-or-self::sect3
     
    102102        </xsl:apply-templates>
    103103      </xsl:for-each>
    104         <xsl:if test="$refs/secondary">
     104      <xsl:if test="$refs/secondary">
    105105        <ul>
    106106          <xsl:apply-templates select="$refs[secondary and count(.|key('secondary',
    107                                         concat($key, &#34; &#34;, normalize-space(concat(secondary/@sortas,
     107                  concat($key, &#34; &#34;, normalize-space(concat(secondary/@sortas,
    108108                  secondary[not(@sortas)]))))[&scope;][1]) = 1]" mode="index-secondary">
    109109            <xsl:with-param name="scope" select="$scope"/>
    110110            <xsl:sort select="translate(normalize-space(concat(secondary/@sortas,
    111                                         secondary[not(@sortas)])), &lowercase;, &uppercase;)"/>
     111                    secondary[not(@sortas)])), &lowercase;, &uppercase;)"/>
    112112          </xsl:apply-templates>
    113                 </ul>
    114         </xsl:if>
     113         </ul>
     114      </xsl:if>
    115115    </li>
    116116  </xsl:template>
     
    119119    <xsl:param name="scope" select="."/>
    120120    <xsl:variable name="key" select="concat(&primary;, &#34; &#34;,
    121                                 normalize-space(concat(secondary/@sortas, secondary[not(@sortas)])))"/>
     121            normalize-space(concat(secondary/@sortas, secondary[not(@sortas)])))"/>
    122122    <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
    123123    <li>
    124         <strong class="secitem">
    125         <xsl:value-of select="secondary"/>
     124      <strong class="secitem">
     125        <xsl:value-of select="secondary"/>
    126126        <xsl:text>: </xsl:text>
    127                         </strong>
     127      </strong>
    128128      <xsl:for-each select="$refs[generate-id() = generate-id(key('secondary-section',
    129                                 concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
     129              concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
    130130              |ancestor-or-self::chapter |ancestor-or-self::appendix |ancestor-or-self::preface
    131131              |ancestor-or-self::sect1 |ancestor-or-self::sect2 |ancestor-or-self::sect3
  • stylesheets/xhtml/lfs-legalnotice.xsl

    r28501c7 ra9e89d0  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
    42
    53<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    75                version="1.0">
    86
    9         <!-- Generating the page -->
     7    <!-- Generating the page -->
    108  <xsl:template match="legalnotice" mode="titlepage.mode">
    119    <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
  • stylesheets/xhtml/lfs-mixed.xsl

    r28501c7 ra9e89d0  
    55                version="1.0">
    66
    7                 <!-- screen -->
     7    <!-- screen -->
    88  <xsl:template match="screen">
    99    <xsl:choose>
    10                 <!-- Temporally hack -->
     10        <!-- Temporally hack -->
    1111      <xsl:when test="child::* = userinput">
    1212        <pre class="{name(.)}">
     
    2525 
    2626  <!-- variablelist -->
    27 <xsl:template match="variablelist">
    28   <div class="{name(.)}">
    29     <xsl:if test="title">
    30         <h3>
    31         <xsl:value-of select="title"/>
    32         </h3>
    33     </xsl:if>
    34     <dl>
    35         <xsl:if test="@role">
    36         <xsl:attribute name="class">
    37                 <xsl:value-of select="@role"/>
    38                                 </xsl:attribute>
    39                         </xsl:if>
    40                         <xsl:apply-templates select="varlistentry"/>
    41     </dl>
    42   </div>
    43 </xsl:template>
     27  <xsl:template match="variablelist">
     28    <div class="{name(.)}">
     29      <xsl:if test="title">
     30        <xsl:choose>
     31          <xsl:when test="@role = 'materials'">
     32            <h3>
     33              <xsl:value-of select="title"/>
     34            </h3>
     35          </xsl:when>
     36          <xsl:otherwise>
     37            <h4>
     38              <xsl:value-of select="title"/>
     39            </h4>
     40          </xsl:otherwise>
     41        </xsl:choose>
     42      </xsl:if>
     43      <dl>
     44        <xsl:if test="@role">
     45          <xsl:attribute name="class">
     46            <xsl:value-of select="@role"/>
     47          </xsl:attribute>
     48        </xsl:if>
     49        <xsl:apply-templates select="varlistentry"/>
     50      </dl>
     51    </div>
     52  </xsl:template>
     53 
    4454</xsl:stylesheet>
  • stylesheets/xhtml/lfs-navigational.xsl

    r28501c7 ra9e89d0  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
    42
    53<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    1614  </xsl:template>
    1715
    18         <!-- Header Navigation-->
     16    <!-- Header Navigation-->
    1917  <xsl:template name="header.navigation">
    2018    <xsl:param name="prev" select="/foo"/>
     
    6563              </a>
    6664            </li>
     65          </xsl:if>
     66          <xsl:if test="count($up)&gt;0 and $up != $home">
     67            <li class="up">
     68              <a accesskey="u">
     69                <xsl:attribute name="href">
     70                  <xsl:call-template name="href.target">
     71                    <xsl:with-param name="object" select="$up"/>
     72                  </xsl:call-template>
     73                </xsl:attribute>
     74                <xsl:text>Up</xsl:text>
     75              </a>
     76            </li>
     77          </xsl:if>
    6778          <li class="home">
    6879            <a accesskey="h">
     
    7586            </a>
    7687          </li>
    77           </xsl:if>
    7888        </ul>
    7989      </div>
     
    8191  </xsl:template>
    8292
    83         <!-- Footer Navigation-->
     93    <!-- Footer Navigation-->
    8494  <xsl:template name="footer.navigation">
    8595    <xsl:param name="prev" select="/foo"/>
     
    104114              </a>
    105115              <p>
    106                 <xsl:apply-templates select="$prev" mode="object.title.markup"/>
     116                <xsl:apply-templates select="$prev" mode="object.title.markup"/>
    107117              </p>
    108118            </li>
     
    119129              </a>
    120130              <p>
    121                 <xsl:apply-templates select="$next" mode="object.title.markup"/>
     131                <xsl:apply-templates select="$next" mode="object.title.markup"/>
    122132              </p>
    123133            </li>
  • stylesheets/xhtml/lfs-titles.xsl

    r28501c7 ra9e89d0  
    3131  <xsl:template name="sect1.titlepage">
    3232    <xsl:choose>
    33                 <!-- I should find a better test -->
     33        <!-- I should find a better test -->
    3434      <xsl:when test="position() = 4">
    3535        <div class="titlepage">
  • stylesheets/xhtml/lfs-toc.xsl

    r28501c7 ra9e89d0  
    55                version="1.0">
    66               
    7                 <!-- General settings -->
     7    <!-- General settings -->
    88  <xsl:param name="generate.toc">
    99    appendix  toc
     
    2828  <xsl:param name="toc.max.depth">3</xsl:param>
    2929 
    30         <!-- Making the TOC -->
    31         <xsl:template name="make.toc">
     30    <!-- Making the TOC -->
     31  <xsl:template name="make.toc">
    3232    <xsl:param name="toc-context" select="."/>
    3333    <xsl:param name="nodes" select="/NOT-AN-ELEMENT"/>
     
    4747    </xsl:if>
    4848  </xsl:template>
    49        
     49 
    5050    <!-- Making the subtocs -->
    5151  <xsl:template name="subtoc">
     
    7272      </xsl:call-template>
    7373      <xsl:if test="$toc.section.depth &gt; $depth and count($nodes)&gt;0
    74                                 and $toc.max.depth &gt; $depth.from.context">
     74              and $toc.max.depth &gt; $depth.from.context">
    7575        <xsl:copy-of select="$subtoc"/>
    7676      </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.