~ubuntu-branches/ubuntu/gutsy/gnome-doc-utils/gutsy

« back to all changes in this revision

Viewing changes to debian/db2html-bibliography.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-18 22:51:49 UTC
  • Revision ID: james.westby@ubuntu.com-20051218225149-ccvn781rbcl5lgfq
Tags: 0.5.2-1
* New upstream version:
  - Removed extra gettext import for better performance
  - Fixed bad syntax in a srcdir directory thing    
  - Added missing db2html-bibliography to the build
  - Added missing GPL and LGPL copyright files    
  - Implemented the following numbering systems:
    Arabic decimal
    Chinese simplified
    Chinese traditional
    Japanese
    Thai decimal
    Thai alphabetic
    Serbian alphabetic
    Greek Ionic
  - Updated translation
* debian/db2html-bibliography.xsl,
  debian/gnome-doc-utils.install:
  - fixed with the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
2
 
<!--
3
 
This program is free software; you can redistribute it and/or modify it under
4
 
the terms of the GNU Lesser General Public License as published by the Free
5
 
Software Foundation; either version 2 of the License, or (at your option) any
6
 
later version.
7
 
 
8
 
This program is distributed in the hope that it will be useful, but WITHOUT
9
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10
 
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11
 
details.
12
 
 
13
 
You should have received a copy of the GNU Lesser General Public License
14
 
along with this program; see the file COPYING.LGPL.  If not, write to the
15
 
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
16
 
02111-1307, USA.
17
 
-->
18
 
 
19
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
20
 
                xmlns:doc="http://www.gnome.org/~shaunm/xsldoc"
21
 
                xmlns="http://www.w3.org/1999/xhtml"
22
 
                exclude-result-prefixes="doc"
23
 
                version="1.0">
24
 
 
25
 
<doc:title>Bibliographies</doc:title>
26
 
 
27
 
 
28
 
<!-- == db2html.bibliography.css =============================================== -->
29
 
 
30
 
<template xmlns="http://www.gnome.org/~shaunm/xsldoc">
31
 
  <name>db2html.bibliography.css</name>
32
 
  <purpose>
33
 
    Create CSS for the bibliography elements
34
 
  </purpose>
35
 
</template>
36
 
 
37
 
<xsl:template name="db2html.bibliography.css">
38
 
  <xsl:text>
39
 
    * + div[class~="biblioentry"] { margin-top: 1.2em; }
40
 
    * + div[class~="bibliomixed"] { margin-top: 1.2em; }
41
 
  </xsl:text>
42
 
</xsl:template>
43
 
 
44
 
 
45
 
<!-- = bibliography = -->
46
 
<xsl:template match="bibliography">
47
 
  <xsl:param name="depth_in_chunk">
48
 
    <xsl:call-template name="db.chunk.depth-in-chunk"/>
49
 
  </xsl:param>
50
 
  <xsl:param name="depth_of_chunk">
51
 
    <xsl:call-template name="db.chunk.depth-of-chunk"/>
52
 
  </xsl:param>
53
 
 
54
 
  <xsl:call-template name="db2html.division.div">
55
 
    <xsl:with-param name="divisions" select="bibliodiv"/>
56
 
    <xsl:with-param name="title_content">
57
 
      <xsl:if test="not(title) and not(bibliographyinfo/title)">
58
 
        <xsl:call-template name="l10n.gettext">
59
 
          <xsl:with-param name="msgid" select="'Bibliography'"/>
60
 
        </xsl:call-template>
61
 
      </xsl:if>
62
 
    </xsl:with-param>
63
 
    <xsl:with-param name="info" select="glossaryinfo"/>
64
 
    <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
65
 
    <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
66
 
    <xsl:with-param name="chunk_divisions" select="false()"/>
67
 
  </xsl:call-template>
68
 
</xsl:template>
69
 
 
70
 
<!-- = bibliodiv = -->
71
 
<xsl:template match="bibliodiv">
72
 
  <xsl:param name="depth_in_chunk">
73
 
    <xsl:call-template name="db.chunk.depth-in-chunk"/>
74
 
  </xsl:param>
75
 
  <xsl:param name="depth_of_chunk">
76
 
    <xsl:call-template name="db.chunk.depth-of-chunk"/>
77
 
  </xsl:param>
78
 
  <xsl:call-template name="db2html.division.div">
79
 
    <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
80
 
    <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
81
 
  </xsl:call-template>
82
 
</xsl:template>
83
 
 
84
 
<!-- = bibliomixed = -->
85
 
<xsl:template match="bibliomixed">
86
 
  <div class="bibliomixed block-indent">
