propaganda 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,782 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
3
+ xmlns:html="http://www.w3.org/1999/xhtml">
4
+
5
+ <xsl:import href="xhtml2fo.xsl"/>
6
+
7
+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
8
+
9
+ <!--======================================================================
10
+ Parameters
11
+ =======================================================================-->
12
+
13
+ <!-- page size -->
14
+ <xsl:param name="page-width">auto</xsl:param>
15
+ <xsl:param name="page-height">auto</xsl:param>
16
+ <xsl:param name="page-margin-top">1in</xsl:param>
17
+ <xsl:param name="page-margin-bottom">1in</xsl:param>
18
+ <xsl:param name="page-margin-left">1in</xsl:param>
19
+ <xsl:param name="page-margin-right">1in</xsl:param>
20
+
21
+ <!-- page header and footer -->
22
+ <xsl:param name="page-header-margin">0.5in</xsl:param>
23
+ <xsl:param name="page-footer-margin">0.5in</xsl:param>
24
+ <xsl:param name="title-print-in-header">true</xsl:param>
25
+ <xsl:param name="page-number-print-in-footer">true</xsl:param>
26
+
27
+ <!-- multi column -->
28
+ <xsl:param name="column-count">1</xsl:param>
29
+ <xsl:param name="column-gap">18pt</xsl:param>
30
+
31
+ <!-- writing-mode: lr-tb | rl-tb | tb-rl -->
32
+ <xsl:param name="writing-mode">lr-tb</xsl:param>
33
+
34
+ <!-- text-align: justify | start -->
35
+ <xsl:param name="text-align">justify</xsl:param>
36
+
37
+ <!-- hyphenate: true | false -->
38
+ <xsl:param name="hyphenate">false</xsl:param>
39
+
40
+
41
+ <!--======================================================================
42
+ Attribute Sets
43
+ =======================================================================-->
44
+
45
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
46
+ Classes
47
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
48
+
49
+ <xsl:template name="class-template">
50
+ <xsl:param name="class"/>
51
+ <xsl:choose>
52
+ <xsl:when test="$class='even'">
53
+ <xsl:attribute name="background-color">#EEE</xsl:attribute>
54
+ </xsl:when>
55
+ <xsl:when test="$class='fail'">
56
+ <xsl:attribute name="background-color">#FEE</xsl:attribute>
57
+ </xsl:when>
58
+ <xsl:when test="$class='pass'">
59
+ <xsl:attribute name="background-color">#EFE</xsl:attribute>
60
+ </xsl:when>
61
+ <xsl:when test="$class='alert'">
62
+ <xsl:attribute name="background-color">#FFE</xsl:attribute>
63
+ </xsl:when>
64
+ </xsl:choose>
65
+ </xsl:template>
66
+
67
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
68
+ Root
69
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
70
+
71
+ <xsl:attribute-set name="root">
72
+ <xsl:attribute name="writing-mode"><xsl:value-of select="$writing-mode"/></xsl:attribute>
73
+ <xsl:attribute name="hyphenate"><xsl:value-of select="$hyphenate"/></xsl:attribute>
74
+ <xsl:attribute name="text-align"><xsl:value-of select="$text-align"/></xsl:attribute>
75
+ <!-- specified on fo:root to change the properties' initial values -->
76
+ </xsl:attribute-set>
77
+
78
+ <xsl:attribute-set name="page">
79
+ <xsl:attribute name="page-width"><xsl:value-of select="$page-width"/></xsl:attribute>
80
+ <xsl:attribute name="page-height"><xsl:value-of select="$page-height"/></xsl:attribute>
81
+ <!-- specified on fo:simple-page-master -->
82
+ </xsl:attribute-set>
83
+
84
+ <xsl:attribute-set name="body">
85
+ <!-- specified on fo:flow's only child fo:block -->
86
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
87
+ <xsl:attribute name="font-size-adjust">0.38</xsl:attribute>
88
+ <xsl:attribute name="color">black</xsl:attribute>
89
+ <xsl:attribute name="line-height.minimum">1em</xsl:attribute>
90
+ <xsl:attribute name="line-height.optimum">1.2em</xsl:attribute>
91
+ <xsl:attribute name="line-height.maximum">1.37em</xsl:attribute>
92
+ <xsl:attribute name="font-size">0.9em</xsl:attribute>
93
+ </xsl:attribute-set>
94
+
95
+ <xsl:attribute-set name="frame">
96
+ <!-- specified on fo:flow's only child fo:block -->
97
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
98
+ <xsl:attribute name="font-size-adjust">0.38</xsl:attribute>
99
+ <xsl:attribute name="color">black</xsl:attribute>
100
+ <xsl:attribute name="line-height.minimum">1em</xsl:attribute>
101
+ <xsl:attribute name="line-height.optimum">1.2em</xsl:attribute>
102
+ <xsl:attribute name="line-height.maximum">1.37em</xsl:attribute>
103
+ <xsl:attribute name="font-size">0.9em</xsl:attribute>
104
+ </xsl:attribute-set>
105
+
106
+ <xsl:attribute-set name="page-header">
107
+ <!-- specified on (page-header)fo:static-content's only child fo:block -->
108
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
109
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
110
+ <xsl:attribute name="color">gray</xsl:attribute>
111
+ <xsl:attribute name="font-size">small</xsl:attribute>
112
+ <xsl:attribute name="text-align">center</xsl:attribute>
113
+ </xsl:attribute-set>
114
+
115
+ <xsl:attribute-set name="page-footer">
116
+ <!-- specified on (page-footer)fo:static-content's only child fo:block -->
117
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
118
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
119
+ <xsl:attribute name="color">gray</xsl:attribute>
120
+ <xsl:attribute name="font-size">small</xsl:attribute>
121
+ <xsl:attribute name="text-align">center</xsl:attribute>
122
+ </xsl:attribute-set>
123
+
124
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
125
+ Block-level
126
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
127
+
128
+ <xsl:attribute-set name="h1">
129
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
130
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
131
+ <xsl:attribute name="font-size">2em</xsl:attribute>
132
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
133
+ <xsl:attribute name="line-height">1.33em</xsl:attribute>
134
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
135
+ <xsl:attribute name="space-before.optimum">1.33em</xsl:attribute>
136
+ <xsl:attribute name="space-before.maximum">1.75em</xsl:attribute>
137
+ <xsl:attribute name="space-after.minimum">0.25em</xsl:attribute>
138
+ <xsl:attribute name="space-after.optimum">0.33em</xsl:attribute>
139
+ <xsl:attribute name="space-after.maximum">0.42em</xsl:attribute>
140
+ <xsl:attribute name="text-align">start</xsl:attribute>
141
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
142
+ <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
143
+ </xsl:attribute-set>
144
+
145
+ <xsl:attribute-set name="h2">
146
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
147
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
148
+ <xsl:attribute name="font-size">1.75em</xsl:attribute>
149
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
150
+ <xsl:attribute name="line-height">1.33em</xsl:attribute>
151
+ <xsl:attribute name="space-before.minimum">1.33em</xsl:attribute>
152
+ <xsl:attribute name="space-before.optimum">1.75em</xsl:attribute>
153
+ <xsl:attribute name="space-before.maximum">2.33em</xsl:attribute>
154
+ <xsl:attribute name="space-after.minimum">0.25em</xsl:attribute>
155
+ <xsl:attribute name="space-after.optimum">0.33em</xsl:attribute>
156
+ <xsl:attribute name="space-after.maximum">0.42em</xsl:attribute>
157
+ <xsl:attribute name="text-align">start</xsl:attribute>
158
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
159
+ <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
160
+ </xsl:attribute-set>
161
+
162
+ <xsl:attribute-set name="h3">
163
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
164
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
165
+ <xsl:attribute name="font-size">1.58em</xsl:attribute>
166
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
167
+ <xsl:attribute name="line-height">1.33em</xsl:attribute>
168
+ <xsl:attribute name="space-before.minimum">1.17em</xsl:attribute>
169
+ <xsl:attribute name="space-before.optimum">1.58em</xsl:attribute>
170
+ <xsl:attribute name="space-before.maximum">2.08em</xsl:attribute>
171
+ <xsl:attribute name="space-after.minimum">0.25em</xsl:attribute>
172
+ <xsl:attribute name="space-after.optimum">0.33em</xsl:attribute>
173
+ <xsl:attribute name="space-after.maximum">0.42em</xsl:attribute>
174
+ <xsl:attribute name="text-align">start</xsl:attribute>
175
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
176
+ <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
177
+ </xsl:attribute-set>
178
+
179
+ <xsl:attribute-set name="h4">
180
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
181
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
182
+ <xsl:attribute name="font-size">1.33em</xsl:attribute>
183
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
184
+ <xsl:attribute name="font-style">oblique</xsl:attribute>
185
+ <xsl:attribute name="line-height">1.33em</xsl:attribute>
186
+ <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
187
+ <xsl:attribute name="space-before.optimum">1.33em</xsl:attribute>
188
+ <xsl:attribute name="space-before.maximum">1.75em</xsl:attribute>
189
+ <xsl:attribute name="space-after.minimum">0.25em</xsl:attribute>
190
+ <xsl:attribute name="space-after.optimum">0.33em</xsl:attribute>
191
+ <xsl:attribute name="space-after.maximum">0.42em</xsl:attribute>
192
+ <xsl:attribute name="text-align">start</xsl:attribute>
193
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
194
+ <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
195
+ </xsl:attribute-set>
196
+
197
+ <xsl:attribute-set name="h5">
198
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
199
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
200
+ <xsl:attribute name="font-size">1.17em</xsl:attribute>
201
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
202
+ <xsl:attribute name="line-height">1.33em</xsl:attribute>
203
+ <xsl:attribute name="space-before.minimum">0.83em</xsl:attribute>
204
+ <xsl:attribute name="space-before.optimum">1.17em</xsl:attribute>
205
+ <xsl:attribute name="space-before.maximum">1.5em</xsl:attribute>
206
+ <xsl:attribute name="space-after.minimum">0.25em</xsl:attribute>
207
+ <xsl:attribute name="space-after.optimum">0.33em</xsl:attribute>
208
+ <xsl:attribute name="space-after.maximum">0.42em</xsl:attribute>
209
+ <xsl:attribute name="text-align">start</xsl:attribute>
210
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
211
+ <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
212
+ </xsl:attribute-set>
213
+
214
+ <xsl:attribute-set name="h6">
215
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
216
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
217
+ <xsl:attribute name="font-size">1em</xsl:attribute>
218
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
219
+ <xsl:attribute name="line-height">1.33em</xsl:attribute>
220
+ <xsl:attribute name="space-before.minimum">0.75em</xsl:attribute>
221
+ <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
222
+ <xsl:attribute name="space-before.maximum">1.33em</xsl:attribute>
223
+ <xsl:attribute name="space-after.minimum">0.25em</xsl:attribute>
224
+ <xsl:attribute name="space-after.optimum">0.33em</xsl:attribute>
225
+ <xsl:attribute name="space-after.maximum">0.42em</xsl:attribute>
226
+ <xsl:attribute name="text-align">start</xsl:attribute>
227
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
228
+ <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
229
+ </xsl:attribute-set>
230
+
231
+ <xsl:attribute-set name="p">
232
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
233
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
234
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
235
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
236
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
237
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
238
+ </xsl:attribute-set>
239
+
240
+ <xsl:attribute-set name="p-initial" use-attribute-sets="p">
241
+ <!-- initial paragraph, preceded by h1..6 or div -->
242
+ </xsl:attribute-set>
243
+
244
+ <xsl:attribute-set name="p-initial-first" use-attribute-sets="p-initial">
245
+ <!-- initial paragraph, first child of div, body or td -->
246
+ </xsl:attribute-set>
247
+
248
+ <xsl:attribute-set name="blockquote">
249
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
250
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
251
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
252
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
253
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
254
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
255
+ <xsl:attribute name="start-indent">inherited-property-value(start-indent) + 1.58em</xsl:attribute>
256
+ <xsl:attribute name="end-indent">inherit</xsl:attribute>
257
+ </xsl:attribute-set>
258
+
259
+ <xsl:attribute-set name="pre">
260
+ <xsl:attribute name="font-family">'Monotype.com', Courier New, monospace</xsl:attribute>
261
+ <xsl:attribute name="font-size">0.83em</xsl:attribute>
262
+ <xsl:attribute name="line-height">1.25em</xsl:attribute>
263
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
264
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
265
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
266
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
267
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
268
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
269
+ </xsl:attribute-set>
270
+
271
+ <xsl:attribute-set name="address">
272
+ <xsl:attribute name="space-before.minimum">1.33em</xsl:attribute>
273
+ <xsl:attribute name="space-before.optimum">1.58em</xsl:attribute>
274
+ <xsl:attribute name="space-before.maximum">1.83em</xsl:attribute>
275
+ <xsl:attribute name="space-after.minimum">1.33em</xsl:attribute>
276
+ <xsl:attribute name="space-after.optimum">1.58em</xsl:attribute>
277
+ <xsl:attribute name="space-after.maximum">1.83em</xsl:attribute>
278
+ <xsl:attribute name="font-style">normal</xsl:attribute>
279
+ <xsl:attribute name="letter-spacing">0.1em</xsl:attribute>
280
+ </xsl:attribute-set>
281
+
282
+ <xsl:attribute-set name="hr">
283
+ <xsl:attribute name="visibility">visible</xsl:attribute>
284
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
285
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
286
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
287
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
288
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
289
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
290
+ </xsl:attribute-set>
291
+
292
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
293
+ List
294
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
295
+
296
+ <xsl:attribute-set name="ul">
297
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
298
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
299
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
300
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
301
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
302
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
303
+ <xsl:attribute name="provisional-distance-between-starts">1.16em</xsl:attribute>
304
+ </xsl:attribute-set>
305
+
306
+ <xsl:attribute-set name="ul-nested">
307
+ </xsl:attribute-set>
308
+
309
+ <xsl:attribute-set name="ol">
310
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
311
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
312
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
313
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
314
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
315
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
316
+ <xsl:attribute name="provisional-distance-between-starts">3.16em</xsl:attribute>
317
+ </xsl:attribute-set>
318
+
319
+ <xsl:attribute-set name="ol-nested">
320
+ </xsl:attribute-set>
321
+
322
+ <xsl:attribute-set name="ul-li">
323
+ <!-- for (unordered)fo:list-item -->
324
+ </xsl:attribute-set>
325
+
326
+ <xsl:attribute-set name="ol-li">
327
+ <!-- for (ordered)fo:list-item -->
328
+ </xsl:attribute-set>
329
+
330
+ <xsl:attribute-set name="dl">
331
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
332
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
333
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
334
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
335
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
336
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
337
+ </xsl:attribute-set>
338
+
339
+ <xsl:attribute-set name="dt">
340
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
341
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
342
+ <xsl:attribute name="font-size">1.17em</xsl:attribute>
343
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
344
+ <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
345
+ <xsl:attribute name="keep-together.within-column">always</xsl:attribute>
346
+ </xsl:attribute-set>
347
+
348
+ <xsl:attribute-set name="dd">
349
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
350
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
351
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
352
+ <xsl:attribute name="start-indent">inherited-property-value(start-indent) + 1.58em</xsl:attribute>
353
+ </xsl:attribute-set>
354
+
355
+ <!-- list-item-label format for each nesting level -->
356
+
357
+ <xsl:param name="ul-label-1">&#x2022;</xsl:param>
358
+ <xsl:attribute-set name="ul-label-1">
359
+ <xsl:attribute name="font">1em serif</xsl:attribute>
360
+ </xsl:attribute-set>
361
+
362
+ <xsl:param name="ul-label-2">o</xsl:param>
363
+ <xsl:attribute-set name="ul-label-2">
364
+ <xsl:attribute name="font">0.67em monospace</xsl:attribute>
365
+ <xsl:attribute name="baseline-shift">0.25em</xsl:attribute>
366
+ </xsl:attribute-set>
367
+
368
+ <xsl:param name="ul-label-3">-</xsl:param>
369
+ <xsl:attribute-set name="ul-label-3">
370
+ <xsl:attribute name="font">bold 0.9em sans-serif</xsl:attribute>
371
+ <xsl:attribute name="baseline-shift">0.05em</xsl:attribute>
372
+ </xsl:attribute-set>
373
+
374
+ <xsl:param name="ol-label-1">1.</xsl:param>
375
+ <xsl:attribute-set name="ol-label-1"/>
376
+
377
+ <xsl:param name="ol-label-2">a.</xsl:param>
378
+ <xsl:attribute-set name="ol-label-2"/>
379
+
380
+ <xsl:param name="ol-label-3">i.</xsl:param>
381
+ <xsl:attribute-set name="ol-label-3"/>
382
+
383
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
384
+ Table
385
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
386
+
387
+ <xsl:attribute-set name="inside-table">
388
+ <!-- prevent unwanted inheritance -->
389
+ <xsl:attribute name="start-indent">0pt</xsl:attribute>
390
+ <xsl:attribute name="end-indent">0pt</xsl:attribute>
391
+ <xsl:attribute name="text-indent">0pt</xsl:attribute>
392
+ <xsl:attribute name="last-line-end-indent">0pt</xsl:attribute>
393
+ <xsl:attribute name="text-align">start</xsl:attribute>
394
+ <xsl:attribute name="text-align-last">relative</xsl:attribute>
395
+ </xsl:attribute-set>
396
+
397
+ <xsl:attribute-set name="table-and-caption" >
398
+ <xsl:attribute name="text-align">start</xsl:attribute>
399
+ </xsl:attribute-set>
400
+
401
+ <xsl:attribute-set name="table">
402
+ <xsl:attribute name="border-color">black</xsl:attribute>
403
+ <xsl:attribute name="text-align">start</xsl:attribute>
404
+ </xsl:attribute-set>
405
+
406
+ <xsl:attribute-set name="table-caption" use-attribute-sets="inside-table">
407
+ <xsl:attribute name="keep-with-next">always</xsl:attribute>
408
+ <xsl:attribute name="padding">1px</xsl:attribute>
409
+ <xsl:attribute name="background-color">black</xsl:attribute>
410
+ <xsl:attribute name="color">white</xsl:attribute>
411
+ <xsl:attribute name="margin-top">7px</xsl:attribute>
412
+ <xsl:attribute name="margin-left">1px</xsl:attribute>
413
+ <xsl:attribute name="text-align">start</xsl:attribute>
414
+ <xsl:attribute name="font-size">0.7em</xsl:attribute>
415
+ </xsl:attribute-set>
416
+
417
+ <xsl:attribute-set name="table-column">
418
+ <xsl:attribute name="border-color">black</xsl:attribute>
419
+ </xsl:attribute-set>
420
+
421
+ <xsl:attribute-set name="thead" use-attribute-sets="inside-table">
422
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
423
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
424
+ </xsl:attribute-set>
425
+
426
+ <xsl:attribute-set name="tfoot" use-attribute-sets="inside-table">
427
+ <xsl:attribute name="font-family">"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif</xsl:attribute>
428
+ <xsl:attribute name="font-size-adjust">0.48</xsl:attribute>
429
+ </xsl:attribute-set>
430
+
431
+ <xsl:attribute-set name="tbody" use-attribute-sets="inside-table">
432
+ <xsl:attribute name="border-color">black</xsl:attribute>
433
+ </xsl:attribute-set>
434
+
435
+ <xsl:attribute-set name="tr">
436
+ <xsl:attribute name="border-color">black</xsl:attribute>
437
+ </xsl:attribute-set>
438
+
439
+ <xsl:attribute-set name="th">
440
+ <xsl:attribute name="display-align">auto</xsl:attribute>
441
+ <xsl:attribute name="relative-align">baseline</xsl:attribute>
442
+ <xsl:attribute name="font">0.7em serif</xsl:attribute>
443
+ <xsl:attribute name="line-height">1.33em</xsl:attribute>
444
+ <xsl:attribute name="text-align">start</xsl:attribute>
445
+ <xsl:attribute name="background-color">silver</xsl:attribute>
446
+ </xsl:attribute-set>
447
+
448
+ <xsl:attribute-set name="td">
449
+ <xsl:attribute name="border-color">black</xsl:attribute>
450
+ <xsl:attribute name="font">0.7em serif</xsl:attribute>
451
+ <xsl:attribute name="text-align">start</xsl:attribute>
452
+ <xsl:attribute name="vertical-align">top</xsl:attribute>
453
+ </xsl:attribute-set>
454
+
455
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
456
+ Inline-level
457
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
458
+
459
+ <xsl:attribute-set name="b">
460
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
461
+ </xsl:attribute-set>
462
+ <xsl:attribute-set name="strong">
463
+ <xsl:attribute name="font-style">italic</xsl:attribute>
464
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
465
+ </xsl:attribute-set>
466
+
467
+ <xsl:attribute-set name="strong-em">
468
+ <xsl:attribute name="text-transform">uppercase</xsl:attribute>
469
+ <xsl:attribute name="font-style">normal</xsl:attribute>
470
+ <xsl:attribute name="font-weight">bolder</xsl:attribute>
471
+ <xsl:attribute name="color">red</xsl:attribute>
472
+ </xsl:attribute-set>
473
+
474
+ <xsl:attribute-set name="i">
475
+ <xsl:attribute name="font-style">italic</xsl:attribute>
476
+ </xsl:attribute-set>
477
+ <xsl:attribute-set name="cite">
478
+ <xsl:attribute name="font-style">italic</xsl:attribute>
479
+ </xsl:attribute-set>
480
+ <xsl:attribute-set name="em">
481
+ <xsl:attribute name="font-style">normal</xsl:attribute>
482
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
483
+ </xsl:attribute-set>
484
+ <xsl:attribute-set name="var">
485
+ <xsl:attribute name="font-style">italic</xsl:attribute>
486
+ </xsl:attribute-set>
487
+ <xsl:attribute-set name="dfn">
488
+ <xsl:attribute name="font-style">italic</xsl:attribute>
489
+ </xsl:attribute-set>
490
+
491
+ <xsl:attribute-set name="tt">
492
+ <xsl:attribute name="font-family">monospace</xsl:attribute>
493
+ </xsl:attribute-set>
494
+ <xsl:attribute-set name="code">
495
+ <xsl:attribute name="font-family">monospace</xsl:attribute>
496
+ </xsl:attribute-set>
497
+ <xsl:attribute-set name="kbd">
498
+ <xsl:attribute name="font-family">monospace</xsl:attribute>
499
+ </xsl:attribute-set>
500
+ <xsl:attribute-set name="samp">
501
+ <xsl:attribute name="font-family">monospace</xsl:attribute>
502
+ </xsl:attribute-set>
503
+
504
+ <xsl:attribute-set name="big">
505
+ <xsl:attribute name="font-size">1.17em</xsl:attribute>
506
+ </xsl:attribute-set>
507
+ <xsl:attribute-set name="small">
508
+ <xsl:attribute name="font-size">0.92em</xsl:attribute>
509
+ </xsl:attribute-set>
510
+
511
+ <xsl:attribute-set name="sub">
512
+ <xsl:attribute name="baseline-shift">sub</xsl:attribute>
513
+ <xsl:attribute name="font-size">smaller</xsl:attribute>
514
+ </xsl:attribute-set>
515
+ <xsl:attribute-set name="sup">
516
+ <xsl:attribute name="baseline-shift">super</xsl:attribute>
517
+ <xsl:attribute name="font-size">smaller</xsl:attribute>
518
+ </xsl:attribute-set>
519
+
520
+ <xsl:attribute-set name="s">
521
+ <xsl:attribute name="text-decoration">line-through</xsl:attribute>
522
+ </xsl:attribute-set>
523
+ <xsl:attribute-set name="strike">
524
+ <xsl:attribute name="text-decoration">line-through</xsl:attribute>
525
+ </xsl:attribute-set>
526
+ <xsl:attribute-set name="del">
527
+ <xsl:attribute name="text-decoration">line-through</xsl:attribute>
528
+ <xsl:attribute name="background">#FF6666</xsl:attribute>
529
+ </xsl:attribute-set>
530
+
531
+ <xsl:attribute-set name="u">
532
+ <xsl:attribute name="text-decoration">underline</xsl:attribute>
533
+ </xsl:attribute-set>
534
+ <xsl:attribute-set name="ins">
535
+ <xsl:attribute name="text-decoration">none</xsl:attribute>
536
+ <xsl:attribute name="background">yellow</xsl:attribute>
537
+ </xsl:attribute-set>
538
+
539
+ <xsl:attribute-set name="abbr">
540
+ <!-- e.g.,
541
+ <xsl:attribute name="font-variant">small-caps</xsl:attribute>
542
+ <xsl:attribute name="letter-spacing">0.1em</xsl:attribute>
543
+ -->
544
+ </xsl:attribute-set>
545
+
546
+ <xsl:attribute-set name="acronym">
547
+ <xsl:attribute name="font-variant">small-caps</xsl:attribute>
548
+ <xsl:attribute name="letter-spacing">0.1em</xsl:attribute>
549
+ </xsl:attribute-set>
550
+
551
+ <xsl:attribute-set name="q"/>
552
+ <xsl:attribute-set name="q-nested"/>
553
+
554
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
555
+ Image
556
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
557
+
558
+ <xsl:attribute-set name="img">
559
+ </xsl:attribute-set>
560
+
561
+ <xsl:attribute-set name="img-link">
562
+ <xsl:attribute name="border">2px solid</xsl:attribute>
563
+ </xsl:attribute-set>
564
+
565
+ <!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
566
+ Link
567
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
568
+
569
+ <xsl:attribute-set name="a-link">
570
+ <xsl:attribute name="text-decoration">none</xsl:attribute>
571
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
572
+ <xsl:attribute name="color">#CC0000</xsl:attribute>
573
+ <xsl:attribute name="background">#FFFFCC</xsl:attribute>
574
+ </xsl:attribute-set>
575
+
576
+ <!--======================================================================
577
+ misc. additional
578
+ =======================================================================-->
579
+
580
+ <xsl:attribute-set name="warning">
581
+ <!-- .warning -->
582
+ <xsl:attribute name="text-transform">none</xsl:attribute>
583
+ <xsl:attribute name="font-style">normal</xsl:attribute>
584
+ <xsl:attribute name="font-weight">bolder</xsl:attribute>
585
+ <xsl:attribute name="color">red</xsl:attribute>
586
+ </xsl:attribute-set>
587
+
588
+ <xsl:attribute-set name="note">
589
+ <!-- .note -->
590
+ <xsl:attribute name="font-style">italic</xsl:attribute>
591
+ </xsl:attribute-set>
592
+
593
+ <xsl:attribute-set name="subhead">
594
+ <!-- .subhead -->
595
+ <xsl:attribute name="space-before.minimum">0.67em</xsl:attribute>
596
+ <xsl:attribute name="space-before.optimum">0.75em</xsl:attribute>
597
+ <xsl:attribute name="space-before.maximum">0.92em</xsl:attribute>
598
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
599
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
600
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
601
+ </xsl:attribute-set>
602
+
603
+ <xsl:attribute-set name="stb">
604
+ <!-- .stb -->
605
+ <xsl:attribute name="space-before.minimum">1.67em</xsl:attribute>
606
+ <xsl:attribute name="space-before.optimum">2.17em</xsl:attribute>
607
+ <xsl:attribute name="space-before.maximum">2.67em</xsl:attribute>
608
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
609
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
610
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
611
+ <xsl:attribute name="padding-before">2.17em</xsl:attribute>
612
+ </xsl:attribute-set>
613
+
614
+ <xsl:attribute-set name="mtb">
615
+ <!-- .mtb -->
616
+ <xsl:attribute name="space-before.minimum">2.58em</xsl:attribute>
617
+ <xsl:attribute name="space-before.optimum">3.08em</xsl:attribute>
618
+ <xsl:attribute name="space-before.maximum">3.5em</xsl:attribute>
619
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
620
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
621
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
622
+ <xsl:attribute name="padding-before">3.08em</xsl:attribute>
623
+ <xsl:attribute name="border-before-width">0.1em</xsl:attribute>
624
+ <xsl:attribute name="border-before-style">solid</xsl:attribute>
625
+ </xsl:attribute-set>
626
+
627
+ <xsl:attribute-set name="ltb">
628
+ <!-- .ltb -->
629
+ <xsl:attribute name="space-before.minimum">3.5em</xsl:attribute>
630
+ <xsl:attribute name="space-before.optimum">4.34em</xsl:attribute>
631
+ <xsl:attribute name="space-before.maximum">5em</xsl:attribute>
632
+ <xsl:attribute name="space-after.minimum">0.67em</xsl:attribute>
633
+ <xsl:attribute name="space-after.optimum">0.75em</xsl:attribute>
634
+ <xsl:attribute name="space-after.maximum">0.92em</xsl:attribute>
635
+ <xsl:attribute name="padding-before">4.34em</xsl:attribute>
636
+ <xsl:attribute name="border-before-width">0.25em</xsl:attribute>
637
+ <xsl:attribute name="border-before-style">solid</xsl:attribute>
638
+ </xsl:attribute-set>
639
+
640
+ <!-- .warning -->
641
+ <xsl:template match="html:div[@class = 'warning']">
642
+ <fo:block xsl:use-attribute-sets="warning">
643
+ <xsl:call-template name="process-common-attributes-and-children"/>
644
+ </fo:block>
645
+ </xsl:template>
646
+ <xsl:template match="html:p[@class = 'warning']">
647
+ <fo:block xsl:use-attribute-sets="p warning">
648
+ <xsl:call-template name="process-common-attributes-and-children"/>
649
+ </fo:block>
650
+ </xsl:template>
651
+ <xsl:template match="html:span[@class = 'warning']">
652
+ <fo:inline xsl:use-attribute-sets="warning">
653
+ <xsl:call-template name="process-common-attributes-and-children"/>
654
+ </fo:inline>
655
+ </xsl:template>
656
+ <xsl:template match="html:strong[@class = 'warning']">
657
+ <fo:inline xsl:use-attribute-sets="strong warning">
658
+ <xsl:call-template name="process-common-attributes-and-children"/>
659
+ </fo:inline>
660
+ </xsl:template>
661
+ <xsl:template match="html:em[@class = 'warning']">
662
+ <fo:inline xsl:use-attribute-sets="em warning">
663
+ <xsl:call-template name="process-common-attributes-and-children"/>
664
+ </fo:inline>
665
+ </xsl:template>
666
+
667
+ <!-- .note -->
668
+ <xsl:template match="html:div[@class = 'note']">
669
+ <fo:block xsl:use-attribute-sets="note">
670
+ <xsl:call-template name="process-common-attributes-and-children"/>
671
+ </fo:block>
672
+ </xsl:template>
673
+ <xsl:template match="html:p[@class = 'note']">
674
+ <fo:block xsl:use-attribute-sets="p note">
675
+ <xsl:call-template name="process-common-attributes-and-children"/>
676
+ </fo:block>
677
+ </xsl:template>
678
+ <xsl:template match="html:span[@class = 'note']">
679
+ <fo:inline xsl:use-attribute-sets="note">
680
+ <xsl:call-template name="process-common-attributes-and-children"/>
681
+ </fo:inline>
682
+ </xsl:template>
683
+ <xsl:template match="html:strong[@class = 'note']">
684
+ <fo:inline xsl:use-attribute-sets="strong note">
685
+ <xsl:call-template name="process-common-attributes-and-children"/>
686
+ </fo:inline>
687
+ </xsl:template>
688
+ <xsl:template match="html:em[@class = 'note']">
689
+ <fo:inline xsl:use-attribute-sets="em note">
690
+ <xsl:call-template name="process-common-attributes-and-children"/>
691
+ </fo:inline>
692
+ </xsl:template>
693
+
694
+ <!-- .subhead -->
695
+ <xsl:template match="html:div[@class = 'subhead']">
696
+ <fo:block xsl:use-attribute-sets="subhead">
697
+ <xsl:call-template name="process-common-attributes-and-children"/>
698
+ </fo:block>
699
+ </xsl:template>
700
+ <xsl:template match="html:h1[@class = 'subhead']">
701
+ <fo:block xsl:use-attribute-sets="h1 subhead">
702
+ <xsl:call-template name="process-common-attributes-and-children"/>
703
+ </fo:block>
704
+ </xsl:template>
705
+ <xsl:template match="html:h2[@class = 'subhead']">
706
+ <fo:block xsl:use-attribute-sets="h2 subhead">
707
+ <xsl:call-template name="process-common-attributes-and-children"/>
708
+ </fo:block>
709
+ </xsl:template>
710
+ <xsl:template match="html:h3[@class = 'subhead']">
711
+ <fo:block xsl:use-attribute-sets="h3 subhead">
712
+ <xsl:call-template name="process-common-attributes-and-children"/>
713
+ </fo:block>
714
+ </xsl:template>
715
+ <xsl:template match="html:h4[@class = 'subhead']">
716
+ <fo:block xsl:use-attribute-sets="h4 subhead">
717
+ <xsl:call-template name="process-common-attributes-and-children"/>
718
+ </fo:block>
719
+ </xsl:template>
720
+ <xsl:template match="html:h5[@class = 'subhead']">
721
+ <fo:block xsl:use-attribute-sets="h5 subhead">
722
+ <xsl:call-template name="process-common-attributes-and-children"/>
723
+ </fo:block>
724
+ </xsl:template>
725
+ <xsl:template match="html:h6[@class = 'subhead']">
726
+ <fo:block xsl:use-attribute-sets="h6 subhead">
727
+ <xsl:call-template name="process-common-attributes-and-children"/>
728
+ </fo:block>
729
+ </xsl:template>
730
+
731
+ <!-- .stb -->
732
+ <xsl:template match="html:div[@class = 'stb']">
733
+ <fo:block xsl:use-attribute-sets="stb">
734
+ <xsl:call-template name="process-common-attributes-and-children"/>
735
+ </fo:block>
736
+ </xsl:template>
737
+ <xsl:template match="html:p[@class = 'stb']">
738
+ <fo:block xsl:use-attribute-sets="p stb">
739
+ <xsl:call-template name="process-common-attributes-and-children"/>
740
+ </fo:block>
741
+ </xsl:template>
742
+
743
+ <!-- .mtb -->
744
+ <xsl:template match="html:div[@class = 'mtb']">
745
+ <fo:block xsl:use-attribute-sets="mtb">
746
+ <xsl:call-template name="process-common-attributes-and-children"/>
747
+ </fo:block>
748
+ </xsl:template>
749
+ <xsl:template match="html:p[@class = 'mtb']">
750
+ <fo:block xsl:use-attribute-sets="p mtb">
751
+ <xsl:call-template name="process-common-attributes-and-children"/>
752
+ </fo:block>
753
+ </xsl:template>
754
+
755
+ <!-- .ltb -->
756
+ <xsl:template match="html:div[@class = 'ltb']">
757
+ <fo:block xsl:use-attribute-sets="ltb">
758
+ <xsl:call-template name="process-common-attributes-and-children"/>
759
+ </fo:block>
760
+ </xsl:template>
761
+ <xsl:template match="html:p[@class = 'ltb']">
762
+ <fo:block xsl:use-attribute-sets="p ltb">
763
+ <xsl:call-template name="process-common-attributes-and-children"/>
764
+ </fo:block>
765
+ </xsl:template>
766
+
767
+ <!-- p.initial -->
768
+ <xsl:template match="html:p[@class = 'initial']">
769
+ <fo:block xsl:use-attribute-sets="p-initial">
770
+ <xsl:call-template name="process-common-attributes-and-children"/>
771
+ </fo:block>
772
+ </xsl:template>
773
+
774
+ <!-- center -->
775
+ <xsl:template match="html:center">
776
+ <fo:block text-align="start">
777
+ <xsl:call-template name="process-common-attributes-and-children"/>
778
+ </fo:block>
779
+ </xsl:template>
780
+
781
+
782
+ </xsl:stylesheet>