2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
xmlns="http://www.w3.org/TR/xhtml1/transitional"
5
exclude-result-prefixes="#default">
7
<!-- Load onechunk.xsl stylesheet
8
TODO: how can I put a location independent link here?
9
This should work. The url can be translated to a local one in the catalog
12
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/onechunk.xsl"/>
14
<xsl:param name="suppress.navigation">1</xsl:param>
16
<!-- Use stylesheet -->
17
<xsl:param name="html.stylesheet" select="'../xfce.css'"/>
19
<!-- labels and numbering -->
20
<xsl:param name="autotoc.label.separator" select="'. '"/>
21
<xsl:param name="chapter.autolabel" select="1"/>
23
<!-- Don't force the use of index.html as root filename -->
24
<xsl:param name="root.filename" select="''"/>
26
<!-- Use element id (if present) as file name -->
27
<xsl:variable name="use.id.as.filename">1</xsl:variable>
29
<xsl:template match="releaseinfo" mode="titlepage.mode">
30
<span class="{name(.)}">
31
<xsl:apply-templates mode="titlepage.mode"/>
36
<!-- Use graphics in admonitions (note, warning, etc) -->
37
<xsl:variable name="admon.graphics">0</xsl:variable>
39
<xsl:param name="admon.style">
40
<xsl:text>text-align: left;</xsl:text></xsl:param>
42
<xsl:variable name="admon.graphics.path">stylesheet-images/</xsl:variable>
44
<xsl:variable name="admon.graphics.extension">.gif</xsl:variable>
46
<xsl:param name="table.border.thickness" select="'0.2pt'"/>
48
<xsl:param name="graphic.default.extension" select="png"/>
50
<xsl:attribute-set name="shade.verbatim.style">
51
<xsl:attribute name="border">0</xsl:attribute>
52
<xsl:attribute name="bgcolor">#F3F4F8</xsl:attribute>
53
<xsl:attribute name="width">100%</xsl:attribute>
56
<!-- Addition by Jasper Huijsmans to be able to set background color -->
57
<!-- and cell attributes. -->
58
<!-- This requires an adapted template for tgroup (see end of stylesheet) -->
59
<xsl:attribute-set name="table.style">
60
<xsl:attribute name="bgcolor">#F8F9FD</xsl:attribute>
61
<xsl:attribute name="cellspacing">0</xsl:attribute>
62
<xsl:attribute name="cellpadding">4</xsl:attribute>
66
<xsl:param name="generate.legalnotice.link" select="0"/>
68
<xsl:param name="shade.verbatim" select="1"/>
70
<!-- set font styles for various tags -->
71
<xsl:template match="guibutton">
72
<xsl:call-template name="inline.boldseq"/>
75
<xsl:template match="guiicon">
76
<xsl:call-template name="inline.boldseq"/>
79
<xsl:template match="guilabel">
80
<xsl:call-template name="inline.boldseq"/>
83
<xsl:template match="guimenu">
84
<xsl:call-template name="inline.boldseq"/>
87
<xsl:template match="guimenuitem">
88
<xsl:call-template name="inline.boldseq"/>
91
<xsl:template match="guisubmenu">
92
<xsl:call-template name="inline.boldseq"/>
95
<xsl:template match="application">
96
<xsl:call-template name="inline.boldmonoseq"/>
99
<xsl:template match="caption">
100
<xsl:call-template name="inline.boldseq"/>
103
<!-- Adapted template for tgroup. The only change is the addition of -->
104
<!-- table.style attributes -->
105
<xsl:template match="tgroup">
106
<table xsl:use-attribute-sets="table.style">
108
<!-- If there's a <?dbhtml table-summary="foo"?> PI, use it for
109
the HTML table summary attribute -->
110
<xsl:when test="processing-instruction('dbhtml')">
111
<xsl:variable name="summary">
112
<xsl:call-template name="dbhtml-attribute">
113
<xsl:with-param name="pis"
114
select="processing-instruction('dbhtml')[1]"/>
115
<xsl:with-param name="attribute" select="'table-summary'"/>
118
<xsl:if test="$summary != ''">
119
<xsl:attribute name="summary">
120
<xsl:value-of select="$summary"/>
124
<!-- Otherwise, if there's a title, use that -->
125
<xsl:when test="../title">
126
<xsl:attribute name="summary">
127
<xsl:value-of select="string(../title)"/>
130
<!-- Otherwise, forget the whole idea -->
131
<xsl:otherwise><!-- nevermind --></xsl:otherwise>
134
<xsl:if test="../@pgwide=1">
135
<xsl:attribute name="width">100%</xsl:attribute>
139
<xsl:when test="../@frame='none'">
140
<xsl:attribute name="border">0</xsl:attribute>
142
<xsl:when test="$table.borders.with.css != 0">
143
<xsl:attribute name="border">0</xsl:attribute>
145
<xsl:when test="../@frame='topbot' or ../@frame='top'">
146
<xsl:attribute name="style">
147
<xsl:call-template name="border">
148
<xsl:with-param name="side" select="'top'"/>
152
<xsl:when test="../@frame='sides'">
153
<xsl:attribute name="style">
154
<xsl:call-template name="border">
155
<xsl:with-param name="side" select="'left'"/>
157
<xsl:call-template name="border">
158
<xsl:with-param name="side" select="'right'"/>
165
<xsl:attribute name="border">1</xsl:attribute>
169
<xsl:variable name="colgroup">
171
<xsl:call-template name="generate.colgroup">
172
<xsl:with-param name="cols" select="@cols"/>
177
<xsl:variable name="explicit.table.width">
178
<xsl:call-template name="dbhtml-attribute">
179
<xsl:with-param name="pis"
180
select="../processing-instruction('dbhtml')[1]"/>
181
<xsl:with-param name="attribute" select="'table-width'"/>
185
<xsl:variable name="table.width">
187
<xsl:when test="$explicit.table.width != ''">
188
<xsl:value-of select="$explicit.table.width"/>
190
<xsl:when test="$default.table.width = ''">
191
<xsl:text>100%</xsl:text>
194
<xsl:value-of select="$default.table.width"/>
199
<xsl:if test="$default.table.width != ''
200
or $explicit.table.width != ''">
201
<xsl:attribute name="width">
203
<xsl:when test="contains($table.width, '%')">
204
<xsl:value-of select="$table.width"/>
206
<xsl:when test="$use.extensions != 0
207
and $tablecolumns.extension != 0">
209
<xsl:when test="function-available('stbl:convertLength')">
210
<xsl:value-of select="stbl:convertLength($table.width)"/>
212
<xsl:when test="function-available('xtbl:convertLength')">
213
<xsl:value-of select="xtbl:convertLength($table.width)"/>
216
<xsl:message terminate="yes">
217
<xsl:text>No convertLength function available.</xsl:text>
223
<xsl:value-of select="$table.width"/>
230
<xsl:when test="$use.extensions != 0
231
and $tablecolumns.extension != 0">
233
<xsl:when test="function-available('stbl:adjustColumnWidths')">
234
<xsl:copy-of select="stbl:adjustColumnWidths($colgroup)"/>
236
<xsl:when test="function-available('xtbl:adjustColumnWidths')">
237
<xsl:copy-of select="xtbl:adjustColumnWidths($colgroup)"/>
240
<xsl:message terminate="yes">
241
<xsl:text>No adjustColumnWidths function available.</xsl:text>
247
<xsl:copy-of select="$colgroup"/>
251
<xsl:apply-templates select="thead"/>
252
<xsl:apply-templates select="tbody"/>
253
<xsl:apply-templates select="tfoot"/>
255
<xsl:if test=".//footnote">
256
<tbody class="footnotes">
258
<td colspan="{@cols}">
259
<xsl:apply-templates select=".//footnote"
260
mode="table.footnote.mode"/>