87
 
    <xsl:call-template name="db2html.anchor"/>
88
 
    <xsl:choose>
89
 
      <xsl:when test="*[1]/self::abbrev">
90
 
        <xsl:call-template name="db.label">
91
 
          <xsl:with-param name="node" select="."/>
92
 
        </xsl:call-template>
93
 
        <xsl:text> </xsl:text>
94
 
        <xsl:apply-templates select="abbrev[1]/following-sibling::*"/>
95
 
      </xsl:when>
96
 
      <xsl:otherwise>
97
 
        <xsl:if test="@xreflabel | @id">
98
 
          <xsl:call-template name="db.label">
99
 
            <xsl:with-param name="node" select="."/>
100
 
          </xsl:call-template>
101
 
          <xsl:text> </xsl:text>
102
 
        </xsl:if>
103
 
        <xsl:apply-templates/>
104
 
      </xsl:otherwise>
105
 
    </xsl:choose>
106
 
  </div>
107
 
</xsl:template>
108
 
 
109
 
<!-- = bibliomset = -->
110
 
<xsl:template match="bibliomset">
111
 
  <xsl:call-template name="db2html.block"/>
112
 
</xsl:template>
113
 
 
114
 
<!-- = bibliomisc = -->
115
 
<xsl:template match="bibliomisc">
116
 
  <xsl:call-template name="db2html.inline"/>
117
 
</xsl:template>
118
 
 
119
 
 
120
 
<!--
121
 
Cooked bibliography entries allow certain otherwise block-level
122
 
elemets to be inline elements, so we special-case them here.
123
 
-->
124
 
 
125
 
<!-- = biblio*/abstract = -->
126
 
<xsl:template match="bibliomixed/abstract | bibliomset/abstract">
127
 
  <xsl:call-template name="db2html.inline"/>
128
 
</xsl:template>
129
 
 
130
 
<!-- = biblio*/address = -->
131
 
<xsl:template match="bibliomixed/address | bibliomset/address">
132
 
  <xsl:call-template name="db2html.inline"/>
133
 
</xsl:template>
134
 
 
135
 
<!-- = biblio*/affiliation = -->
136
 
<xsl:template match="bibliomixed/affiliation | bibliomset/affiliation">
137
 
  <xsl:call-template name="db2html.inline"/>
138
 
</xsl:template>
139
 
 
140
 
<!-- = biblio*/author = -->
141
 
<xsl:template match="bibliomixed/author | bibliomset/author">
142
 
  <xsl:call-template name="db2html.inline"/>
143
 
</xsl:template>
144
 
 
145
 
<!-- = biblio*/authorblurb = -->
146
 
<xsl:template match="bibliomixed/authorblurb | bibliomset/authorblurb">
147
 
  <xsl:call-template name="db2html.inline"/>
148
 
</xsl:template>
149
 
 
150
 
<!-- = biblio*/authorgroup = -->
151
 
<xsl:template match="bibliomixed/authorgroup | bibliomset/authorgroup">
152
 
  <xsl:call-template name="db2html.inline"/>
153
 
</xsl:template>
154
 
 
155
 
<!-- = biblio*/personblurb = -->
156
 
<xsl:template match="bibliomixed/personblurb | bibliomset/personblurb">
157
 
  <xsl:call-template name="db2html.inline"/>
158
 
</xsl:template>
159
 
 
160
 
<!-- = biblio*/shortaffil = -->
161
 
<xsl:template match="bibliomixed/shortaffil | bibliomset/shortaffil">
162
 
  <xsl:call-template name="db2html.inline"/>
163
 
</xsl:template>
164
 
 
165
 
<!-- = biblio*/title = -->
166
 
<xsl:template match="bibliomixed/title | bibliomset/title">
167
 
  <xsl:call-template name="db2html.inline">
168
 
    <xsl:with-param name="italic" select="true()"/>
169
 
  </xsl:call-template>
170
 
</xsl:template>
171
 
 
172
 
<!-- = refname = -->
173
 
<!--
174
 
<xsl:template match="refname">
175
 
  <xsl:call-template name="db2html.inline"/>
176
 
</xsl:template>
177
 
-->
178
 
 
179
 
<!-- = refnamediv = -->
180
 
<!--
181
 
<xsl:template match="refnamediv">
182
 
  <div class="refnamediv">
183
 
    <xsl:call-template name="db2html.anchor"/>
184
 
    <xsl:for-each select="refname">
185
 
      <xsl:if test="position() != 1">
186
 
        <xsl:text>, </xsl:text>
