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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
|
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.1">
<!-- $Id$ -->
<xsl:template match= "xsl:attribute-set[@name='bibliographic-fields-list-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">list-block</xsl:with-param>
<xsl:with-param name="docutils">docinfo</xsl:with-param>
</xsl:call-template>
<block>
Formats the bibliographic fields as a list. Since this element contains all the other list
elements, it can be used to set values such as the font, background color,
line-height, etc, for the entire list, as well as the space after and
before.
</block>
<block>
"The provisional-distance-between-starts property of the list-block
specifies the distance bewteen the start of the label (the bullet, for
example) and the actual start of the list content" (Pawson, 100). In
this case, that means the distance between the label (such as "Version",
and the labels' value (such as "1.2").
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='bibliographic-fields-list-item']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:list-item</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author|docinfo/authors|docinfo/organization|etc.</xsl:with-param>
</xsl:call-template>
<block>
For each item (author, authors, organization, contact, address, version, date, copyright,
custom field) in the bibliograhic fields. Use the 'space-after' attribute to control
the spacing between each item.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='bibliographic-fields-first-list-item']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:list-item</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author|docinfo/authors|docinfo/organization|etc.</xsl:with-param>
<xsl:with-param name="inherits">bibliographic-fields-list-item</xsl:with-param>
</xsl:call-template>
<block>
Same as above, but sets the space before to 0pt.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='bibliographic-fields-list-item-label']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:list-item-label</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author|docinfo/authors|docinfo/organization|etc.</xsl:with-param>
</xsl:call-template>
<block>
The default attribute end-indent = "label-end()" ensures that the label aligns properly.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='bibliographic-fields-item-label-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author|docinfo/authors|docinfo/organization|etc.</xsl:with-param>
</xsl:call-template>
<block>
Formats the block that wraps the the name of the field (such as Author, Version, etc).
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='bibliographic-fields-item-body']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:list-item-body</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author|docinfo/authors|docinfo/organization|etc.</xsl:with-param>
</xsl:call-template>
<block>
The default of start-indent = "body-start()" ensures the correct
alignment of the labels.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='bibliographic-fields-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author|docinfo/authors|docinfo/organization|etc.</xsl:with-param>
</xsl:call-template>
<block>
Formats the blocks (docutilis paragraphs) of the value of the field. Use the
'space-after' attribute to control the spacing between a multi-paragraph
description.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='bibliographic-first-fields-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author|docinfo/authors|docinfo/organization|etc.</xsl:with-param>
<xsl:with-param name="inherits">bibliographic-fields-block</xsl:with-param>
</xsl:call-template>
<block>
Same as above, but for the first such paragraph.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='address-value-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/address</xsl:with-param>
<xsl:with-param name="inherits">bibliographic-fields-block</xsl:with-param>
</xsl:call-template>
<block>
Formats the blocks (docutilis paragraphs) of the address field, which has to preserve
the white space, according to the docutils specs. Since this inherits from the
bibliographic-fields-bloc, it doesn't make sense to change attributes here directly.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='author-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/author</xsl:with-param>
</xsl:call-template>
<block>
Formats the author element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='authors-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/authors</xsl:with-param>
</xsl:call-template>
<block>
Formats the authors element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='date-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/date</xsl:with-param>
</xsl:call-template>
<block>
Formats the date element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='organization-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/organization</xsl:with-param>
</xsl:call-template>
<block>
Formats the organization element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='contact-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/contact</xsl:with-param>
</xsl:call-template>
<block>
Formats the contact element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='status-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/status</xsl:with-param>
</xsl:call-template>
<block>
Formats the status element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='copyright-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/copyright</xsl:with-param>
</xsl:call-template>
<block>
Formats the copyright element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='version-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/version</xsl:with-param>
</xsl:call-template>
<block>
Formats the version element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='revision-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/revision</xsl:with-param>
</xsl:call-template>
<block>
Formats the revision element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='address-block']" priority="3">
<xsl:call-template name="before-desc">
<xsl:with-param name="fo">fo:block</xsl:with-param>
<xsl:with-param name="docutils">docinfo/address</xsl:with-param>
</xsl:call-template>
<block>
Formats the address element, when bibliograhic info is not formatted as a list.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='custom-bib-info1']" priority="3">
<xsl:call-template name="make-title">
<xsl:with-param name="level">5</xsl:with-param>
<xsl:with-param name="text">Custom bibliographic fields</xsl:with-param>
</xsl:call-template>
<block>
<xsl:text>:fo: fo:block</xsl:text>
</block>
<block first-line-indent="-9">
<xsl:text>:docutils: docinfo/field</xsl:text>
</block>
<block>
The following attribute sets are identical in nature:
</block>
<block>* custom-bib-info1</block>
<block>* custom-bib-info2</block>
<block>* custom-bib-info3</block>
<block>* custom-bib-info4</block>
<block>* custom-bib-info5</block>
<block>* custom-bib-info6</block>
<block>* custom-bib-info7</block>
<block>* custom-bib-info8</block>
<block>* custom-bib-info9</block>
<block>* custom-bib-info10</block>
<block>
These attribute-sets format the custom bibliographic fields. ``'custom-bib-info1'`` refers to the first
occurrence of such a field, ``'custom-bib-info2'`` to the second, and so fourth.
</block>
</xsl:template>
<xsl:template match= "xsl:attribute-set[@name='custom-bib-info2']|
xsl:attribute-set[@name='custom-bib-info3']|
xsl:attribute-set[@name='custom-bib-info4']|
xsl:attribute-set[@name='custom-bib-info5']|
xsl:attribute-set[@name='custom-bib-info6']|
xsl:attribute-set[@name='custom-bib-info7']|
xsl:attribute-set[@name='custom-bib-info8']|
xsl:attribute-set[@name='custom-bib-info9']|
xsl:attribute-set[@name='custom-bib-info10'] " priority="3"/>
<xsl:template match= "xsl:attribute-set[@name='Some-custom-field']" priority = "3"/>
</xsl:stylesheet>
|