diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 14:19:53 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 14:19:53 +0000 |
commit | ded6dddb89cade026e592cd386790b5b10e6fe00 (patch) | |
tree | 3e628a075a59b9ee298376729b44a4151d039c59 /stylesheets/lfs-chunked.xsl | |
parent | e4bf4c7e72fabd039b21b78313d43ce2138c1e7d (diff) |
Updated the stylesheets to their current version.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3529 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-chunked.xsl')
-rw-r--r-- | stylesheets/lfs-chunked.xsl | 103 |
1 files changed, 22 insertions, 81 deletions
diff --git a/stylesheets/lfs-chunked.xsl b/stylesheets/lfs-chunked.xsl index e7f6c85df..8abaf3ddd 100644 --- a/stylesheets/lfs-chunked.xsl +++ b/stylesheets/lfs-chunked.xsl @@ -1,92 +1,33 @@ -<?xml version='1.0'?> +<?xml version='1.0' encoding='ISO-8859-1'?> + +<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> +Based on the original lfs-chunked.xsl created by Matthew Burgess --> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> - <!-- We use XHTML --> + <!-- We use XHTML --> <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/chunk.xsl"/> <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> - - <!-- The CSS Stylesheet --> - <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/> - - <!-- Include our customised templates --> - <xsl:include href="xhtml/lfs-toc.xsl"/> + + <!-- Including our others customized templates --> + <xsl:include href="xhtml/lfs-admon.xsl"/> <xsl:include href="xhtml/lfs-index.xsl"/> + <xsl:include href="xhtml/lfs-legalnotice.xsl"/> + <xsl:include href="xhtml/lfs-mixed.xsl"/> + <xsl:include href="xhtml/lfs-navigational.xsl"/> + <xsl:include href="xhtml/lfs-titles.xsl"/> + <xsl:include href="xhtml/lfs-toc.xsl"/> - <!-- Use graphics in admonitions --> - <xsl:param name="admon.graphics" select="1"/> - <xsl:param name="admon.graphics.path">../images/</xsl:param> - <xsl:param name="admon.graphics.extension" select="'.png'"/> - - <!-- Legal Notice stuff --> - <xsl:param name="generate.legalnotice.link" select="1"/> - <xsl:template match="legalnotice" mode="titlepage.mode"> - <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> - <xsl:choose> - <xsl:when test="$generate.legalnotice.link != 0"> - <xsl:variable name="filename"> - <xsl:call-template name="make-relative-filename"> - <xsl:with-param name="base.dir" select="''"/> - <xsl:with-param name="base.name" select="concat($base.dir, 'prologue/legalnotice.html')"/> - </xsl:call-template> - </xsl:variable> - <xsl:variable name="title"> - <xsl:apply-templates select="." mode="title.markup"/> - </xsl:variable> - <xsl:element name="a"> - <xsl:attribute name="href"> - <xsl:value-of select="'prologue/legalnotice.html'"/> - </xsl:attribute> - <xsl:copy-of select="$title"/> - </xsl:element> - <xsl:call-template name="write.chunk"> - <xsl:with-param name="filename" select="$filename"/> - <xsl:with-param name="quiet" select="$chunk.quietly"/> - <xsl:with-param name="content"> - <html> - <head> - <xsl:call-template name="system.head.content"/> - <xsl:call-template name="head.content"/> - <xsl:call-template name="user.head.content"/> - </head> - <body> - <xsl:call-template name="body.attributes"/> - <div class="{local-name(.)}"> - <xsl:apply-templates mode="titlepage.mode"/> - </div> - </body> - </html> - </xsl:with-param> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <div class="{local-name(.)}"> - <xsl:apply-templates mode="titlepage.mode"/> - </div> - </xsl:otherwise> - </xsl:choose> - </xsl:template> + <!-- The CSS Stylesheet --> + <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/> - <!--TOC stuff--> - <xsl:param name="generate.toc"> - appendix toc - book toc,title,figure,table,example,equation - chapter nop - part toc - preface nop - qandadiv nop - qandaset nop - reference nop - sect1 nop - sect2 nop - sect3 nop - sect4 nop - sect5 nop - section nop - set nop - </xsl:param> - <xsl:param name="toc.section.depth">1</xsl:param> - <xsl:param name="toc.max.depth">3</xsl:param> + <!-- Dropping some unwanted style attributes --> + <xsl:param name="ulink.target" select="''"></xsl:param> + <xsl:param name="css.decoration" select="0"></xsl:param> + + <!-- No XML declaration --> + <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/> </xsl:stylesheet> |