187
 
      </xsl:if>
188
 
      <xsl:apply-templates select="."/>
189
 
    </xsl:for-each>
190
 
    <xsl:text> — </xsl:text>
191
 
    <xsl:apply-templates select="refpurpose"/>
192
 
  </div>
193
 
</xsl:template>
194
 
-->
195
 
 
196
 
<!-- = refsection = -->
197
 
<!--
198
 
<xsl:template match="refsection">
199
 
  <xsl:param name="depth_in_chunk">
200
 
    <xsl:call-template name="db.chunk.depth-in-chunk"/>
201
 
  </xsl:param>
202
 
  <xsl:param name="depth_of_chunk">
203
 
    <xsl:call-template name="db.chunk.depth-of-chunk"/>
204
 
  </xsl:param>
205
 
  <xsl:call-template name="db2html.division.div">
206
 
    <xsl:with-param name="divisions" select="refsection"/>
207
 
    <xsl:with-param name="info" select="refsectioninfo"/>
208
 
    <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
209
 
    <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
210
 
    <xsl:with-param name="chunk_divisions" select="false()"/>
211
 
  </xsl:call-template>
212
 
</xsl:template>
213
 
-->
214
 
 
215
 
<!-- = refsynopsisdiv = -->
216
 
<!--
217
 
<xsl:template match="refsynopsisdiv">
218
 
  <xsl:param name="depth_in_chunk">
219
 
    <xsl:call-template name="db.chunk.depth-in-chunk"/>
220
 
  </xsl:param>
221
 
  <xsl:param name="depth_of_chunk">
222
 
    <xsl:call-template name="db.chunk.depth-of-chunk"/>
223
 
  </xsl:param>
224
 
  <div class="refsynopsisdiv">
225
 
    <xsl:call-template name="db2html.anchor"/>
226
 
    <xsl:if test="not(title)">
227
 
      <xsl:call-template name="db2html.title.header">
228
 
        <xsl:with-param name="node" select="."/>
229
 
        <xsl:with-param name="referent" select="."/>
230
 
        <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk + 1"/>
231
 
        <xsl:with-param name="referent_depth_in_chunk" select="$depth_in_chunk"/>
232
 
        <xsl:with-param name="generate_label" select="false()"/>
233
 
        <xsl:with-param name="title_content">
234
 
          <xsl:call-template name="l10n.gettext">
235
 
            <xsl:with-param name="msgid" select="'Synopsis'"/>
236
 
          </xsl:call-template>
237
 
        </xsl:with-param>
238
 
      </xsl:call-template>
239
 
    </xsl:if>
240
 
    <xsl:apply-templates>
241
 
      <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk + 1"/>
242
 
    </xsl:apply-templates>
243
 
  </div>
244
 
</xsl:template>
245
 
-->
246
 
 
247
 
<!-- = title = -->
248
 
<!--
249
 
<xsl:template match="refsect1/title | refsect2/title   |
250
 
                     refsect3/title | refsection/title ">
251
 
  <xsl:param name="referent" select=".."/>
252
 
  <xsl:param name="depth_in_chunk">
253
 
    <xsl:call-template name="db.chunk.depth-in-chunk"/>
254
 
  </xsl:param>
255
 
  <xsl:param name="referent_depth_in_chunk">
256
 
    <xsl:choose>
257
 
      <xsl:when test="$referent = .">
258
 
        <xsl:value-of select="$depth_in_chunk"/>
259
 
      </xsl:when>
260
 
      <xsl:when test="ancestor::* = $referent">
261
 
        <xsl:value-of select="$depth_in_chunk -
262
 
                      (count(ancestor::*) - count($referent/ancestor::*)) "/>
263
 
      </xsl:when>
264
 
      <xsl:otherwise>
265
 
        <xsl:call-template name="db.chunk.depth-in-chunk">
266
 
          <xsl:with-param name="node" select="$referent"/>
267
 
        </xsl:call-template>
268
 
      </xsl:otherwise>
269
 
    </xsl:choose>
270
 
  </xsl:param>
271
 
  <xsl:param name="depth_of_chunk">
272
 
    <xsl:call-template name="db.chunk.depth-of-chunk"/>
273
 
  </xsl:param>
274
 
  <xsl:call-template name="db2html.title.header">
275
 
    <xsl:with-param name="referent" select="$referent"/>
276
 
    <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
277
 
    <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
278
 
    <xsl:with-param name="generate_label" select="false()"/>
279
 
  </xsl:call-template>
280
 
</xsl:template>
281
 
-->
282
 
 
283
 
</xsl:stylesheet>