Ignore:
Timestamp:
05/08/2004 02:42:12 AM (17 years ago)
Author:
Larry Lawrence <larry@…>
Branches:
10.0, 10.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, krejzi/svn, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, v5_1, v5_1-pre1, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
98b068f
Parents:
64f2cb5
Message:

updated stylesheets to 0.9

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/blfs-chunked.xsl

    r64f2cb5 r5d4975d  
    1 <?xml version='1.0'?>
     1<?xml version='1.0' encoding='ISO-8859-1'?>
     2
     3<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org>
     4Based on the original lfs-chunked.xsl created by Matthew Burgess -->
     5
    26<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    37                xmlns="http://www.w3.org/1999/xhtml"
    48                version="1.0">
    59
    6   <!-- We use XHTML -->
     10        <!-- We use XHTML -->
    711  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/chunk.xsl"/>
    812  <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
     13 
     14        <!-- Including our others customized templates -->
     15  <xsl:include href="xhtml/lfs-admon.xsl"/>
     16  <xsl:include href="xhtml/lfs-index.xsl"/>
     17  <xsl:include href="xhtml/lfs-legalnotice.xsl"/>
     18  <xsl:include href="xhtml/lfs-mixed.xsl"/>
     19  <xsl:include href="xhtml/lfs-navigational.xsl"/>
     20  <xsl:include href="xhtml/lfs-titles.xsl"/>
     21  <xsl:include href="xhtml/lfs-toc.xsl"/>
    922
    10   <!-- The CSS Stylesheet -->
    11   <xsl:param name="html.stylesheet" select="'../stylesheets/blfs.css'"/>
     23        <!-- The CSS Stylesheet -->
     24  <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/>
    1225
    13   <!-- Include our customised templates -->
    14   <xsl:include href="xhtml/blfs-toc.xsl"/>
    15   <xsl:include href="xhtml/blfs-index.xsl"/>
    16 
    17   <!-- Use graphics in admonitions -->
    18   <xsl:param name="admon.graphics" select="1"/>
    19   <xsl:param name="admon.graphics.path">../images/</xsl:param>
    20   <xsl:param name="admon.graphics.extension" select="'.png'"/>
    21 
    22   <!-- Legal Notice stuff -->
    23   <xsl:param name="generate.legalnotice.link" select="1"/>
    24   <xsl:template match="legalnotice" mode="titlepage.mode">
    25     <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
    26     <xsl:choose>
    27       <xsl:when test="$generate.legalnotice.link != 0">
    28         <xsl:variable name="filename">
    29           <xsl:call-template name="make-relative-filename">
    30             <xsl:with-param name="base.dir" select="''"/>
    31             <xsl:with-param name="base.name" select="concat($base.dir, 'prologue/legalnotice.html')"/>
    32           </xsl:call-template>
    33         </xsl:variable>
    34         <xsl:variable name="title">
    35           <xsl:apply-templates select="." mode="title.markup"/>
    36         </xsl:variable>
    37         <xsl:element name="a">
    38           <xsl:attribute name="href">
    39             <xsl:value-of select="'prologue/legalnotice.html'"/>
    40           </xsl:attribute>
    41           <xsl:copy-of select="$title"/>
    42         </xsl:element>
    43         <xsl:call-template name="write.chunk">
    44           <xsl:with-param name="filename" select="$filename"/>
    45           <xsl:with-param name="quiet" select="$chunk.quietly"/>
    46           <xsl:with-param name="content">
    47             <html>
    48               <head>
    49                 <xsl:call-template name="system.head.content"/>
    50                 <xsl:call-template name="head.content"/>
    51                 <xsl:call-template name="user.head.content"/>
    52               </head>
    53               <body>
    54                 <xsl:call-template name="body.attributes"/>
    55                 <div class="{local-name(.)}">
    56                   <xsl:apply-templates mode="titlepage.mode"/>
    57                 </div>
    58               </body>
    59             </html>
    60           </xsl:with-param>
    61         </xsl:call-template>
    62       </xsl:when>
    63       <xsl:otherwise>
    64         <div class="{local-name(.)}">
    65           <xsl:apply-templates mode="titlepage.mode"/>
    66         </div>
    67       </xsl:otherwise>
    68     </xsl:choose>
    69   </xsl:template>
    70 
    71   <!--TOC stuff-->
    72   <xsl:param name="generate.toc">
    73     appendix  toc
    74     book      toc,title,figure,table,example,equation
    75     chapter   nop
    76     part      toc
    77     preface   nop
    78     qandadiv  nop
    79     qandaset  nop 
    80     reference nop
    81     sect1     nop
    82     sect2     nop
    83     sect3     nop
    84     sect4     nop
    85     sect5     nop
    86     section   nop
    87     set       nop
    88   </xsl:param>
    89   <xsl:param name="toc.section.depth">1</xsl:param>
    90   <xsl:param name="toc.max.depth">3</xsl:param>
     26        <!-- Dropping some unwanted style attributes -->
     27  <xsl:param name="ulink.target" select="''"></xsl:param>
     28  <xsl:param name="css.decoration" select="0"></xsl:param>
     29 
     30        <!-- No XML declaration -->
     31        <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
    9132
    9233</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.