Changeset f7bd105 for stylesheets


Ignore:
Timestamp:
12/19/2004 09:17:48 PM (19 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, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
faf3398
Parents:
6d3af72
Message:

Updated the stylesheets and Makefile.
Removed contrib/, index-pdf.xml and goTidy.

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

Location:
stylesheets
Files:
5 added
16 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-chunked.xsl

    r6d3af72 rf7bd105  
    66
    77  <xsl:import href="lfs-chunked2.xsl"/>
    8   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/chunk-common.xsl"/>
    9   <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/manifest.xsl"/>
     8  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/chunk-common.xsl"/>
     9  <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/manifest.xsl"/>
    1010
    1111    <!--  From the original chunk.xsl file:
     
    2525    Voila! (Man I hope we can do this better in XSLT 2.0)  -->
    2626
    27   <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/chunk-code.xsl"/>
     27  <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/chunk-code.xsl"/>
    2828
    2929    <!-- Including our others customized chunks templates -->
  • stylesheets/lfs-chunked2.xsl

    r6d3af72 rf7bd105  
    66
    77    <!-- We use XHTML -->
    8   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
     8  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/docbook.xsl"/>
    99  <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
    1010
    1111    <!-- Including our others customized elements templates -->
    1212  <xsl:include href="xhtml/lfs-admon.xsl"/>
     13  <xsl:include href="xhtml/lfs-sections.xsl"/>
    1314  <xsl:include href="xhtml/lfs-mixed.xsl"/>
    1415  <xsl:include href="xhtml/lfs-titles.xsl"/>
    1516  <xsl:include href="xhtml/lfs-toc.xsl"/>
     17  <xsl:include href="xhtml/lfs-xref.xsl"/>
     18
     19    <!-- This file contains our localization strings (for internationalization) -->
     20  <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
    1621
    1722    <!-- The CSS Stylesheet -->
  • stylesheets/lfs-nochunks.xsl

    r6d3af72 rf7bd105  
    66
    77    <!-- We use XHTML -->
    8   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
     8  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/docbook.xsl"/>
    99
    1010  <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
     
    1515  <xsl:include href="xhtml/lfs-index.xsl"/>
    1616  <xsl:include href="xhtml/lfs-mixed.xsl"/>
    17   <xsl:include href="xhtml/lfs-navigational.xsl"/>
     17  <xsl:include href="xhtml/lfs-sections.xsl"/>
    1818  <xsl:include href="xhtml/lfs-toc.xsl"/>
     19  <xsl:include href="xhtml/lfs-xref.xsl"/>
     20
     21    <!-- This file contains our localization strings (for internationalization) -->
     22  <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
    1923
    2024    <!-- Dropping some unwanted style attributes -->
    2125  <xsl:param name="ulink.target" select="''"></xsl:param>
    2226  <xsl:param name="css.decoration" select="0"></xsl:param>
     27
     28    <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)-->
     29  <xsl:template name="sect2.titlepage">
     30    <xsl:choose>
     31      <xsl:when test="string-length(title) = 0"/>
     32      <xsl:otherwise>
     33        <div class="titlepage">
     34          <xsl:if test="@id">
     35            <a id="{@id}" name="{@id}"/>
     36          </xsl:if>
     37          <h3 class="{name(.)}">
     38            <xsl:apply-templates select="." mode="label.markup"/>
     39            <xsl:text>. </xsl:text>
     40            <xsl:value-of select="title"/>
     41          </h3>
     42        </div>
     43      </xsl:otherwise>
     44    </xsl:choose>
     45  </xsl:template>
     46
     47    <!-- Added the role param for proper punctuation in xref calls
     48            (from lfs-titles.xsl). -->
     49  <xsl:template match="*" mode="insert.title.markup">
     50    <xsl:param name="purpose"/>
     51    <xsl:param name="xrefstyle"/>
     52    <xsl:param name="title"/>
     53    <xsl:param name="role"/>
     54    <xsl:choose>
     55      <xsl:when test="$purpose = 'xref' and titleabbrev">
     56        <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     57      </xsl:when>
     58      <xsl:otherwise>
     59        <xsl:copy-of select="$title"/>
     60        <xsl:value-of select="$role"/>
     61      </xsl:otherwise>
     62    </xsl:choose>
     63  </xsl:template>
    2364
    2465    <!-- The CSS Stylesheet -->
     
    174215}
    175216
     217/* itemizedlist */
     218
     219div.itemizedlist {
     220  margin-left: 1em;
     221}
     222
    176223/* Indented blocks */
    177224p, ul, dl, code, blockquote {
  • stylesheets/lfs-pdf.xsl

    r6d3af72 rf7bd105  
    55                version="1.0">
    66    <!-- We use FO and FOP as the processor -->
    7   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/fo/docbook.xsl"/>
     7  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/fo/docbook.xsl"/>
    88  <xsl:param name="fop.extensions" select="1"/>
    99  <xsl:param name="draft.mode" select="'no'"/>
     
    1313  <xsl:include href="pdf/lfs-pagesetup.xsl"/>
    1414  <xsl:include href="pdf/lfs-sections.xsl"/>
     15  <xsl:include href="pdf/lfs-admon.xsl"/>
    1516  <xsl:include href="pdf/lfs-mixed.xsl"/>
     17  <xsl:include href="pdf/lfs-xref.xsl"/>
     18
     19    <!-- This file contains our localization strings (for internationalization) -->
     20  <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
    1621
    1722    <!-- Paper size required by the publisher -->
     
    2631
    2732    <!-- Font size -->
    28   <xsl:param name="body.font.master">10</xsl:param>
     33  <xsl:param name="body.font.master">9</xsl:param>
    2934  <xsl:param name="body.font.size">12pt</xsl:param>
    3035
  • stylesheets/lfs-profile.xsl

    r6d3af72 rf7bd105  
    55                version="1.0">
    66
    7   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/profiling/profile.xsl"/>
     7  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/profiling/profile.xsl"/>
    88
    99</xsl:stylesheet>
  • stylesheets/lfs.css

    r6d3af72 rf7bd105  
    111111}
    112112
    113 li.preface {
     113li.preface, li.appendix {
    114114  margin-left: 1em;
    115115}
     
    231231}
    232232
     233pre {
     234  margin-top: .5em;
     235  margin-bottom: .5em;
     236}
     237
    233238pre.userinput {
    234239  color: #101310;
     
    240245}
    241246
     247.literal {
     248  font-weight: normal;
     249}
     250
    242251pre.screen {
    243252  color: #000;
     
    286295}
    287296
    288 div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
     297div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
    289298  padding-bottom: 0.5em;
    290299}
    291300
    292 div.preface h1, div.part h1, div.chapter h1, div.sect1 h1, div.index h1 {
     301div.preface h1, div.part h1, div.chapter h1, div.sect1 h1, div.appendix h1, div.index h1 {
    293302  background: #f5f6f7;
    294303  border-bottom: .1em solid #dbddec;
  • stylesheets/patcheslist.xsl

    r6d3af72 rf7bd105  
    3333  <xsl:template match="//ulink">
    3434    <xsl:if test="contains(@url, '.patch') and contains(@url, '&patches-root;')">
    35       <xsl:text>  cp </xsl:text>
    36       <xsl:text>/home/httpd/</xsl:text>
    37       <xsl:value-of select="substring-before (substring-after ('&patches-root;', 'http://'), $links.directory)"/>
    38       <xsl:text>downloads/</xsl:text>
    39       <xsl:if test="contains (@url, '-')">
    40         <xsl:variable name="cut" select="translate (@url, '0123456789', '2222222222')"/>
    41         <xsl:choose>
    42           <xsl:when test="contains ($cut, ',')">
    43             <xsl:value-of select="substring-before (substring-after($cut, $links.directory), ',2')"/>
    44           </xsl:when>
    45           <xsl:otherwise>
     35      <xsl:choose>
     36        <xsl:when test="ancestor-or-self::*/@condition = 'pdf'"/>
     37        <xsl:otherwise>
     38          <xsl:text>  cp </xsl:text>
     39          <xsl:text>/home/httpd/</xsl:text>
     40          <xsl:value-of select="substring-before (substring-after ('&patches-root;', 'http://'), $links.directory)"/>
     41          <xsl:text>downloads/</xsl:text>
     42          <xsl:if test="contains (@url, '-')">
     43            <xsl:variable name="cut" select="translate (@url, '0123456789', '2222222222')"/>
     44            <xsl:variable name="links.directory2" select="translate ($links.directory, '0123456789', '2222222222')"/>
    4645            <xsl:choose>
    47               <xsl:when test="contains ($cut, '-src-2')">
    48                 <xsl:value-of select="substring-before (substring-after($cut, $links.directory), '-src-2')"/>
     46              <xsl:when test="contains ($cut, ',')">
     47                <xsl:value-of select="substring-before (substring-after($cut, $links.directory2), ',2')"/>
    4948              </xsl:when>
    5049              <xsl:otherwise>
    51                 <xsl:value-of select="substring-before (substring-after($cut, $links.directory), '-2')"/>
     50                <xsl:choose>
     51                  <xsl:when test="contains ($cut, '-src-2')">
     52                    <xsl:value-of select="substring-before (substring-after($cut, $links.directory2), '-src-2')"/>
     53                  </xsl:when>
     54                  <xsl:otherwise>
     55                    <xsl:value-of select="substring-before (substring-after($cut, $links.directory2), '-2')"/>
     56                  </xsl:otherwise>
     57                </xsl:choose>
    5258              </xsl:otherwise>
    5359            </xsl:choose>
    54           </xsl:otherwise>
    55         </xsl:choose>
    56       </xsl:if>
    57       <xsl:text>/</xsl:text>
    58       <xsl:value-of select="substring-after(@url, $links.directory)"/>
    59       <xsl:text> . &#x0a;</xsl:text>
     60          </xsl:if>
     61          <xsl:text>/</xsl:text>
     62          <xsl:value-of select="substring-after(@url, $links.directory)"/>
     63          <xsl:text> . &#x0a;</xsl:text>
     64        </xsl:otherwise>
     65      </xsl:choose>
    6066    </xsl:if>
    6167  </xsl:template>
  • stylesheets/pdf/lfs-index.xsl

    r6d3af72 rf7bd105  
    1414  <xsl:template match="index" mode="title.markup">
    1515    <xsl:param name="allow-anchors" select="0"/>
    16     <xsl:text>Index</xsl:text>
     16    <xsl:call-template name="gentext">
     17      <xsl:with-param name="key">Index</xsl:with-param>
     18    </xsl:call-template>
    1719  </xsl:template>
    1820
     
    3133              <xsl:choose>
    3234                <xsl:when test="$divtitle = 'A'">
    33                   <xsl:text>Packages</xsl:text>
    34               </xsl:when>
    35               <xsl:when test="$divtitle = 'B'">
    36                   <xsl:text>Programs</xsl:text>
    37               </xsl:when>
    38               <xsl:when test="$divtitle = 'C'">
    39                   <xsl:text>Libraries</xsl:text>
    40               </xsl:when>
    41               <xsl:when test="$divtitle = 'D'">
    42                   <xsl:text>Scripts</xsl:text>
    43               </xsl:when>
    44               <xsl:when test="$divtitle = 'E'">
    45                   <xsl:text>Others</xsl:text>
    46               </xsl:when>
    47               <xsl:otherwise>
    48                 <xsl:value-of select="$divtitle"/>
    49               </xsl:otherwise>
    50             </xsl:choose>
     35                  <xsl:call-template name="gentext">
     36                    <xsl:with-param name="key">Packages</xsl:with-param>
     37                  </xsl:call-template>
     38                </xsl:when>
     39                <xsl:when test="$divtitle = 'B'">
     40                  <xsl:call-template name="gentext">
     41                    <xsl:with-param name="key">Programs</xsl:with-param>
     42                  </xsl:call-template>
     43                </xsl:when>
     44                <xsl:when test="$divtitle = 'C'">
     45                  <xsl:call-template name="gentext">
     46                    <xsl:with-param name="key">Libraries</xsl:with-param>
     47                  </xsl:call-template>
     48                </xsl:when>
     49                <xsl:when test="$divtitle = 'D'">
     50                  <xsl:call-template name="gentext">
     51                    <xsl:with-param name="key">Scripts</xsl:with-param>
     52                  </xsl:call-template>
     53                </xsl:when>
     54                <xsl:when test="$divtitle = 'E'">
     55                  <xsl:call-template name="gentext">
     56                    <xsl:with-param name="key">Others</xsl:with-param>
     57                  </xsl:call-template>
     58                </xsl:when>
     59                <xsl:otherwise>
     60                  <xsl:value-of select="$divtitle"/>
     61                </xsl:otherwise>
     62              </xsl:choose>
    5163            </xsl:with-param>
    5264          </xsl:call-template>
  • stylesheets/pdf/lfs-mixed.xsl

    r6d3af72 rf7bd105  
    55                version="1.0">
    66
    7  
    8     <!-- This is a hack and isn't correct semantically. The beginpage tags must
    9       be placed in the XML source only to render the final PDF output, and must
    10       be removed after.-->
     7
     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
     10      should be removed after it. But there is no a better way and we need this.-->
    1111  <xsl:template match="beginpage">
    1212    <fo:block break-after="page"/>
    1313  </xsl:template>
    14 
    15     <!-- Split URLs -->
    16   <xsl:template name="hyphenate-url">
     14 
     15    <!-- Allow forced line breaks inside paragraphs emulating literallayout. -->
     16 <xsl:template match="para">
     17    <xsl:choose>
     18      <xsl:when test="./@remap='verbatim'">
     19        <fo:block wrap-option="no-wrap"
     20                    white-space-collapse="false"
     21                    white-space-treatment="preserve"
     22                    text-align="start"
     23                    linefeed-treatment="preserve">
     24          <xsl:call-template name="anchor"/>
     25          <xsl:apply-templates/>
     26        </fo:block>
     27      </xsl:when>
     28      <xsl:otherwise>
     29        <xsl:apply-imports/>
     30      </xsl:otherwise>
     31    </xsl:choose>
     32  </xsl:template>
     33
     34    <!-- Show URLs in italic font -->
     35  <xsl:template match="ulink" name="ulink">
     36    <fo:inline font-style="italic">
     37      <fo:basic-link xsl:use-attribute-sets="xref.properties">
     38        <xsl:attribute name="external-destination">
     39          <xsl:call-template name="fo-external-image">
     40            <xsl:with-param name="filename" select="@url"/>
     41          </xsl:call-template>
     42        </xsl:attribute>
     43        <xsl:choose>
     44          <xsl:when test="count(child::node())=0">
     45            <xsl:call-template name="hyphenate-url">
     46              <xsl:with-param name="url" select="@url"/>
     47            </xsl:call-template>
     48          </xsl:when>
     49          <xsl:otherwise>
     50            <xsl:apply-templates/>
     51          </xsl:otherwise>
     52        </xsl:choose>
     53      </fo:basic-link>
     54    </fo:inline>
     55    <xsl:if test="count(child::node()) != 0
     56                  and string(.) != @url
     57                  and $ulink.show != 0">
     58      <!-- yes, show the URI -->
     59      <xsl:choose>
     60        <xsl:when test="$ulink.footnotes != 0 and not(ancestor::footnote)">
     61          <xsl:text>&#xA0;</xsl:text>
     62          <fo:footnote>
     63            <xsl:call-template name="ulink.footnote.number"/>
     64            <fo:footnote-body font-family="{$body.fontset}"
     65                              font-size="{$footnote.font.size}">
     66              <fo:block>
     67                <xsl:call-template name="ulink.footnote.number"/>
     68                <xsl:text> </xsl:text>
     69                <fo:inline>
     70                  <xsl:value-of select="@url"/>
     71                </fo:inline>
     72              </fo:block>
     73            </fo:footnote-body>
     74          </fo:footnote>
     75        </xsl:when>
     76        <xsl:otherwise>
     77          <fo:inline hyphenate="false">
     78            <xsl:text> [</xsl:text>
     79            <xsl:call-template name="hyphenate-url">
     80              <xsl:with-param name="url" select="@url"/>
     81            </xsl:call-template>
     82            <xsl:text>]</xsl:text>
     83          </fo:inline>
     84        </xsl:otherwise>
     85      </xsl:choose>
     86    </xsl:if>
     87  </xsl:template>
     88
     89    <!-- Split URLs (obsolete, keeped as reference) -->
     90  <!--<xsl:template name="hyphenate-url">
    1791    <xsl:param name="url" select="''"/>
    1892    <xsl:choose>
    1993      <xsl:when test="ancestor::varlistentry">
    2094        <xsl:choose>
    21           <xsl:when test="string-length($url) > 88">
     95          <xsl:when test="string-length($url) > 90">
    2296            <xsl:value-of select="substring($url, 1, 50)"/>
    2397            <xsl:param name="rest" select="substring($url, 51)"/>
     
    32106      </xsl:when>
    33107      <xsl:otherwise>
    34         <xsl:value-of select="$url"/>
     108        <xsl:value-of select="$url"/>-->
    35109      <!--  <xsl:value-of select="substring-before($url, '//')"/>
    36110        <xsl:text>// </xsl:text>
     
    38112          <xsl:with-param name="url2" select="substring-after($url, '//')"/>
    39113        </xsl:call-template>-->
    40       </xsl:otherwise>
     114     <!-- </xsl:otherwise>
    41115    </xsl:choose>
    42   </xsl:template>
     116  </xsl:template>-->
    43117
    44118  <!--<xsl:template name="split-url">
     
    60134    <!-- Shade screen -->
    61135  <xsl:param name="shade.verbatim" select="1"/>
    62 
    63     <!-- Graphics in admonitions -->
    64   <xsl:param name="admon.graphics" select="1"/>
    65   <xsl:param name="admon.graphics.path"
    66     select="'/usr/share/xml/docbook/xsl-stylesheets-1.67.2/images/'"/>
    67 
    68     <!-- Admonition block properties -->
    69   <xsl:template match="important|warning|caution">
    70     <xsl:choose>
    71       <xsl:when test="$admon.graphics != 0">
    72         <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"
    73               space-before.maximum="0.8em" border-style="solid" border-width="1pt"
    74               border-color="#500" background-color="#FFFFE6">
    75         <xsl:call-template name="graphical.admonition"/>
    76         </fo:block>
    77       </xsl:when>
    78       <xsl:otherwise>
    79         <xsl:call-template name="nongraphical.admonition"/>
    80       </xsl:otherwise>
    81     </xsl:choose>
    82   </xsl:template>
    83 
    84   <xsl:template match="note|tip">
    85     <xsl:choose>
    86       <xsl:when test="$admon.graphics != 0">
    87         <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"
    88               space-before.maximum="0.8em" border-style="solid" border-width="1pt"
    89               border-color="#E0E0E0" background-color="#FFFFE6">
    90         <xsl:call-template name="graphical.admonition"/>
    91         </fo:block>
    92       </xsl:when>
    93       <xsl:otherwise>
    94         <xsl:call-template name="nongraphical.admonition"/>
    95       </xsl:otherwise>
    96     </xsl:choose>
    97   </xsl:template>
    98  
    99     <!-- Admonitions text properties -->
    100   <xsl:attribute-set name="admonition.properties">
    101     <xsl:attribute name="margin-right">6pt</xsl:attribute>
    102   </xsl:attribute-set>
    103 
    104     <!-- Adding left space to the graphics and color to the titles -->
    105   <xsl:template name="graphical.admonition">
    106     <xsl:variable name="id">
    107       <xsl:call-template name="object.id"/>
    108     </xsl:variable>
    109     <fo:block id="{$id}">
    110       <fo:list-block xsl:use-attribute-sets="list.block.spacing">
    111         <fo:list-item>
    112             <fo:list-item-label end-indent="label-end()">
    113               <fo:block margin-left="4pt">
    114                 <fo:external-graphic width="auto" height="auto">
    115                   <xsl:attribute name="src">
    116                     <xsl:call-template name="admon.graphic"/>
    117                   </xsl:attribute>
    118                 </fo:external-graphic>
    119               </fo:block>
    120             </fo:list-item-label>
    121             <fo:list-item-body start-indent="body-start()">
    122               <xsl:if test="$admon.textlabel != 0 or title">
    123                 <fo:block xsl:use-attribute-sets="admonition.title.properties">
    124                   <xsl:if test="ancestor-or-self::important">
    125                     <xsl:attribute name="color">#500</xsl:attribute>
    126                   </xsl:if>
    127                   <xsl:if test="ancestor-or-self::warning">
    128                     <xsl:attribute name="color">#500</xsl:attribute>
    129                   </xsl:if>
    130                   <xsl:if test="ancestor-or-self::caution">
    131                     <xsl:attribute name="color">#500</xsl:attribute>
    132                   </xsl:if>
    133                   <xsl:apply-templates select="." mode="object.title.markup"/>
    134                 </fo:block>
    135               </xsl:if>
    136               <fo:block xsl:use-attribute-sets="admonition.properties">
    137                 <xsl:apply-templates/>
    138               </fo:block>
    139             </fo:list-item-body>
    140         </fo:list-item>
    141       </fo:list-block>
    142     </fo:block>
    143   </xsl:template>
    144136
    145137    <!-- How is rendered by default a variablelist -->
     
    178170  </xsl:template>
    179171
     172    <!-- Presentation of literal tag -->
     173  <xsl:template match="literal">
     174    <fo:inline  font-weight="normal">
     175      <xsl:call-template name="inline.monoseq"/>
     176    </fo:inline>
     177  </xsl:template>
     178
     179    <!-- Left alingnament for itemizedlist -->
     180  <xsl:template match="itemizedlist">
     181    <xsl:variable name="id">
     182      <xsl:call-template name="object.id"/>
     183    </xsl:variable>
     184    <xsl:variable name="label-width">
     185      <xsl:call-template name="dbfo-attribute">
     186        <xsl:with-param name="pis"
     187                        select="processing-instruction('dbfo')"/>
     188        <xsl:with-param name="attribute" select="'label-width'"/>
     189      </xsl:call-template>
     190    </xsl:variable>
     191    <xsl:if test="title">
     192      <xsl:apply-templates select="title" mode="list.title.mode"/>
     193    </xsl:if>
     194    <!-- Preserve order of PIs and comments -->
     195    <xsl:apply-templates
     196        select="*[not(self::listitem
     197                  or self::title
     198                  or self::titleabbrev)]
     199                |comment()[not(preceding-sibling::listitem)]
     200                |processing-instruction()[not(preceding-sibling::listitem)]"/>
     201    <fo:list-block id="{$id}" xsl:use-attribute-sets="list.block.spacing"
     202                  provisional-label-separation="0.2em" text-align="left">
     203      <xsl:attribute name="provisional-distance-between-starts">
     204        <xsl:choose>
     205          <xsl:when test="$label-width != ''">
     206            <xsl:value-of select="$label-width"/>
     207          </xsl:when>
     208          <xsl:otherwise>1.5em</xsl:otherwise>
     209        </xsl:choose>
     210      </xsl:attribute>
     211      <xsl:apply-templates
     212            select="listitem
     213                    |comment()[preceding-sibling::listitem]
     214                    |processing-instruction()[preceding-sibling::listitem]"/>
     215    </fo:list-block>
     216  </xsl:template>
     217
     218    <!-- Addibg a bullet, and left alignament, for packages and paches list. -->
     219
     220<xsl:template match="varlistentry" mode="vl.as.blocks">
     221  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
     222  <xsl:choose>
     223    <xsl:when test="ancestor::variablelist/@role = 'materials'">
     224      <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
     225          keep-together.within-column="always"
     226          keep-with-next.within-column="always" text-align="left">
     227        <xsl:text>&#x2022;   </xsl:text>
     228        <xsl:apply-templates select="term"/>
     229      </fo:block>
     230      <fo:block margin-left="0.1in" text-align="left">
     231        <xsl:apply-templates select="listitem"/>
     232      </fo:block>
     233    </xsl:when>
     234    <xsl:otherwise>
     235      <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing"
     236          keep-together.within-column="always"
     237          keep-with-next.within-column="always">
     238        <xsl:apply-templates select="term"/>
     239      </fo:block>
     240      <fo:block margin-left="0.25in">
     241        <xsl:apply-templates select="listitem"/>
     242      </fo:block>
     243    </xsl:otherwise>
     244  </xsl:choose>
     245</xsl:template>
     246
    180247</xsl:stylesheet>
  • stylesheets/pdf/lfs-pagesetup.xsl

    r6d3af72 rf7bd105  
    6363  </xsl:template>
    6464
     65    <!-- Font size for chapter title. -->
     66  <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
     67    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
     68            xsl:use-attribute-sets="chapter.titlepage.recto.style"
     69            font-size="21pt" font-weight="bold" text-align="left">
     70      <xsl:call-template name="component.title">
     71        <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
     72      </xsl:call-template>
     73    </fo:block>
     74  </xsl:template>
     75
    6576    <!-- Margins -->
    6677  <xsl:param name="page.margin.inner">0.5in</xsl:param>
  • stylesheets/xhtml/lfs-admon.xsl

    r6d3af72 rf7bd105  
    2222      </xsl:choose>
    2323    </xsl:variable>
     24    <xsl:variable name="alt">
     25      <xsl:call-template name="gentext">
     26        <xsl:with-param name="key" select="$admon.type"/>
     27      </xsl:call-template>
     28    </xsl:variable>
    2429    <div class="{name(.)}">
    2530      <div class ="admonhead">
    26         <img alt="[{$admon.type}]">
     31        <img alt="[{$alt}]">
    2732          <xsl:attribute name="src">
    2833            <xsl:call-template name="admon.graphic"/>
     
    3035        </img>
    3136        <h3 class="admontitle">
    32           <xsl:value-of select="$admon.type"/>
    33           <xsl:if test="title">
    34             <xsl:text>: </xsl:text>
    35             <xsl:value-of select="title"/>
    36           </xsl:if>
     37          <xsl:apply-templates select="." mode="object.title.markup"/>
    3738        </h3>
    3839      </div>
  • stylesheets/xhtml/lfs-index.xsl

    r6d3af72 rf7bd105  
    1717
    1818    <!--Title-->
    19   <xsl:param name="index-title">Index of packages and important installed files</xsl:param>
     19  <xsl:param name="index-title">Index</xsl:param>
    2020 
    2121  <xsl:template match="index" mode="title.markup">
    22     <xsl:value-of select="$index-title"/>
    23   </xsl:template>
    24  
     22    <xsl:call-template name="gentext">
     23      <xsl:with-param name="key" select="$index-title"/>
     24    </xsl:call-template>
     25  </xsl:template>
     26
    2527  <xsl:template name="index.titlepage">
    2628    <div class="titlepage">
    2729      <h1 class="index">
    28         <xsl:value-of select="$index-title"/>
     30        <xsl:call-template name="gentext">
     31          <xsl:with-param name="key" select="$index-title"/>
     32        </xsl:call-template>
    2933      </h1>
    3034    </div>
     
    4347            <xsl:choose>
    4448              <xsl:when test="$divtitle = 'A'">
    45                 <xsl:text>Packages</xsl:text>
     49                <xsl:call-template name="gentext">
     50                  <xsl:with-param name="key">Packages</xsl:with-param>
     51                </xsl:call-template>
    4652             </xsl:when>
    4753             <xsl:when test="$divtitle = 'B'">
    48                 <xsl:text>Programs</xsl:text>
     54                <xsl:call-template name="gentext">
     55                  <xsl:with-param name="key">Programs</xsl:with-param>
     56                </xsl:call-template>
    4957             </xsl:when>
    5058             <xsl:when test="$divtitle = 'C'">
    51                 <xsl:text>Libraries</xsl:text>
     59                <xsl:call-template name="gentext">
     60                  <xsl:with-param name="key">Libraries</xsl:with-param>
     61                </xsl:call-template>
    5262             </xsl:when>
    5363             <xsl:when test="$divtitle = 'D'">
    54                 <xsl:text>Scripts</xsl:text>
     64                <xsl:call-template name="gentext">
     65                  <xsl:with-param name="key">Scripts</xsl:with-param>
     66                </xsl:call-template>
    5567             </xsl:when>
    5668              <xsl:when test="$divtitle = 'E'">
    57                   <xsl:text>Others</xsl:text>
     69                <xsl:call-template name="gentext">
     70                  <xsl:with-param name="key">Others</xsl:with-param>
     71                </xsl:call-template>
    5872              </xsl:when>
    5973             <xsl:otherwise>
     
    163177            </xsl:call-template>
    164178          </xsl:attribute>
    165           <xsl:text>description</xsl:text>
     179          <xsl:call-template name="gentext">
     180            <xsl:with-param name="key">description</xsl:with-param>
     181          </xsl:call-template>
    166182        </a>
    167183      </xsl:when>
  • stylesheets/xhtml/lfs-mixed.xsl

    r6d3af72 rf7bd105  
    1010      <xsl:when test="child::* = userinput">
    1111        <pre class="userinput">
    12           <kbd class="command">
    13             <xsl:value-of select="."/>
    14           </kbd>
     12            <xsl:apply-templates/>
    1513        </pre>
    1614      </xsl:when>
     
    2220    </xsl:choose>
    2321  </xsl:template>
     22 
     23  <xsl:template match="userinput">
     24    <xsl:choose>
     25      <xsl:when test="ancestor::screen">
     26        <kbd class="command">
     27          <xsl:apply-templates/>
     28        </kbd>
     29      </xsl:when>
     30      <xsl:otherwise>
     31        <xsl:apply-imports/>
     32      </xsl:otherwise>
     33    </xsl:choose>
     34  </xsl:template>
     35
    2436 
    2537  <!-- variablelist -->
     
    6173  </xsl:template>
    6274
    63    <!-- Sect1 attributes -->
    64   <xsl:template match="sect1">
    65     <div>
    66       <xsl:choose>
    67         <xsl:when test="@role">
    68           <xsl:attribute name="class">
    69             <xsl:value-of select="@role"/>
    70           </xsl:attribute>
    71         </xsl:when>
    72         <xsl:otherwise>
    73           <xsl:attribute name="class">
    74             <xsl:value-of select="name(.)"/>
    75           </xsl:attribute>
    76         </xsl:otherwise>
    77       </xsl:choose>
    78       <xsl:call-template name="language.attribute"/>
    79       <xsl:call-template name="sect1.titlepage"/>
    80       <xsl:apply-templates/>
    81       <xsl:call-template name="process.chunk.footnotes"/>
    82     </div>
     75    <!-- External URLs in italic font -->
     76  <xsl:template match="ulink" name="ulink">
     77    <a>
     78      <xsl:if test="@id">
     79        <xsl:attribute name="id">
     80          <xsl:value-of select="@id"/>
     81        </xsl:attribute>
     82      </xsl:if>
     83      <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
     84       <i>
     85        <xsl:choose>
     86          <xsl:when test="count(child::node())=0">
     87            <xsl:value-of select="@url"/>
     88          </xsl:when>
     89          <xsl:otherwise>
     90            <xsl:apply-templates/>
     91          </xsl:otherwise>
     92        </xsl:choose>
     93      </i>
     94    </a>
    8395  </xsl:template>
    8496
    85     <!-- Sect2 attributes -->
    86   <xsl:template match="sect2">
    87     <div>
    88       <xsl:choose>
    89         <xsl:when test="@role">
    90           <xsl:attribute name="class">
    91             <xsl:value-of select="@role"/>
    92           </xsl:attribute>
    93         </xsl:when>
    94         <xsl:otherwise>
    95           <xsl:attribute name="class">
    96             <xsl:value-of select="name(.)"/>
    97           </xsl:attribute>
    98         </xsl:otherwise>
    99       </xsl:choose>
    100       <xsl:call-template name="language.attribute"/>
    101       <xsl:call-template name="sect2.titlepage"/>
    102       <xsl:apply-templates/>
    103       <xsl:call-template name="process.chunk.footnotes"/>
    104     </div>
    105   </xsl:template>
    10697
    10798</xsl:stylesheet>
  • stylesheets/xhtml/lfs-navigational.xsl

    r6d3af72 rf7bd105  
    6969                </xsl:attribute>
    7070                <xsl:attribute name="title">
    71                   <xsl:value-of select="$next/title"/>
     71                  <xsl:choose>
     72                    <xsl:when test="local-name($next)='index'">
     73                      <xsl:call-template name="gentext">
     74                        <xsl:with-param name="key">Index</xsl:with-param>
     75                      </xsl:call-template>
     76                    </xsl:when>
     77                    <xsl:otherwise>
     78                      <xsl:value-of select="$next/title"/>
     79                    </xsl:otherwise>
     80                  </xsl:choose>
    7281                </xsl:attribute>
    7382                <xsl:call-template name="navig.content">
     
    7685              </a>
    7786              <p>
    78                 <xsl:value-of select="$next/title"/>
     87                <xsl:choose>
     88                  <xsl:when test="local-name($next)='index'">
     89                    <xsl:call-template name="gentext">
     90                      <xsl:with-param name="key">Index</xsl:with-param>
     91                    </xsl:call-template>
     92                  </xsl:when>
     93                  <xsl:otherwise>
     94                    <xsl:value-of select="$next/title"/>
     95                  </xsl:otherwise>
     96                </xsl:choose>
    7997              </p>
    8098            </li>
     
    161179                </xsl:attribute>
    162180                <xsl:attribute name="title">
    163                   <xsl:value-of select="$next/title"/>
     181                  <xsl:choose>
     182                    <xsl:when test="local-name($next)='index'">
     183                      <xsl:call-template name="gentext">
     184                        <xsl:with-param name="key">Index</xsl:with-param>
     185                      </xsl:call-template>
     186                    </xsl:when>
     187                    <xsl:otherwise>
     188                      <xsl:value-of select="$next/title"/>
     189                    </xsl:otherwise>
     190                  </xsl:choose>
    164191                </xsl:attribute>
    165192                <xsl:call-template name="navig.content">
     
    168195              </a>
    169196              <p>
    170                 <xsl:value-of select="$next/title"/>
     197                <xsl:choose>
     198                  <xsl:when test="local-name($next)='index'">
     199                    <xsl:call-template name="gentext">
     200                      <xsl:with-param name="key">Index</xsl:with-param>
     201                    </xsl:call-template>
     202                  </xsl:when>
     203                  <xsl:otherwise>
     204                    <xsl:value-of select="$next/title"/>
     205                  </xsl:otherwise>
     206                </xsl:choose>
    171207              </p>
    172208            </li>
  • stylesheets/xhtml/lfs-titles.xsl

    r6d3af72 rf7bd105  
    88    <div class="titlepage">
    99      <h1 class="{name(.)}">
     10        <xsl:apply-templates select="." mode="label.markup"/>
     11        <xsl:text>. </xsl:text>
    1012        <xsl:value-of select="title"/>
    1113      </h1>
     
    1618    <div class="titlepage">
    1719      <h1 class="{name(.)}">
     20        <xsl:apply-templates select="." mode="label.markup"/>
     21        <xsl:text>. </xsl:text>
    1822        <xsl:value-of select="title"/>
    1923      </h1>
     
    2428    <div class="titlepage">
    2529      <h1 class="{name(.)}">
     30        <xsl:value-of select="title"/>
     31      </h1>
     32    </div>
     33  </xsl:template>
     34
     35  <xsl:template name="appendix.titlepage">
     36    <div class="titlepage">
     37      <h1 class="{name(.)}">
     38        <xsl:apply-templates select="." mode="label.markup"/>
     39        <xsl:text>. </xsl:text>
    2640        <xsl:value-of select="title"/>
    2741      </h1>
     
    3852          </xsl:if>
    3953          <h2 class="{name(.)}">
     54            <xsl:apply-templates select="." mode="label.markup"/>
     55            <xsl:text>. </xsl:text>
    4056            <xsl:value-of select="title"/>
    4157          </h2>
     
    4561        <div class="titlepage">
    4662          <h1 class="{name(.)}">
     63            <xsl:apply-templates select="." mode="label.markup"/>
     64            <xsl:text>. </xsl:text>
    4765            <xsl:value-of select="title"/>
    4866          </h1>
     
    6179          </xsl:if>
    6280          <h2 class="{name(.)}">
     81            <xsl:apply-templates select="." mode="label.markup"/>
     82            <xsl:text>. </xsl:text>
    6383            <xsl:value-of select="title"/>
    6484          </h2>
     
    7696  </xsl:template>
    7797
     98    <!-- Added the role param for proper punctuation in xref calls. -->
     99  <xsl:template match="*" mode="insert.title.markup">
     100    <xsl:param name="purpose"/>
     101    <xsl:param name="xrefstyle"/>
     102    <xsl:param name="title"/>
     103    <xsl:param name="role"/>
     104    <xsl:choose>
     105      <xsl:when test="$purpose = 'xref' and titleabbrev">
     106        <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     107      </xsl:when>
     108      <xsl:otherwise>
     109        <xsl:copy-of select="$title"/>
     110        <xsl:value-of select="$role"/>
     111      </xsl:otherwise>
     112    </xsl:choose>
     113  </xsl:template>
     114
    78115</xsl:stylesheet>
  • stylesheets/xhtml/lfs-toc.xsl

    r6d3af72 rf7bd105  
    77    <!-- General settings -->
    88  <xsl:param name="generate.toc">
    9     appendix  toc
     9    appendix  nop
    1010    book      toc,title,figure,table,example,equation
    1111    chapter   nop
     
    9494        </a>
    9595      </xsl:when>
     96      <xsl:when test="local-name(.) = 'appendix'">
     97        <a>
     98          <xsl:attribute name="href">
     99            <xsl:call-template name="href.target">
     100              <xsl:with-param name="context" select="$toc-context"/>
     101            </xsl:call-template>
     102          </xsl:attribute>
     103          <xsl:variable name="label">
     104            <xsl:apply-templates select="." mode="label.markup"/>
     105          </xsl:variable>
     106          <xsl:copy-of select="$label"/>
     107          <xsl:if test="$label != ''">
     108            <xsl:value-of select="$autotoc.label.separator"/>
     109          </xsl:if>
     110          <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     111        </a>
     112      </xsl:when>
    96113      <xsl:when test="local-name(.) = 'chapter' or local-name(.) = 'preface'">
    97114        <h4>
Note: See TracChangeset for help on using the changeset viewer.