~ubuntu-branches/debian/experimental/xfdesktop4/experimental

« back to all changes in this revision

Viewing changes to doc/xfce-nochunk.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez, Yves-Alexis Perez, Lionel Le Folgoc
  • Date: 2011-02-07 00:17:47 UTC
  • mfrom: (1.4.9 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110207001747-htl6rhaglfhhik8g
Tags: 4.8.1-1
[ Yves-Alexis Perez ]
* New upstream development release.
* debian/control:
  - update standards version to 3.9.1.
  - refresh build-deps for Xfce 4.7.
  - add build dep on libxfce4ui-1-dev.
  - drop xfce4-panel build-dep since we don't build any plugin anymore.
  - add build-dep on hardening-includes.
* Switch to 3.0 (quilt) source format.
* debian/rules:
  - pick {C,LD}FLAGS from dpkg-buildflags.
  - drop --libexecdir, --disable-rpath and --enable-final from configure args.
  - drop usr/lib from chrpath call, it doesn't exist anymore.
  - don't rename generic terminal .desktop file, it's gone too.
  - pass docdir to configure.
  - add hardening flags to {C,LD}FLAGS
* debian/xfdesktop4-data.install:
  - drop usr/share/desktop-directories from install file.
* debian/xfdesktop4.install:
  - drop etc/ no menu is installed anymore.
  - drop usr/ too, no more desktop menu module nor panel plugin. 
* debian/copyright updated for new upstream release.

[ Lionel Le Folgoc ]
* New upstream bugfix release.
* debian/control: clean up build-deps since xfdesktop has been ported to gio,
  exo-1 and garcon.
* Refresh build-deps for Xfce 4.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0'?>
2
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
 
                version='1.0'
4
 
                xmlns="http://www.w3.org/TR/xhtml1/transitional"
5
 
                exclude-result-prefixes="#default">
6
 
 
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
10
 
file"
11
 
-->
12
 
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/onechunk.xsl"/>
13
 
 
14
 
<xsl:param name="suppress.navigation">1</xsl:param>
15
 
 
16
 
<!-- Use stylesheet -->
17
 
<xsl:param name="html.stylesheet" select="'../xfce.css'"/>
18
 
 
19
 
<!-- labels and numbering -->
20
 
<xsl:param name="autotoc.label.separator" select="'. '"/>
21
 
<xsl:param name="chapter.autolabel" select="1"/>
22
 
 
23
 
<!-- Don't force the use of index.html as root filename -->
24
 
<xsl:param name="root.filename" select="''"/>
25
 
 
26
 
<!--  Use element id (if present) as file name  -->
27
 
<xsl:variable name="use.id.as.filename">1</xsl:variable>
28
 
 
29
 
<xsl:template match="releaseinfo" mode="titlepage.mode">
30
 
  <span class="{name(.)}">
31
 
    <xsl:apply-templates mode="titlepage.mode"/>
32
 
    <br/>
33
 
  </span>
34
 
</xsl:template>
35
 
 
36
 
<!-- Use graphics in admonitions (note, warning, etc)  -->
37
 
<xsl:variable name="admon.graphics">0</xsl:variable>
38
 
 
39
 
<xsl:param name="admon.style">
40
 
        <xsl:text>text-align: left;</xsl:text></xsl:param>
41
 
 
42
 
<xsl:variable name="admon.graphics.path">stylesheet-images/</xsl:variable>
43
 
 
44
 
<xsl:variable name="admon.graphics.extension">.gif</xsl:variable>
45
 
 
46
 
<xsl:param name="table.border.thickness" select="'0.2pt'"/>
47
 
 
48
 
<xsl:param name="graphic.default.extension" select="png"/>
49
 
 
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>
54
 
</xsl:attribute-set>
55
 
 
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> 
63
 
</xsl:attribute-set>
64
 
 
65
 
 
66
 
<xsl:param name="generate.legalnotice.link" select="0"/>
67
 
 
68
 
<xsl:param name="shade.verbatim" select="1"/>
69
 
 
70
 
<!-- set font styles for various tags   -->
71
 
<xsl:template match="guibutton">
72
 
<xsl:call-template name="inline.boldseq"/>
73
 
</xsl:template>
74
 
 
75
 
<xsl:template match="guiicon">
76
 
<xsl:call-template name="inline.boldseq"/>
77
 
</xsl:template>
78
 
 
79
 
<xsl:template match="guilabel">
80
 
<xsl:call-template name="inline.boldseq"/>
81
 
</xsl:template>
82
 
 
83
 
<xsl:template match="guimenu">
84
 
<xsl:call-template name="inline.boldseq"/>
85
 
</xsl:template>
86
 
 
87
 
<xsl:template match="guimenuitem">
88
 
<xsl:call-template name="inline.boldseq"/>
89
 
</xsl:template>
90
 
 
91
 
<xsl:template match="guisubmenu">
92
 
<xsl:call-template name="inline.boldseq"/>
93
 
</xsl:template>
94
 
 
95
 
<xsl:template match="application">
96
 
<xsl:call-template name="inline.boldmonoseq"/>
97
 
</xsl:template>
98
 
 
99
 
<xsl:template match="caption">
100
 
<xsl:call-template name="inline.boldseq"/>
101
 
</xsl:template>
102
 
 
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">
107
 
    <xsl:choose>
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'"/>
116
 
          </xsl:call-template>
117
 
        </xsl:variable>
118
 
        <xsl:if test="$summary != ''">
119
 
          <xsl:attribute name="summary">
120
 
            <xsl:value-of select="$summary"/>
121
 
          </xsl:attribute>
122
 
        </xsl:if>
123
 
      </xsl:when>
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)"/>
128
 
        </xsl:attribute>
