1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 |
|
---|
3 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
4 | xmlns="http://www.w3.org/1999/xhtml"
|
---|
5 | version="1.0">
|
---|
6 |
|
---|
7 | <!-- Second level chunked output template.
|
---|
8 | Sets global params and include customized elements templates. -->
|
---|
9 |
|
---|
10 | <!-- Upstream XHTML presentation templates -->
|
---|
11 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
---|
12 |
|
---|
13 | <!-- Including our customized elements templates -->
|
---|
14 | <xsl:include href="common.xsl"/>
|
---|
15 | <xsl:include href="xhtml/lfs-admon.xsl"/>
|
---|
16 | <xsl:include href="xhtml/lfs-mixed.xsl"/>
|
---|
17 | <xsl:include href="xhtml/lfs-sections.xsl"/>
|
---|
18 | <xsl:include href="xhtml/lfs-titles.xsl"/>
|
---|
19 | <xsl:include href="xhtml/lfs-toc.xsl"/>
|
---|
20 | <xsl:include href="xhtml/lfs-xref.xsl"/>
|
---|
21 |
|
---|
22 | <!-- The CSS Stylesheets. The path is relative to the top level html
|
---|
23 | directory. The templates compute automatically the position of
|
---|
24 | the CSS relative to the current file. So no need to fix the paths
|
---|
25 | in the Makefile. -->
|
---|
26 | <xsl:param name="html.stylesheet" select="'stylesheets/lfs.css'"/>
|
---|
27 | <!-- Print CSS Stylesheet
|
---|
28 | The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
|
---|
29 | <xsl:template name='user.head.content'>
|
---|
30 | <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print"/>
|
---|
31 | </xsl:template>
|
---|
32 |
|
---|
33 | <!-- Dropping some unwanted style attributes -->
|
---|
34 | <xsl:param name="ulink.target" select="''"/>
|
---|
35 | <xsl:param name="css.decoration" select="0"/>
|
---|
36 |
|
---|
37 | <!-- No XML declaration -->
|
---|
38 | <!-- <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>-->
|
---|
39 |
|
---|
40 | <!-- Control generation of ToCs and LoTs -->
|
---|
41 | <xsl:param name="generate.toc">
|
---|
42 | book toc,title
|
---|
43 | preface toc
|
---|
44 | part toc
|
---|
45 | chapter toc
|
---|
46 | appendix nop
|
---|
47 | sect1 nop
|
---|
48 | sect2 nop
|
---|
49 | sect3 nop
|
---|
50 | sect4 nop
|
---|
51 | sect5 nop
|
---|
52 | section nop
|
---|
53 | </xsl:param>
|
---|
54 |
|
---|
55 | <!-- How deep should recursive sections appear in the TOC? -->
|
---|
56 | <xsl:param name="toc.section.depth">1</xsl:param>
|
---|
57 |
|
---|
58 | <!-- How maximaly deep should be each TOC? -->
|
---|
59 | <xsl:param name="toc.max.depth">3</xsl:param>
|
---|
60 |
|
---|
61 | </xsl:stylesheet>
|
---|