blob: a54a3d2c29a8efc8c6c9ade02492186110257f91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY css SYSTEM "faq.css">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<!-- Import original style sheet: chunk.xsl (multi-page) or docbook.xsl (one page) -->
<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl"/>
<!-- ******************************************************************
-
- Load the common customization for HTML:
-
- ******************************************************************
-->
<xsl:include href="user_guide_common.xsl"/>
<xsl:param name="page.margin.top">10in</xsl:param>
<xsl:param name="page.margin.bottom">10in</xsl:param>
<xsl:param name="page.margin.inner">10in</xsl:param>
<xsl:param name="page.margin.outer">10in</xsl:param>
<xsl:param name="generate.legalnotice.link" select="0"/>
<!-- ******************************************************************
-
- Chunks specific customization:
-
- ******************************************************************
-->
<!-- Generate a message for each chunked file -->
<xsl:param name="chunk.quietly" select="0"/>
<!-- New top-level file name: index.html is reserved for the index -->
<xsl:param name="root.filename" select="'sylpheed-faq'"/>
<!-- Yes we use the chunker: splits the output into several files. -->
<xsl:param name="using.chunker" select="0"/>
<!-- Chunk only the first level of chapter/sections -->
<xsl:param name="chunk.section.depth" select="0"/>
<!-- Generate a separate chunk for the first element of each section -->
<xsl:param name="chunk.first.sections" select="1"/>
<!-- Do not use the ID as filename: they contain forbidden chars -->
<xsl:param name="use.id.as.filename" select="'1'"/>
<!-- Use the following extension for output files: .html -->
<xsl:param name="html.ext" select="'.html'"/>
<!-- Generate extra HEAD links for Mozilla -->
<xsl:param name="html.extra.head.links" select="1"/>
<!-- Do not use graphics in navigation headers/footers -->
<xsl:param name="navig.graphics" select="0"/>
<xsl:param name="navig.graphics.extension" select="'.png'"/>
<xsl:param name="navig.graphics.path">images/</xsl:param>
<!-- Show next and previous sections titles in nav bars -->
<xsl:param name="navig.showtitles">1</xsl:param>
<!-- Auto label qandadiv -->
<xsl:param name="qandadiv.autolabel" select="1"></xsl:param>
<!-- Add CSS stylesheet content to the HTML header -->
<xsl:template name="user.head.content">
<style type="text/css">
&css;
</style>
</xsl:template>
<!-- Nice HTML output -->
<xsl:param name="chunker.output.indent">yes</xsl:param>
<!-- Just list the chapter titles in the book ToC -->
<xsl:template match="preface|chapter|appendix|article" mode="toc">
<xsl:param name="toc-context" select="."/>
<xsl:choose>
<xsl:when test="local-name($toc-context) = 'book'">
<xsl:call-template name="subtoc">
<xsl:with-param name="toc-context" select="$toc-context"/>
<xsl:with-param name="nodes" select="foo"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="subtoc">
<xsl:with-param name="toc-context" select="$toc-context"/>
<xsl:with-param name="nodes"
select="section|sect1|glossary|bibliography|index
|bridgehead[$bridgehead.in.toc != 0]"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
|