129
 
      </xsl:when>
130
 
      <!-- Otherwise, forget the whole idea -->
131
 
      <xsl:otherwise><!-- nevermind --></xsl:otherwise>
132
 
    </xsl:choose>
133
 
 
134
 
    <xsl:if test="../@pgwide=1">
135
 
      <xsl:attribute name="width">100%</xsl:attribute>
136
 
    </xsl:if>
137
 
 
138
 
    <xsl:choose>
139
 
      <xsl:when test="../@frame='none'">
140
 
        <xsl:attribute name="border">0</xsl:attribute>
141
 
      </xsl:when>
142
 
      <xsl:when test="$table.borders.with.css != 0">
143
 
        <xsl:attribute name="border">0</xsl:attribute>
144
 
        <xsl:choose>
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'"/>
149
 
              </xsl:call-template>
150
 
            </xsl:attribute>
151
 
          </xsl:when>
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'"/>
156
 
              </xsl:call-template>
157
 
              <xsl:call-template name="border">
158
 
                <xsl:with-param name="side" select="'right'"/>
159
 
              </xsl:call-template>
160
 
            </xsl:attribute>
161
 
          </xsl:when>
162
 
        </xsl:choose>
163
 
      </xsl:when>
164
 
      <xsl:otherwise>
165
 
        <xsl:attribute name="border">1</xsl:attribute>
166
 
      </xsl:otherwise>
167
 
    </xsl:choose>
168
 
 
169
 
    <xsl:variable name="colgroup">
170
 
      <colgroup>
171
 
        <xsl:call-template name="generate.colgroup">
172
 
          <xsl:with-param name="cols" select="@cols"/>
173
 
        </xsl:call-template>
174
 
      </colgroup>
175
 
    </xsl:variable>
176
 
 
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'"/>
182
 
      </xsl:call-template>
183
 
    </xsl:variable>
184
 
 
185
 
    <xsl:variable name="table.width">
186
 
      <xsl:choose>
187
 
        <xsl:when test="$explicit.table.width != ''">
188
 
          <xsl:value-of select="$explicit.table.width"/>
189
 
        </xsl:when>
190
 
        <xsl:when test="$default.table.width = ''">
191
 
          <xsl:text>100%</xsl:text>
192
 
        </xsl:when>
193
 
        <xsl:otherwise>
194
 
          <xsl:value-of select="$default.table.width"/>
195
 
        </xsl:otherwise>
196
 
      </xsl:choose>
197
 
    </xsl:variable>
198
 
 
199
 
    <xsl:if test="$default.table.width != ''
200
 
                  or $explicit.table.width != ''">
201
 
      <xsl:attribute name="width">
202
 
        <xsl:choose>
203
 
          <xsl:when test="contains($table.width, '%')">
204
 
            <xsl:value-of select="$table.width"/>
205
 
          </xsl:when>
206
 
          <xsl:when test="$use.extensions != 0
207
 
                          and $tablecolumns.extension != 0">
208
 
            <xsl:choose>
209
 
              <xsl:when test="function-available('stbl:convertLength')">
210
 
                <xsl:value-of select="stbl:convertLength($table.width)"/>
211
 
              </xsl:when>
212
 
              <xsl:when test="function-available('xtbl:convertLength')">
213
 
                <xsl:value-of select="xtbl:convertLength($table.width)"/>
214
 
              </xsl:when>
215
 
              <xsl:otherwise>
216
 
                <xsl:message terminate="yes">
217
 
                  <xsl:text>No convertLength function available.</xsl:text>
218
 
                </xsl:message>
219
 
              </xsl:otherwise>
220
 
            </xsl:choose>
221
 
          </xsl:when>
222
 
          <xsl:otherwise>
223
 
            <xsl:value-of select="$table.width"/>
224
 
          </xsl:otherwise>
225
 
        </xsl:choose>
226
 
      </xsl:attribute>
227
 
    </xsl:if>
228
 
 
229
 
    <xsl:choose>
230
 
      <xsl:when test="$use.extensions != 0
231
 
                      and $tablecolumns.extension != 0">
232
 
        <xsl:choose>
233
 
          <xsl:when test="function-available('stbl:adjustColumnWidths')">
234
 
            <xsl:copy-of select="stbl:adjustColumnWidths($colgroup)"/>
235
 
          </xsl:when>
236
 
          <xsl:when test="function-available('xtbl:adjustColumnWidths')">
237
 
            <xsl:copy-of select="xtbl:adjustColumnWidths($colgroup)"/>
238
 
          </xsl:when>
239
 
          <xsl:otherwise>
240
 
            <xsl:message terminate="yes">
241
 
              <xsl:text>No adjustColumnWidths function available.</xsl:text>
242
 
            </xsl:message>
243
 
          </xsl:otherwise>
244
 
        </xsl:choose>
245
 
      </xsl:when>
246
 
      <xsl:otherwise>
247
 
        <xsl:copy-of select="$colgroup"/>
248
 
      </xsl:otherwise>
249
 
    </xsl:choose>
250
 
 
251
 
    <xsl:apply-templates select="thead"/>
252
 
    <xsl:apply-templates select="tbody"/>
253
 
    <xsl:apply-templates select="tfoot"/>
254
 
 
255
 
    <xsl:if test=".//footnote">
256
 
      <tbody class="footnotes">
257
 
        <tr>
258
 
          <td colspan="{@cols}">
259
 
            <xsl:apply-templates select=".//footnote" 
260
 
                                 mode="table.footnote.mode"/>
261
 
          </td>
262
 
        </tr>
263
 
      </tbody>
264
 
    </xsl:if>
265
 
  </table>
266
 
</xsl:template>
267
 
 
268
 
 
269
 
</xsl:stylesheet>
270