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
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
9
<!-- Use stylesheet -->
10
<xsl:param name="html.stylesheet" select="'../thunar.css'"/>
12
<!-- labels and numbering -->
13
<xsl:param name="autotoc.label.separator" select="'. '"/>
14
<xsl:param name="chapter.autolabel" select="1"/>
16
<!-- Don't force the use of index.html as root filename -->
17
<xsl:param name="root.filename" select="''"/>
19
<!-- Use element id (if present) as file name -->
20
<xsl:variable name="use.id.as.filename">1</xsl:variable>
22
<xsl:template match="releaseinfo" mode="titlepage.mode">
23
<span class="{name(.)}">
25
<xsl:apply-templates mode="titlepage.mode"/>
30
<!-- Use graphics in admonitions (note, warning, etc) -->
31
<xsl:variable name="admon.graphics">0</xsl:variable>
33
<xsl:param name="admon.style">
34
<xsl:text>text-align: left;</xsl:text></xsl:param>
36
<xsl:variable name="admon.graphics.path">stylesheet-images/</xsl:variable>
38
<xsl:variable name="admon.graphics.extension">.gif</xsl:variable>
40
<xsl:param name="table.border.thickness" select="'0.2pt'"/>
42
<xsl:param name="graphic.default.extension" select="png"/>
44
<!-- This requires an adapted template for tgroup (see end of stylesheet) -->
45
<xsl:attribute-set name="table.style">
46
<xsl:attribute name="bgcolor">#fdf9f8</xsl:attribute>
47
<xsl:attribute name="cellspacing">0</xsl:attribute>
48
<xsl:attribute name="cellpadding">4</xsl:attribute>
52
<xsl:param name="generate.legalnotice.link" select="0"/>
54
<!-- set font styles for various tags -->
55
<xsl:template match="guibutton">
56
<xsl:call-template name="inline.boldseq"/>
59
<xsl:template match="guiicon">
60
<xsl:call-template name="inline.boldseq"/>
63
<xsl:template match="guilabel">
64
<xsl:call-template name="inline.boldseq"/>
67
<xsl:template match="guimenu">
68
<xsl:call-template name="inline.boldseq"/>
71
<xsl:template match="guimenuitem">
72
<xsl:call-template name="inline.boldseq"/>
75
<xsl:template match="guisubmenu">
76
<xsl:call-template name="inline.boldseq"/>
79
<xsl:template match="application">
80
<xsl:call-template name="inline.boldmonoseq"/>
83
<xsl:template match="caption">
84
<xsl:call-template name="inline.boldseq"/>
87
<!-- Adapted template for tgroup. The only change is the addition of -->
88
<!-- table.style attributes -->
89
<xsl:template match="tgroup">
90
<table xsl:use-attribute-sets="table.style">
92
<!-- If there's a <?dbhtml table-summary="foo"?> PI, use it for
93
the HTML table summary attribute -->
94
<xsl:when test="processing-instruction('dbhtml')">
95
<xsl:variable name="summary">
96
<xsl:call-template name="dbhtml-attribute">
97
<xsl:with-param name="pis"
98
select="processing-instruction('dbhtml')[1]"/>
99
<xsl:with-param name="attribute" select="'table-summary'"/>
102
<xsl:if test="$summary != ''">
103
<xsl:attribute name="summary">
104
<xsl:value-of select="$summary"/>
108
<!-- Otherwise, if there's a title, use that -->
109
<xsl:when test="../title">
110
<xsl:attribute name="summary">
111
<xsl:value-of select="string(../title)"/>
114
<!-- Otherwise, forget the whole idea -->
115
<xsl:otherwise><!-- nevermind --></xsl:otherwise>
118
<xsl:if test="../@pgwide=1">
119
<xsl:attribute name="width">100%</xsl:attribute>
123
<xsl:when test="../@frame='none'">
124
<xsl:attribute name="border">0</xsl:attribute>
126
<xsl:when test="$table.borders.with.css != 0">
127
<xsl:attribute name="border">0</xsl:attribute>
129
<xsl:when test="../@frame='topbot' or ../@frame='top'">
130
<xsl:attribute name="style">
131
<xsl:call-template name="border">
132
<xsl:with-param name="side" select="'top'"/>
136
<xsl:when test="../@frame='sides'">
137
<xsl:attribute name="style">
138
<xsl:call-template name="border">
139
<xsl:with-param name="side" select="'left'"/>
141
<xsl:call-template name="border">
142
<xsl:with-param name="side" select="'right'"/>
149
<xsl:attribute name="border">1</xsl:attribute>
153
<xsl:variable name="colgroup">
155
<xsl:call-template name="generate.colgroup">
156
<xsl:with-param name="cols" select="@cols"/>
161
<xsl:variable name="explicit.table.width">
162
<xsl:call-template name="dbhtml-attribute">
163
<xsl:with-param name="pis"
164
select="../processing-instruction('dbhtml')[1]"/>
165
<xsl:with-param name="attribute" select="'table-width'"/>
169
<xsl:variable name="table.width">
171
<xsl:when test="$explicit.table.width != ''">
172
<xsl:value-of select="$explicit.table.width"/>
174
<xsl:when test="$default.table.width = ''">
175
<xsl:text>100%</xsl:text>
178
<xsl:value-of select="$default.table.width"/>
183
<xsl:if test="$default.table.width != ''
184
or $explicit.table.width != ''">
185
<xsl:attribute name="width">
187
<xsl:when test="contains($table.width, '%')">
188
<xsl:value-of select="$table.width"/>
190
<xsl:when test="$use.extensions != 0
191
and $tablecolumns.extension != 0">
193
<xsl:when test="function-available('stbl:convertLength')">
194
<xsl:value-of select="stbl:convertLength($table.width)"/>
196
<xsl:when test="function-available('xtbl:convertLength')">
197
<xsl:value-of select="xtbl:convertLength($table.width)"/>
200
<xsl:message terminate="yes">
201
<xsl:text>No convertLength function available.</xsl:text>
207
<xsl:value-of select="$table.width"/>
214
<xsl:when test="$use.extensions != 0
215
and $tablecolumns.extension != 0">
217
<xsl:when test="function-available('stbl:adjustColumnWidths')">
218
<xsl:copy-of select="stbl:adjustColumnWidths($colgroup)"/>
220
<xsl:when test="function-available('xtbl:adjustColumnWidths')">
221
<xsl:copy-of select="xtbl:adjustColumnWidths($colgroup)"/>
224
<xsl:message terminate="yes">
225
<xsl:text>No adjustColumnWidths function available.</xsl:text>
231
<xsl:copy-of select="$colgroup"/>
235
<xsl:apply-templates select="thead"/>
236
<xsl:apply-templates select="tbody"/>
237
<xsl:apply-templates select="tfoot"/>
239
<xsl:if test=".//footnote">
240
<tbody class="footnotes">
242
<td colspan="{@cols}">
243
<xsl:apply-templates select=".//footnote"
244
mode="table.footnote.mode"/>