2 <xsl:stylesheet exclude-result-prefixes="d"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:d="http://docbook.org/ns/docbook"
5 xmlns:fo="http://www.w3.org/1999/XSL/Format"
8 <!-- ********************************************************************
9 $Id: pagesetup.xsl 8320 2009-03-12 17:43:44Z mzjn $
10 ********************************************************************
12 This file is part of the DocBook XSL Stylesheet distribution.
13 See ../README or http://docbook.sf.net/ for copyright
14 copyright and other information.
16 ******************************************************************** -->
18 <!-- ==================================================================== -->
20 <xsl:param name="body.fontset">
21 <xsl:value-of select="$body.font.family"/>
22 <xsl:if test="$body.font.family != ''
23 and $symbol.font.family != ''">,</xsl:if>
24 <xsl:value-of select="$symbol.font.family"/>
27 <xsl:param name="title.fontset">
28 <xsl:value-of select="$title.font.family"/>
29 <xsl:if test="$title.font.family != ''
30 and $symbol.font.family != ''">,</xsl:if>
31 <xsl:value-of select="$symbol.font.family"/>
34 <xsl:param name="margin.left.inner">
36 <xsl:when test="$passivetex.extensions != 0">
37 <xsl:value-of select="$page.margin.inner"/>
40 <xsl:value-of select="$page.margin.inner"/>
41 <xsl:text> - </xsl:text>
42 <xsl:value-of select="$title.margin.left"/>
47 <xsl:template name="setup.pagemasters">
48 <fo:layout-master-set>
50 <fo:simple-page-master master-name="blank"
51 page-width="{$page.width}"
52 page-height="{$page.height}"
53 margin-top="{$page.margin.top}"
54 margin-bottom="{$page.margin.bottom}">
55 <xsl:attribute name="margin-{$direction.align.start}">
56 <xsl:value-of select="$page.margin.outer"/>
57 <xsl:if test="$fop.extensions != 0">
58 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
61 <xsl:attribute name="margin-{$direction.align.end}">
62 <xsl:value-of select="$page.margin.inner"/>
64 <xsl:if test="$axf.extensions != 0">
65 <xsl:call-template name="axf-page-master-properties">
66 <xsl:with-param name="page.master">blank</xsl:with-param>
69 <fo:region-body display-align="center"
70 margin-bottom="{$body.margin.bottom}"
71 margin-top="{$body.margin.top}">
72 <xsl:if test="$fop.extensions = 0 and $fop1.extensions = 0">
73 <xsl:attribute name="region-name">blank-body</xsl:attribute>
76 <fo:region-before region-name="xsl-region-before-blank"
77 extent="{$region.before.extent}"
78 display-align="before"/>
79 <fo:region-after region-name="xsl-region-after-blank"
80 extent="{$region.after.extent}"
81 display-align="after"/>
82 </fo:simple-page-master>
85 <fo:simple-page-master master-name="titlepage-first"
86 page-width="{$page.width}"
87 page-height="{$page.height}"
88 margin-top="{$page.margin.top}"
89 margin-bottom="{$page.margin.bottom}">
90 <xsl:attribute name="margin-{$direction.align.start}">
91 <xsl:value-of select="$page.margin.inner"/>
92 <xsl:if test="$fop.extensions != 0">
93 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
96 <xsl:attribute name="margin-{$direction.align.end}">
97 <xsl:value-of select="$page.margin.outer"/>
99 <xsl:if test="$axf.extensions != 0">
100 <xsl:call-template name="axf-page-master-properties">
101 <xsl:with-param name="page.master">titlepage-first</xsl:with-param>
104 <fo:region-body margin-bottom="{$body.margin.bottom}"
105 margin-top="{$body.margin.top}"
106 column-gap="{$column.gap.titlepage}"
107 column-count="{$column.count.titlepage}">
109 <fo:region-before region-name="xsl-region-before-first"
110 extent="{$region.before.extent}"
111 display-align="before"/>
112 <fo:region-after region-name="xsl-region-after-first"
113 extent="{$region.after.extent}"
114 display-align="after"/>
115 </fo:simple-page-master>
117 <fo:simple-page-master master-name="titlepage-odd"
118 page-width="{$page.width}"
119 page-height="{$page.height}"
120 margin-top="{$page.margin.top}"
121 margin-bottom="{$page.margin.bottom}">
122 <xsl:attribute name="margin-{$direction.align.start}">
123 <xsl:value-of select="$page.margin.inner"/>
124 <xsl:if test="$fop.extensions != 0">
125 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
128 <xsl:attribute name="margin-{$direction.align.end}">
129 <xsl:value-of select="$page.margin.outer"/>
131 <xsl:if test="$axf.extensions != 0">
132 <xsl:call-template name="axf-page-master-properties">
133 <xsl:with-param name="page.master">titlepage-odd</xsl:with-param>
136 <fo:region-body margin-bottom="{$body.margin.bottom}"
137 margin-top="{$body.margin.top}"
138 column-gap="{$column.gap.titlepage}"
139 column-count="{$column.count.titlepage}">
141 <fo:region-before region-name="xsl-region-before-odd"
142 extent="{$region.before.extent}"
143 display-align="before"/>
144 <fo:region-after region-name="xsl-region-after-odd"
145 extent="{$region.after.extent}"
146 display-align="after"/>
147 </fo:simple-page-master>
149 <fo:simple-page-master master-name="titlepage-even"
150 page-width="{$page.width}"
151 page-height="{$page.height}"
152 margin-top="{$page.margin.top}"
153 margin-bottom="{$page.margin.bottom}">
154 <xsl:attribute name="margin-{$direction.align.start}">
155 <xsl:value-of select="$page.margin.outer"/>
156 <xsl:if test="$fop.extensions != 0">
157 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
160 <xsl:attribute name="margin-{$direction.align.end}">
161 <xsl:value-of select="$page.margin.inner"/>
163 <xsl:if test="$axf.extensions != 0">
164 <xsl:call-template name="axf-page-master-properties">
165 <xsl:with-param name="page.master">titlepage-even</xsl:with-param>
168 <fo:region-body margin-bottom="{$body.margin.bottom}"
169 margin-top="{$body.margin.top}"
170 column-gap="{$column.gap.titlepage}"
171 column-count="{$column.count.titlepage}">
173 <fo:region-before region-name="xsl-region-before-even"
174 extent="{$region.before.extent}"
175 display-align="before"/>
176 <fo:region-after region-name="xsl-region-after-even"
177 extent="{$region.after.extent}"
178 display-align="after"/>
179 </fo:simple-page-master>
181 <!-- list-of-title pages -->
182 <fo:simple-page-master master-name="lot-first"
183 page-width="{$page.width}"
184 page-height="{$page.height}"
185 margin-top="{$page.margin.top}"
186 margin-bottom="{$page.margin.bottom}">
187 <xsl:attribute name="margin-{$direction.align.start}">
188 <xsl:value-of select="$page.margin.inner"/>
189 <xsl:if test="$fop.extensions != 0">
190 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
193 <xsl:attribute name="margin-{$direction.align.end}">
194 <xsl:value-of select="$page.margin.outer"/>
196 <xsl:if test="$axf.extensions != 0">
197 <xsl:call-template name="axf-page-master-properties">
198 <xsl:with-param name="page.master">lot-first</xsl:with-param>
201 <fo:region-body margin-bottom="{$body.margin.bottom}"
202 margin-top="{$body.margin.top}"
203 column-gap="{$column.gap.lot}"
204 column-count="{$column.count.lot}">
206 <fo:region-before region-name="xsl-region-before-first"
207 extent="{$region.before.extent}"
208 display-align="before"/>
209 <fo:region-after region-name="xsl-region-after-first"
210 extent="{$region.after.extent}"
211 display-align="after"/>
212 </fo:simple-page-master>
214 <fo:simple-page-master master-name="lot-odd"
215 page-width="{$page.width}"
216 page-height="{$page.height}"
217 margin-top="{$page.margin.top}"
218 margin-bottom="{$page.margin.bottom}">
219 <xsl:attribute name="margin-{$direction.align.start}">
220 <xsl:value-of select="$page.margin.inner"/>
221 <xsl:if test="$fop.extensions != 0">
222 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
225 <xsl:attribute name="margin-{$direction.align.end}">
226 <xsl:value-of select="$page.margin.outer"/>
228 <xsl:if test="$axf.extensions != 0">
229 <xsl:call-template name="axf-page-master-properties">
230 <xsl:with-param name="page.master">lot-odd</xsl:with-param>
233 <fo:region-body margin-bottom="{$body.margin.bottom}"
234 margin-top="{$body.margin.top}"
235 column-gap="{$column.gap.lot}"
236 column-count="{$column.count.lot}">
238 <fo:region-before region-name="xsl-region-before-odd"
239 extent="{$region.before.extent}"
240 display-align="before"/>
241 <fo:region-after region-name="xsl-region-after-odd"
242 extent="{$region.after.extent}"
243 display-align="after"/>
244 </fo:simple-page-master>
246 <fo:simple-page-master master-name="lot-even"
247 page-width="{$page.width}"
248 page-height="{$page.height}"
249 margin-top="{$page.margin.top}"
250 margin-bottom="{$page.margin.bottom}">
251 <xsl:attribute name="margin-{$direction.align.start}">
252 <xsl:value-of select="$page.margin.outer"/>
253 <xsl:if test="$fop.extensions != 0">
254 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
257 <xsl:attribute name="margin-{$direction.align.end}">
258 <xsl:value-of select="$page.margin.inner"/>
260 <xsl:if test="$axf.extensions != 0">
261 <xsl:call-template name="axf-page-master-properties">
262 <xsl:with-param name="page.master">lot-even</xsl:with-param>
265 <fo:region-body margin-bottom="{$body.margin.bottom}"
266 margin-top="{$body.margin.top}"
267 column-gap="{$column.gap.lot}"
268 column-count="{$column.count.lot}">
270 <fo:region-before region-name="xsl-region-before-even"
271 extent="{$region.before.extent}"
272 display-align="before"/>
273 <fo:region-after region-name="xsl-region-after-even"
274 extent="{$region.after.extent}"
275 display-align="after"/>
276 </fo:simple-page-master>
278 <!-- frontmatter pages -->
279 <fo:simple-page-master master-name="front-first"
280 page-width="{$page.width}"
281 page-height="{$page.height}"
282 margin-top="{$page.margin.top}"
283 margin-bottom="{$page.margin.bottom}">
284 <xsl:attribute name="margin-{$direction.align.start}">
285 <xsl:value-of select="$page.margin.inner"/>
286 <xsl:if test="$fop.extensions != 0">
287 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
290 <xsl:attribute name="margin-{$direction.align.end}">
291 <xsl:value-of select="$page.margin.outer"/>
293 <xsl:if test="$axf.extensions != 0">
294 <xsl:call-template name="axf-page-master-properties">
295 <xsl:with-param name="page.master">front-first</xsl:with-param>
298 <fo:region-body margin-bottom="{$body.margin.bottom}"
299 margin-top="{$body.margin.top}"
300 column-gap="{$column.gap.front}"
301 column-count="{$column.count.front}">
303 <fo:region-before region-name="xsl-region-before-first"
304 extent="{$region.before.extent}"
305 display-align="before"/>
306 <fo:region-after region-name="xsl-region-after-first"
307 extent="{$region.after.extent}"
308 display-align="after"/>
309 </fo:simple-page-master>
311 <fo:simple-page-master master-name="front-odd"
312 page-width="{$page.width}"
313 page-height="{$page.height}"
314 margin-top="{$page.margin.top}"
315 margin-bottom="{$page.margin.bottom}">
316 <xsl:attribute name="margin-{$direction.align.start}">
317 <xsl:value-of select="$page.margin.inner"/>
318 <xsl:if test="$fop.extensions != 0">
319 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
322 <xsl:attribute name="margin-{$direction.align.end}">
323 <xsl:value-of select="$page.margin.outer"/>
325 <xsl:if test="$axf.extensions != 0">
326 <xsl:call-template name="axf-page-master-properties">
327 <xsl:with-param name="page.master">front-odd</xsl:with-param>
330 <fo:region-body margin-bottom="{$body.margin.bottom}"
331 margin-top="{$body.margin.top}"
332 column-gap="{$column.gap.front}"
333 column-count="{$column.count.front}">
335 <fo:region-before region-name="xsl-region-before-odd"
336 extent="{$region.before.extent}"
337 display-align="before"/>
338 <fo:region-after region-name="xsl-region-after-odd"
339 extent="{$region.after.extent}"
340 display-align="after"/>
341 </fo:simple-page-master>
343 <fo:simple-page-master master-name="front-even"
344 page-width="{$page.width}"
345 page-height="{$page.height}"
346 margin-top="{$page.margin.top}"
347 margin-bottom="{$page.margin.bottom}">
348 <xsl:attribute name="margin-{$direction.align.start}">
349 <xsl:value-of select="$page.margin.outer"/>
350 <xsl:if test="$fop.extensions != 0">
351 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
354 <xsl:attribute name="margin-{$direction.align.end}">
355 <xsl:value-of select="$page.margin.inner"/>
357 <xsl:if test="$axf.extensions != 0">
358 <xsl:call-template name="axf-page-master-properties">
359 <xsl:with-param name="page.master">front-even</xsl:with-param>
362 <fo:region-body margin-bottom="{$body.margin.bottom}"
363 margin-top="{$body.margin.top}"
364 column-gap="{$column.gap.front}"
365 column-count="{$column.count.front}">
367 <fo:region-before region-name="xsl-region-before-even"
368 extent="{$region.before.extent}"
369 display-align="before"/>
370 <fo:region-after region-name="xsl-region-after-even"
371 extent="{$region.after.extent}"
372 display-align="after"/>
373 </fo:simple-page-master>
376 <fo:simple-page-master master-name="body-first"
377 page-width="{$page.width}"
378 page-height="{$page.height}"
379 margin-top="{$page.margin.top}"
380 margin-bottom="{$page.margin.bottom}">
381 <xsl:attribute name="margin-{$direction.align.start}">
382 <xsl:value-of select="$page.margin.inner"/>
383 <xsl:if test="$fop.extensions != 0">
384 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
386 <xsl:if test="$fop.extensions != 0">
387 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
390 <xsl:attribute name="margin-{$direction.align.end}">
391 <xsl:value-of select="$page.margin.outer"/>
393 <xsl:if test="$axf.extensions != 0">
394 <xsl:call-template name="axf-page-master-properties">
395 <xsl:with-param name="page.master">body-first</xsl:with-param>
398 <fo:region-body margin-bottom="{$body.margin.bottom}"
399 margin-top="{$body.margin.top}"
400 column-gap="{$column.gap.body}"
401 column-count="{$column.count.body}">
403 <fo:region-before region-name="xsl-region-before-first"
404 extent="{$region.before.extent}"
405 display-align="before"/>
406 <fo:region-after region-name="xsl-region-after-first"
407 extent="{$region.after.extent}"
408 display-align="after"/>
409 </fo:simple-page-master>
411 <fo:simple-page-master master-name="body-odd"
412 page-width="{$page.width}"
413 page-height="{$page.height}"
414 margin-top="{$page.margin.top}"
415 margin-bottom="{$page.margin.bottom}">
416 <xsl:attribute name="margin-{$direction.align.start}">
417 <xsl:value-of select="$page.margin.inner"/>
418 <xsl:if test="$fop.extensions != 0">
419 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
422 <xsl:attribute name="margin-{$direction.align.end}">
423 <xsl:value-of select="$page.margin.outer"/>
425 <xsl:if test="$axf.extensions != 0">
426 <xsl:call-template name="axf-page-master-properties">
427 <xsl:with-param name="page.master">body-odd</xsl:with-param>
430 <fo:region-body margin-bottom="{$body.margin.bottom}"
431 margin-top="{$body.margin.top}"
432 column-gap="{$column.gap.body}"
433 column-count="{$column.count.body}">
435 <fo:region-before region-name="xsl-region-before-odd"
436 extent="{$region.before.extent}"
437 display-align="before"/>
438 <fo:region-after region-name="xsl-region-after-odd"
439 extent="{$region.after.extent}"
440 display-align="after"/>
441 </fo:simple-page-master>
443 <fo:simple-page-master master-name="body-even"
444 page-width="{$page.width}"
445 page-height="{$page.height}"
446 margin-top="{$page.margin.top}"
447 margin-bottom="{$page.margin.bottom}">
448 <xsl:attribute name="margin-{$direction.align.start}">
449 <xsl:value-of select="$page.margin.outer"/>
450 <xsl:if test="$fop.extensions != 0">
451 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
454 <xsl:attribute name="margin-{$direction.align.end}">
455 <xsl:value-of select="$page.margin.inner"/>
457 <xsl:if test="$axf.extensions != 0">
458 <xsl:call-template name="axf-page-master-properties">
459 <xsl:with-param name="page.master">body-even</xsl:with-param>
462 <fo:region-body margin-bottom="{$body.margin.bottom}"
463 margin-top="{$body.margin.top}"
464 column-gap="{$column.gap.body}"
465 column-count="{$column.count.body}">
467 <fo:region-before region-name="xsl-region-before-even"
468 extent="{$region.before.extent}"
469 display-align="before"/>
470 <fo:region-after region-name="xsl-region-after-even"
471 extent="{$region.after.extent}"
472 display-align="after"/>
473 </fo:simple-page-master>
475 <!-- backmatter pages -->
476 <fo:simple-page-master master-name="back-first"
477 page-width="{$page.width}"
478 page-height="{$page.height}"
479 margin-top="{$page.margin.top}"
480 margin-bottom="{$page.margin.bottom}">
481 <xsl:attribute name="margin-{$direction.align.start}">
482 <xsl:value-of select="$page.margin.inner"/>
483 <xsl:if test="$fop.extensions != 0">
484 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
487 <xsl:attribute name="margin-{$direction.align.end}">
488 <xsl:value-of select="$page.margin.outer"/>
490 <xsl:if test="$axf.extensions != 0">
491 <xsl:call-template name="axf-page-master-properties">
492 <xsl:with-param name="page.master">back-first</xsl:with-param>
495 <fo:region-body margin-bottom="{$body.margin.bottom}"
496 margin-top="{$body.margin.top}"
497 column-gap="{$column.gap.back}"
498 column-count="{$column.count.back}">
500 <fo:region-before region-name="xsl-region-before-first"
501 extent="{$region.before.extent}"
502 display-align="before"/>
503 <fo:region-after region-name="xsl-region-after-first"
504 extent="{$region.after.extent}"
505 display-align="after"/>
506 </fo:simple-page-master>
508 <fo:simple-page-master master-name="back-odd"
509 page-width="{$page.width}"
510 page-height="{$page.height}"
511 margin-top="{$page.margin.top}"
512 margin-bottom="{$page.margin.bottom}">
513 <xsl:attribute name="margin-{$direction.align.start}">
514 <xsl:value-of select="$page.margin.inner"/>
515 <xsl:if test="$fop.extensions != 0">
516 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
519 <xsl:attribute name="margin-{$direction.align.end}">
520 <xsl:value-of select="$page.margin.outer"/>
522 <xsl:if test="$axf.extensions != 0">
523 <xsl:call-template name="axf-page-master-properties">
524 <xsl:with-param name="page.master">back-odd</xsl:with-param>
527 <fo:region-body margin-bottom="{$body.margin.bottom}"
528 margin-top="{$body.margin.top}"
529 column-gap="{$column.gap.back}"
530 column-count="{$column.count.back}">
532 <fo:region-before region-name="xsl-region-before-odd"
533 extent="{$region.before.extent}"
534 display-align="before"/>
535 <fo:region-after region-name="xsl-region-after-odd"
536 extent="{$region.after.extent}"
537 display-align="after"/>
538 </fo:simple-page-master>
540 <fo:simple-page-master master-name="back-even"
541 page-width="{$page.width}"
542 page-height="{$page.height}"
543 margin-top="{$page.margin.top}"
544 margin-bottom="{$page.margin.bottom}">
545 <xsl:attribute name="margin-{$direction.align.start}">
546 <xsl:value-of select="$page.margin.outer"/>
547 <xsl:if test="$fop.extensions != 0">
548 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
551 <xsl:attribute name="margin-{$direction.align.end}">
552 <xsl:value-of select="$page.margin.inner"/>
554 <xsl:if test="$axf.extensions != 0">
555 <xsl:call-template name="axf-page-master-properties">
556 <xsl:with-param name="page.master">back-even</xsl:with-param>
559 <fo:region-body margin-bottom="{$body.margin.bottom}"
560 margin-top="{$body.margin.top}"
561 column-gap="{$column.gap.back}"
562 column-count="{$column.count.back}">
564 <fo:region-before region-name="xsl-region-before-even"
565 extent="{$region.before.extent}"
566 display-align="before"/>
567 <fo:region-after region-name="xsl-region-after-even"
568 extent="{$region.after.extent}"
569 display-align="after"/>
570 </fo:simple-page-master>
573 <fo:simple-page-master master-name="index-first"
574 page-width="{$page.width}"
575 page-height="{$page.height}"
576 margin-top="{$page.margin.top}"
577 margin-bottom="{$page.margin.bottom}">
578 <xsl:attribute name="margin-{$direction.align.start}">
579 <xsl:value-of select="$page.margin.inner"/>
580 <xsl:if test="$fop.extensions != 0">
581 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
584 <xsl:attribute name="margin-{$direction.align.end}">
585 <xsl:value-of select="$page.margin.outer"/>
587 <xsl:if test="$axf.extensions != 0">
588 <xsl:call-template name="axf-page-master-properties">
589 <xsl:with-param name="page.master">index-first</xsl:with-param>
592 <fo:region-body margin-bottom="{$body.margin.bottom}"
593 margin-top="{$body.margin.top}"
594 column-gap="{$column.gap.index}"
595 column-count="{$column.count.index}">
597 <fo:region-before region-name="xsl-region-before-first"
598 extent="{$region.before.extent}"
599 display-align="before"/>
600 <fo:region-after region-name="xsl-region-after-first"
601 extent="{$region.after.extent}"
602 display-align="after"/>
603 </fo:simple-page-master>
605 <fo:simple-page-master master-name="index-odd"
606 page-width="{$page.width}"
607 page-height="{$page.height}"
608 margin-top="{$page.margin.top}"
609 margin-bottom="{$page.margin.bottom}">
610 <xsl:attribute name="margin-{$direction.align.start}">
611 <xsl:value-of select="$page.margin.inner"/>
612 <xsl:if test="$fop.extensions != 0">
613 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
616 <xsl:attribute name="margin-{$direction.align.end}">
617 <xsl:value-of select="$page.margin.outer"/>
619 <xsl:if test="$axf.extensions != 0">
620 <xsl:call-template name="axf-page-master-properties">
621 <xsl:with-param name="page.master">index-odd</xsl:with-param>
624 <fo:region-body margin-bottom="{$body.margin.bottom}"
625 margin-top="{$body.margin.top}"
626 column-gap="{$column.gap.index}"
627 column-count="{$column.count.index}">
629 <fo:region-before region-name="xsl-region-before-odd"
630 extent="{$region.before.extent}"
631 display-align="before"/>
632 <fo:region-after region-name="xsl-region-after-odd"
633 extent="{$region.after.extent}"
634 display-align="after"/>
635 </fo:simple-page-master>
637 <fo:simple-page-master master-name="index-even"
638 page-width="{$page.width}"
639 page-height="{$page.height}"
640 margin-top="{$page.margin.top}"
641 margin-bottom="{$page.margin.bottom}">
642 <xsl:attribute name="margin-{$direction.align.start}">
643 <xsl:value-of select="$page.margin.outer"/>
644 <xsl:if test="$fop.extensions != 0">
645 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
648 <xsl:attribute name="margin-{$direction.align.end}">
649 <xsl:value-of select="$page.margin.inner"/>
651 <xsl:if test="$axf.extensions != 0">
652 <xsl:call-template name="axf-page-master-properties">
653 <xsl:with-param name="page.master">index-even</xsl:with-param>
656 <fo:region-body margin-bottom="{$body.margin.bottom}"
657 margin-top="{$body.margin.top}"
658 column-gap="{$column.gap.index}"
659 column-count="{$column.count.index}">
661 <fo:region-before region-name="xsl-region-before-even"
662 extent="{$region.before.extent}"
663 display-align="before"/>
664 <fo:region-after region-name="xsl-region-after-even"
665 extent="{$region.after.extent}"
666 display-align="after"/>
667 </fo:simple-page-master>
669 <xsl:if test="$draft.mode != 'no'">
670 <!-- draft blank pages -->
671 <fo:simple-page-master master-name="blank-draft"
672 page-width="{$page.width}"
673 page-height="{$page.height}"
674 margin-top="{$page.margin.top}"
675 margin-bottom="{$page.margin.bottom}">
676 <xsl:attribute name="margin-{$direction.align.start}">
677 <xsl:value-of select="$page.margin.outer"/>
678 <xsl:if test="$fop.extensions != 0">
679 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
682 <xsl:attribute name="margin-{$direction.align.end}">
683 <xsl:value-of select="$page.margin.inner"/>
685 <xsl:if test="$axf.extensions != 0">
686 <xsl:call-template name="axf-page-master-properties">
687 <xsl:with-param name="page.master">blank-draft</xsl:with-param>
690 <fo:region-body margin-bottom="{$body.margin.bottom}"
691 margin-top="{$body.margin.top}">
692 <xsl:if test="$draft.watermark.image != ''">
693 <xsl:attribute name="background-image">
694 <xsl:call-template name="fo-external-image">
695 <xsl:with-param name="filename" select="$draft.watermark.image"/>
698 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
699 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
700 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
701 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
704 <fo:region-before region-name="xsl-region-before-blank"
705 extent="{$region.before.extent}"
706 display-align="before"/>
707 <fo:region-after region-name="xsl-region-after-blank"
708 extent="{$region.after.extent}"
709 display-align="after"/>
710 </fo:simple-page-master>
712 <!-- draft title pages -->
713 <fo:simple-page-master master-name="titlepage-first-draft"
714 page-width="{$page.width}"
715 page-height="{$page.height}"
716 margin-top="{$page.margin.top}"
717 margin-bottom="{$page.margin.bottom}">
718 <xsl:attribute name="margin-{$direction.align.start}">
719 <xsl:value-of select="$page.margin.inner"/>
720 <xsl:if test="$fop.extensions != 0">
721 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
724 <xsl:attribute name="margin-{$direction.align.end}">
725 <xsl:value-of select="$page.margin.outer"/>
727 <xsl:if test="$axf.extensions != 0">
728 <xsl:call-template name="axf-page-master-properties">
729 <xsl:with-param name="page.master">titlepage-first-draft</xsl:with-param>
732 <fo:region-body margin-bottom="{$body.margin.bottom}"
733 margin-top="{$body.margin.top}"
734 column-gap="{$column.gap.titlepage}"
735 column-count="{$column.count.titlepage}">
736 <xsl:if test="$draft.watermark.image != ''">
737 <xsl:attribute name="background-image">
738 <xsl:call-template name="fo-external-image">
739 <xsl:with-param name="filename" select="$draft.watermark.image"/>
742 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
743 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
744 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
745 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
748 <fo:region-before region-name="xsl-region-before-first"
749 extent="{$region.before.extent}"
750 display-align="before"/>
751 <fo:region-after region-name="xsl-region-after-first"
752 extent="{$region.after.extent}"
753 display-align="after"/>
754 </fo:simple-page-master>
756 <fo:simple-page-master master-name="titlepage-odd-draft"
757 page-width="{$page.width}"
758 page-height="{$page.height}"
759 margin-top="{$page.margin.top}"
760 margin-bottom="{$page.margin.bottom}">
761 <xsl:attribute name="margin-{$direction.align.start}">
762 <xsl:value-of select="$page.margin.inner"/>
763 <xsl:if test="$fop.extensions != 0">
764 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
767 <xsl:attribute name="margin-{$direction.align.end}">
768 <xsl:value-of select="$page.margin.outer"/>
770 <xsl:if test="$axf.extensions != 0">
771 <xsl:call-template name="axf-page-master-properties">
772 <xsl:with-param name="page.master">titlepage-odd-draft</xsl:with-param>
775 <fo:region-body margin-bottom="{$body.margin.bottom}"
776 margin-top="{$body.margin.top}"
777 column-gap="{$column.gap.titlepage}"
778 column-count="{$column.count.titlepage}">
779 <xsl:if test="$draft.watermark.image != ''">
780 <xsl:attribute name="background-image">
781 <xsl:call-template name="fo-external-image">
782 <xsl:with-param name="filename" select="$draft.watermark.image"/>
785 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
786 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
787 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
788 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
791 <fo:region-before region-name="xsl-region-before-odd"
792 extent="{$region.before.extent}"
793 display-align="before"/>
794 <fo:region-after region-name="xsl-region-after-odd"
795 extent="{$region.after.extent}"
796 display-align="after"/>
797 </fo:simple-page-master>
799 <fo:simple-page-master master-name="titlepage-even-draft"
800 page-width="{$page.width}"
801 page-height="{$page.height}"
802 margin-top="{$page.margin.top}"
803 margin-bottom="{$page.margin.bottom}">
804 <xsl:attribute name="margin-{$direction.align.start}">
805 <xsl:value-of select="$page.margin.outer"/>
806 <xsl:if test="$fop.extensions != 0">
807 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
810 <xsl:attribute name="margin-{$direction.align.end}">
811 <xsl:value-of select="$page.margin.inner"/>
813 <xsl:if test="$axf.extensions != 0">
814 <xsl:call-template name="axf-page-master-properties">
815 <xsl:with-param name="page.master">titlepage-even-draft</xsl:with-param>
818 <fo:region-body margin-bottom="{$body.margin.bottom}"
819 margin-top="{$body.margin.top}"
820 column-gap="{$column.gap.titlepage}"
821 column-count="{$column.count.titlepage}">
822 <xsl:if test="$draft.watermark.image != ''">
823 <xsl:attribute name="background-image">
824 <xsl:call-template name="fo-external-image">
825 <xsl:with-param name="filename" select="$draft.watermark.image"/>
828 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
829 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
830 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
831 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
834 <fo:region-before region-name="xsl-region-before-even"
835 extent="{$region.before.extent}"
836 display-align="before"/>
837 <fo:region-after region-name="xsl-region-after-even"
838 extent="{$region.after.extent}"
839 display-align="after"/>
840 </fo:simple-page-master>
842 <!-- draft list-of-title pages -->
843 <fo:simple-page-master master-name="lot-first-draft"
844 page-width="{$page.width}"
845 page-height="{$page.height}"
846 margin-top="{$page.margin.top}"
847 margin-bottom="{$page.margin.bottom}">
848 <xsl:attribute name="margin-{$direction.align.start}">
849 <xsl:value-of select="$page.margin.inner"/>
850 <xsl:if test="$fop.extensions != 0">
851 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
854 <xsl:attribute name="margin-{$direction.align.end}">
855 <xsl:value-of select="$page.margin.outer"/>
857 <xsl:if test="$axf.extensions != 0">
858 <xsl:call-template name="axf-page-master-properties">
859 <xsl:with-param name="page.master">lot-first-draft</xsl:with-param>
862 <fo:region-body margin-bottom="{$body.margin.bottom}"
863 margin-top="{$body.margin.top}"
864 column-gap="{$column.gap.lot}"
865 column-count="{$column.count.lot}">
866 <xsl:if test="$draft.watermark.image != ''">
867 <xsl:attribute name="background-image">
868 <xsl:call-template name="fo-external-image">
869 <xsl:with-param name="filename" select="$draft.watermark.image"/>
872 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
873 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
874 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
875 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
878 <fo:region-before region-name="xsl-region-before-first"
879 extent="{$region.before.extent}"
880 display-align="before"/>
881 <fo:region-after region-name="xsl-region-after-first"
882 extent="{$region.after.extent}"
883 display-align="after"/>
884 </fo:simple-page-master>
886 <fo:simple-page-master master-name="lot-odd-draft"
887 page-width="{$page.width}"
888 page-height="{$page.height}"
889 margin-top="{$page.margin.top}"
890 margin-bottom="{$page.margin.bottom}">
891 <xsl:attribute name="margin-{$direction.align.start}">
892 <xsl:value-of select="$page.margin.inner"/>
893 <xsl:if test="$fop.extensions != 0">
894 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
897 <xsl:attribute name="margin-{$direction.align.end}">
898 <xsl:value-of select="$page.margin.outer"/>
900 <xsl:if test="$axf.extensions != 0">
901 <xsl:call-template name="axf-page-master-properties">
902 <xsl:with-param name="page.master">lot-odd-draft</xsl:with-param>
905 <fo:region-body margin-bottom="{$body.margin.bottom}"
906 margin-top="{$body.margin.top}"
907 column-gap="{$column.gap.lot}"
908 column-count="{$column.count.lot}">
909 <xsl:if test="$draft.watermark.image != ''">
910 <xsl:attribute name="background-image">
911 <xsl:call-template name="fo-external-image">
912 <xsl:with-param name="filename" select="$draft.watermark.image"/>
915 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
916 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
917 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
918 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
921 <fo:region-before region-name="xsl-region-before-odd"
922 extent="{$region.before.extent}"
923 display-align="before"/>
924 <fo:region-after region-name="xsl-region-after-odd"
925 extent="{$region.after.extent}"
926 display-align="after"/>
927 </fo:simple-page-master>
929 <fo:simple-page-master master-name="lot-even-draft"
930 page-width="{$page.width}"
931 page-height="{$page.height}"
932 margin-top="{$page.margin.top}"
933 margin-bottom="{$page.margin.bottom}">
934 <xsl:attribute name="margin-{$direction.align.start}">
935 <xsl:value-of select="$page.margin.outer"/>
936 <xsl:if test="$fop.extensions != 0">
937 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
940 <xsl:attribute name="margin-{$direction.align.end}">
941 <xsl:value-of select="$page.margin.inner"/>
943 <xsl:if test="$axf.extensions != 0">
944 <xsl:call-template name="axf-page-master-properties">
945 <xsl:with-param name="page.master">lot-even-draft</xsl:with-param>
948 <fo:region-body margin-bottom="{$body.margin.bottom}"
949 margin-top="{$body.margin.top}"
950 column-gap="{$column.gap.lot}"
951 column-count="{$column.count.lot}">
952 <xsl:if test="$draft.watermark.image != ''">
953 <xsl:attribute name="background-image">
954 <xsl:call-template name="fo-external-image">
955 <xsl:with-param name="filename" select="$draft.watermark.image"/>
958 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
959 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
960 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
961 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
964 <fo:region-before region-name="xsl-region-before-even"
965 extent="{$region.before.extent}"
966 display-align="before"/>
967 <fo:region-after region-name="xsl-region-after-even"
968 extent="{$region.after.extent}"
969 display-align="after"/>
970 </fo:simple-page-master>
972 <!-- draft frontmatter pages -->
973 <fo:simple-page-master master-name="front-first-draft"
974 page-width="{$page.width}"
975 page-height="{$page.height}"
976 margin-top="{$page.margin.top}"
977 margin-bottom="{$page.margin.bottom}">
978 <xsl:attribute name="margin-{$direction.align.start}">
979 <xsl:value-of select="$page.margin.inner"/>
980 <xsl:if test="$fop.extensions != 0">
981 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
984 <xsl:attribute name="margin-{$direction.align.end}">
985 <xsl:value-of select="$page.margin.outer"/>
987 <xsl:if test="$axf.extensions != 0">
988 <xsl:call-template name="axf-page-master-properties">
989 <xsl:with-param name="page.master">front-first-draft</xsl:with-param>
992 <fo:region-body margin-bottom="{$body.margin.bottom}"
993 margin-top="{$body.margin.top}"
994 column-gap="{$column.gap.front}"
995 column-count="{$column.count.front}">
996 <xsl:if test="$draft.watermark.image != ''">
997 <xsl:attribute name="background-image">
998 <xsl:call-template name="fo-external-image">
999 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1000 </xsl:call-template>
1002 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1003 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1004 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1005 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1008 <fo:region-before region-name="xsl-region-before-first"
1009 extent="{$region.before.extent}"
1010 display-align="before"/>
1011 <fo:region-after region-name="xsl-region-after-first"
1012 extent="{$region.after.extent}"
1013 display-align="after"/>
1014 </fo:simple-page-master>
1016 <fo:simple-page-master master-name="front-odd-draft"
1017 page-width="{$page.width}"
1018 page-height="{$page.height}"
1019 margin-top="{$page.margin.top}"
1020 margin-bottom="{$page.margin.bottom}">
1021 <xsl:attribute name="margin-{$direction.align.start}">
1022 <xsl:value-of select="$page.margin.inner"/>
1023 <xsl:if test="$fop.extensions != 0">
1024 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1027 <xsl:attribute name="margin-{$direction.align.end}">
1028 <xsl:value-of select="$page.margin.outer"/>
1030 <xsl:if test="$axf.extensions != 0">
1031 <xsl:call-template name="axf-page-master-properties">
1032 <xsl:with-param name="page.master">front-odd-draft</xsl:with-param>
1033 </xsl:call-template>
1035 <fo:region-body margin-bottom="{$body.margin.bottom}"
1036 margin-top="{$body.margin.top}"
1037 column-gap="{$column.gap.front}"
1038 column-count="{$column.count.front}">
1039 <xsl:if test="$draft.watermark.image != ''">
1040 <xsl:attribute name="background-image">
1041 <xsl:call-template name="fo-external-image">
1042 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1043 </xsl:call-template>
1045 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1046 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1047 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1048 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1051 <fo:region-before region-name="xsl-region-before-odd"
1052 extent="{$region.before.extent}"
1053 display-align="before"/>
1054 <fo:region-after region-name="xsl-region-after-odd"
1055 extent="{$region.after.extent}"
1056 display-align="after"/>
1057 </fo:simple-page-master>
1059 <fo:simple-page-master master-name="front-even-draft"
1060 page-width="{$page.width}"
1061 page-height="{$page.height}"
1062 margin-top="{$page.margin.top}"
1063 margin-bottom="{$page.margin.bottom}">
1064 <xsl:attribute name="margin-{$direction.align.start}">
1065 <xsl:value-of select="$page.margin.outer"/>
1066 <xsl:if test="$fop.extensions != 0">
1067 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1070 <xsl:attribute name="margin-{$direction.align.end}">
1071 <xsl:value-of select="$page.margin.inner"/>
1073 <xsl:if test="$axf.extensions != 0">
1074 <xsl:call-template name="axf-page-master-properties">
1075 <xsl:with-param name="page.master">front-even-draft</xsl:with-param>
1076 </xsl:call-template>
1078 <fo:region-body margin-bottom="{$body.margin.bottom}"
1079 margin-top="{$body.margin.top}"
1080 column-gap="{$column.gap.front}"
1081 column-count="{$column.count.front}">
1082 <xsl:if test="$draft.watermark.image != ''">
1083 <xsl:attribute name="background-image">
1084 <xsl:call-template name="fo-external-image">
1085 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1086 </xsl:call-template>
1088 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1089 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1090 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1091 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1094 <fo:region-before region-name="xsl-region-before-even"
1095 extent="{$region.before.extent}"
1096 display-align="before"/>
1097 <fo:region-after region-name="xsl-region-after-even"
1098 extent="{$region.after.extent}"
1099 display-align="after"/>
1100 </fo:simple-page-master>
1102 <!-- draft body pages -->
1103 <fo:simple-page-master master-name="body-first-draft"
1104 page-width="{$page.width}"
1105 page-height="{$page.height}"
1106 margin-top="{$page.margin.top}"
1107 margin-bottom="{$page.margin.bottom}">
1108 <xsl:attribute name="margin-{$direction.align.start}">
1109 <xsl:value-of select="$page.margin.inner"/>
1110 <xsl:if test="$fop.extensions != 0">
1111 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1114 <xsl:attribute name="margin-{$direction.align.end}">
1115 <xsl:value-of select="$page.margin.outer"/>
1117 <xsl:if test="$axf.extensions != 0">
1118 <xsl:call-template name="axf-page-master-properties">
1119 <xsl:with-param name="page.master">body-first-draft</xsl:with-param>
1120 </xsl:call-template>
1122 <fo:region-body margin-bottom="{$body.margin.bottom}"
1123 margin-top="{$body.margin.top}"
1124 column-gap="{$column.gap.body}"
1125 column-count="{$column.count.body}">
1126 <xsl:if test="$draft.watermark.image != ''">
1127 <xsl:attribute name="background-image">
1128 <xsl:call-template name="fo-external-image">
1129 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1130 </xsl:call-template>
1132 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1133 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1134 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1135 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1138 <fo:region-before region-name="xsl-region-before-first"
1139 extent="{$region.before.extent}"
1140 display-align="before"/>
1141 <fo:region-after region-name="xsl-region-after-first"
1142 extent="{$region.after.extent}"
1143 display-align="after"/>
1144 </fo:simple-page-master>
1146 <fo:simple-page-master master-name="body-odd-draft"
1147 page-width="{$page.width}"
1148 page-height="{$page.height}"
1149 margin-top="{$page.margin.top}"
1150 margin-bottom="{$page.margin.bottom}">
1151 <xsl:attribute name="margin-{$direction.align.start}">
1152 <xsl:value-of select="$page.margin.inner"/>
1153 <xsl:if test="$fop.extensions != 0">
1154 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1157 <xsl:attribute name="margin-{$direction.align.end}">
1158 <xsl:value-of select="$page.margin.outer"/>
1160 <xsl:if test="$axf.extensions != 0">
1161 <xsl:call-template name="axf-page-master-properties">
1162 <xsl:with-param name="page.master">body-odd-draft</xsl:with-param>
1163 </xsl:call-template>
1165 <fo:region-body margin-bottom="{$body.margin.bottom}"
1166 margin-top="{$body.margin.top}"
1167 column-gap="{$column.gap.body}"
1168 column-count="{$column.count.body}">
1169 <xsl:if test="$draft.watermark.image != ''">
1170 <xsl:attribute name="background-image">
1171 <xsl:call-template name="fo-external-image">
1172 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1173 </xsl:call-template>
1175 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1176 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1177 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1178 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1181 <fo:region-before region-name="xsl-region-before-odd"
1182 extent="{$region.before.extent}"
1183 display-align="before"/>
1184 <fo:region-after region-name="xsl-region-after-odd"
1185 extent="{$region.after.extent}"
1186 display-align="after"/>
1187 </fo:simple-page-master>
1189 <fo:simple-page-master master-name="body-even-draft"
1190 page-width="{$page.width}"
1191 page-height="{$page.height}"
1192 margin-top="{$page.margin.top}"
1193 margin-bottom="{$page.margin.bottom}">
1194 <xsl:attribute name="margin-{$direction.align.start}">
1195 <xsl:value-of select="$page.margin.outer"/>
1196 <xsl:if test="$fop.extensions != 0">
1197 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1200 <xsl:attribute name="margin-{$direction.align.end}">
1201 <xsl:value-of select="$page.margin.inner"/>
1203 <xsl:if test="$axf.extensions != 0">
1204 <xsl:call-template name="axf-page-master-properties">
1205 <xsl:with-param name="page.master">body-even-draft</xsl:with-param>
1206 </xsl:call-template>
1208 <fo:region-body margin-bottom="{$body.margin.bottom}"
1209 margin-top="{$body.margin.top}"
1210 column-gap="{$column.gap.body}"
1211 column-count="{$column.count.body}">
1212 <xsl:if test="$draft.watermark.image != ''">
1213 <xsl:attribute name="background-image">
1214 <xsl:call-template name="fo-external-image">
1215 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1216 </xsl:call-template>
1218 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1219 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1220 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1221 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1224 <fo:region-before region-name="xsl-region-before-even"
1225 extent="{$region.before.extent}"
1226 display-align="before"/>
1227 <fo:region-after region-name="xsl-region-after-even"
1228 extent="{$region.after.extent}"
1229 display-align="after"/>
1230 </fo:simple-page-master>
1232 <!-- draft backmatter pages -->
1233 <fo:simple-page-master master-name="back-first-draft"
1234 page-width="{$page.width}"
1235 page-height="{$page.height}"
1236 margin-top="{$page.margin.top}"
1237 margin-bottom="{$page.margin.bottom}">
1238 <xsl:attribute name="margin-{$direction.align.start}">
1239 <xsl:value-of select="$page.margin.inner"/>
1240 <xsl:if test="$fop.extensions != 0">
1241 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1244 <xsl:attribute name="margin-{$direction.align.end}">
1245 <xsl:value-of select="$page.margin.outer"/>
1247 <xsl:if test="$axf.extensions != 0">
1248 <xsl:call-template name="axf-page-master-properties">
1249 <xsl:with-param name="page.master">back-first-draft</xsl:with-param>
1250 </xsl:call-template>
1252 <fo:region-body margin-bottom="{$body.margin.bottom}"
1253 margin-top="{$body.margin.top}"
1254 column-gap="{$column.gap.back}"
1255 column-count="{$column.count.back}">
1256 <xsl:if test="$draft.watermark.image != ''">
1257 <xsl:attribute name="background-image">
1258 <xsl:call-template name="fo-external-image">
1259 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1260 </xsl:call-template>
1262 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1263 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1264 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1265 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1268 <fo:region-before region-name="xsl-region-before-first"
1269 extent="{$region.before.extent}"
1270 display-align="before"/>
1271 <fo:region-after region-name="xsl-region-after-first"
1272 extent="{$region.after.extent}"
1273 display-align="after"/>
1274 </fo:simple-page-master>
1276 <fo:simple-page-master master-name="back-odd-draft"
1277 page-width="{$page.width}"
1278 page-height="{$page.height}"
1279 margin-top="{$page.margin.top}"
1280 margin-bottom="{$page.margin.bottom}">
1281 <xsl:attribute name="margin-{$direction.align.start}">
1282 <xsl:value-of select="$page.margin.inner"/>
1283 <xsl:if test="$fop.extensions != 0">
1284 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1287 <xsl:attribute name="margin-{$direction.align.end}">
1288 <xsl:value-of select="$page.margin.outer"/>
1290 <xsl:if test="$axf.extensions != 0">
1291 <xsl:call-template name="axf-page-master-properties">
1292 <xsl:with-param name="page.master">back-odd-draft</xsl:with-param>
1293 </xsl:call-template>
1295 <fo:region-body margin-bottom="{$body.margin.bottom}"
1296 margin-top="{$body.margin.top}"
1297 column-gap="{$column.gap.back}"
1298 column-count="{$column.count.back}">
1299 <xsl:if test="$draft.watermark.image != ''">
1300 <xsl:attribute name="background-image">
1301 <xsl:call-template name="fo-external-image">
1302 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1303 </xsl:call-template>
1305 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1306 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1307 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1308 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1311 <fo:region-before region-name="xsl-region-before-odd"
1312 extent="{$region.before.extent}"
1313 display-align="before"/>
1314 <fo:region-after region-name="xsl-region-after-odd"
1315 extent="{$region.after.extent}"
1316 display-align="after"/>
1317 </fo:simple-page-master>
1319 <fo:simple-page-master master-name="back-even-draft"
1320 page-width="{$page.width}"
1321 page-height="{$page.height}"
1322 margin-top="{$page.margin.top}"
1323 margin-bottom="{$page.margin.bottom}">
1324 <xsl:attribute name="margin-{$direction.align.start}">
1325 <xsl:value-of select="$page.margin.outer"/>
1326 <xsl:if test="$fop.extensions != 0">
1327 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1330 <xsl:attribute name="margin-{$direction.align.end}">
1331 <xsl:value-of select="$page.margin.inner"/>
1333 <xsl:if test="$axf.extensions != 0">
1334 <xsl:call-template name="axf-page-master-properties">
1335 <xsl:with-param name="page.master">back-even-draft</xsl:with-param>
1336 </xsl:call-template>
1338 <fo:region-body margin-bottom="{$body.margin.bottom}"
1339 margin-top="{$body.margin.top}"
1340 column-gap="{$column.gap.back}"
1341 column-count="{$column.count.back}">
1342 <xsl:if test="$draft.watermark.image != ''">
1343 <xsl:attribute name="background-image">
1344 <xsl:call-template name="fo-external-image">
1345 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1346 </xsl:call-template>
1348 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1349 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1350 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1351 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1354 <fo:region-before region-name="xsl-region-before-even"
1355 extent="{$region.before.extent}"
1356 display-align="before"/>
1357 <fo:region-after region-name="xsl-region-after-even"
1358 extent="{$region.after.extent}"
1359 display-align="after"/>
1360 </fo:simple-page-master>
1362 <!-- draft index pages -->
1363 <fo:simple-page-master master-name="index-first-draft"
1364 page-width="{$page.width}"
1365 page-height="{$page.height}"
1366 margin-top="{$page.margin.top}"
1367 margin-bottom="{$page.margin.bottom}">
1368 <xsl:attribute name="margin-{$direction.align.start}">
1369 <xsl:value-of select="$page.margin.inner"/>
1370 <xsl:if test="$fop.extensions != 0">
1371 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1374 <xsl:attribute name="margin-{$direction.align.end}">
1375 <xsl:value-of select="$page.margin.outer"/>
1377 <xsl:if test="$axf.extensions != 0">
1378 <xsl:call-template name="axf-page-master-properties">
1379 <xsl:with-param name="page.master">index-first-draft</xsl:with-param>
1380 </xsl:call-template>
1382 <fo:region-body margin-bottom="{$body.margin.bottom}"
1383 margin-top="{$body.margin.top}"
1384 column-gap="{$column.gap.index}"
1385 column-count="{$column.count.index}">
1386 <xsl:if test="$draft.watermark.image != ''">
1387 <xsl:attribute name="background-image">
1388 <xsl:call-template name="fo-external-image">
1389 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1390 </xsl:call-template>
1392 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1393 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1394 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1395 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1398 <fo:region-before region-name="xsl-region-before-first"
1399 extent="{$region.before.extent}"
1400 display-align="before"/>
1401 <fo:region-after region-name="xsl-region-after-first"
1402 extent="{$region.after.extent}"
1403 display-align="after"/>
1404 </fo:simple-page-master>
1406 <fo:simple-page-master master-name="index-odd-draft"
1407 page-width="{$page.width}"
1408 page-height="{$page.height}"
1409 margin-top="{$page.margin.top}"
1410 margin-bottom="{$page.margin.bottom}">
1411 <xsl:attribute name="margin-{$direction.align.start}">
1412 <xsl:value-of select="$page.margin.inner"/>
1413 <xsl:if test="$fop.extensions != 0">
1414 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1417 <xsl:attribute name="margin-{$direction.align.end}">
1418 <xsl:value-of select="$page.margin.outer"/>
1420 <xsl:if test="$axf.extensions != 0">
1421 <xsl:call-template name="axf-page-master-properties">
1422 <xsl:with-param name="page.master">index-odd-draft</xsl:with-param>
1423 </xsl:call-template>
1425 <fo:region-body margin-bottom="{$body.margin.bottom}"
1426 margin-top="{$body.margin.top}"
1427 column-gap="{$column.gap.index}"
1428 column-count="{$column.count.index}">
1429 <xsl:if test="$draft.watermark.image != ''">
1430 <xsl:attribute name="background-image">
1431 <xsl:call-template name="fo-external-image">
1432 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1433 </xsl:call-template>
1435 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1436 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1437 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1438 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1441 <fo:region-before region-name="xsl-region-before-odd"
1442 extent="{$region.before.extent}"
1443 display-align="before"/>
1444 <fo:region-after region-name="xsl-region-after-odd"
1445 extent="{$region.after.extent}"
1446 display-align="after"/>
1447 </fo:simple-page-master>
1449 <fo:simple-page-master master-name="index-even-draft"
1450 page-width="{$page.width}"
1451 page-height="{$page.height}"
1452 margin-top="{$page.margin.top}"
1453 margin-bottom="{$page.margin.bottom}">
1454 <xsl:attribute name="margin-{$direction.align.start}">
1455 <xsl:value-of select="$page.margin.outer"/>
1456 <xsl:if test="$fop.extensions != 0">
1457 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/>
1460 <xsl:attribute name="margin-{$direction.align.end}">
1461 <xsl:value-of select="$page.margin.inner"/>
1463 <xsl:if test="$axf.extensions != 0">
1464 <xsl:call-template name="axf-page-master-properties">
1465 <xsl:with-param name="page.master">index-even-draft</xsl:with-param>
1466 </xsl:call-template>
1468 <fo:region-body margin-bottom="{$body.margin.bottom}"
1469 margin-top="{$body.margin.top}"
1470 column-gap="{$column.gap.index}"
1471 column-count="{$column.count.index}">
1472 <xsl:if test="$draft.watermark.image != ''">
1473 <xsl:attribute name="background-image">
1474 <xsl:call-template name="fo-external-image">
1475 <xsl:with-param name="filename" select="$draft.watermark.image"/>
1476 </xsl:call-template>
1478 <xsl:attribute name="background-attachment">fixed</xsl:attribute>
1479 <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
1480 <xsl:attribute name="background-position-horizontal">center</xsl:attribute>
1481 <xsl:attribute name="background-position-vertical">center</xsl:attribute>
1484 <fo:region-before region-name="xsl-region-before-even"
1485 extent="{$region.before.extent}"
1486 display-align="before"/>
1487 <fo:region-after region-name="xsl-region-after-even"
1488 extent="{$region.after.extent}"
1489 display-align="after"/>
1490 </fo:simple-page-master>
1493 <!-- setup for title page(s) -->
1494 <fo:page-sequence-master master-name="titlepage">
1495 <fo:repeatable-page-master-alternatives>
1496 <fo:conditional-page-master-reference master-reference="blank"
1497 blank-or-not-blank="blank"/>
1498 <fo:conditional-page-master-reference master-reference="titlepage-first"
1499 page-position="first"/>
1500 <fo:conditional-page-master-reference master-reference="titlepage-odd"
1502 <fo:conditional-page-master-reference
1504 <xsl:attribute name="master-reference">
1506 <xsl:when test="$double.sided != 0">titlepage-even</xsl:when>
1507 <xsl:otherwise>titlepage-odd</xsl:otherwise>
1510 </fo:conditional-page-master-reference>
1511 </fo:repeatable-page-master-alternatives>
1512 </fo:page-sequence-master>
1514 <!-- setup for lots -->
1515 <fo:page-sequence-master master-name="lot">
1516 <fo:repeatable-page-master-alternatives>
1517 <fo:conditional-page-master-reference master-reference="blank"
1518 blank-or-not-blank="blank"/>
1519 <fo:conditional-page-master-reference master-reference="lot-first"
1520 page-position="first"/>
1521 <fo:conditional-page-master-reference master-reference="lot-odd"
1523 <fo:conditional-page-master-reference
1525 <xsl:attribute name="master-reference">
1527 <xsl:when test="$double.sided != 0">lot-even</xsl:when>
1528 <xsl:otherwise>lot-odd</xsl:otherwise>
1531 </fo:conditional-page-master-reference>
1532 </fo:repeatable-page-master-alternatives>
1533 </fo:page-sequence-master>
1535 <!-- setup front matter -->
1536 <fo:page-sequence-master master-name="front">
1537 <fo:repeatable-page-master-alternatives>
1538 <fo:conditional-page-master-reference master-reference="blank"
1539 blank-or-not-blank="blank"/>
1540 <fo:conditional-page-master-reference master-reference="front-first"
1541 page-position="first"/>
1542 <fo:conditional-page-master-reference master-reference="front-odd"
1544 <fo:conditional-page-master-reference
1546 <xsl:attribute name="master-reference">
1548 <xsl:when test="$double.sided != 0">front-even</xsl:when>
1549 <xsl:otherwise>front-odd</xsl:otherwise>
1552 </fo:conditional-page-master-reference>
1553 </fo:repeatable-page-master-alternatives>
1554 </fo:page-sequence-master>
1556 <!-- setup for body pages -->
1557 <fo:page-sequence-master master-name="body">
1558 <fo:repeatable-page-master-alternatives>
1559 <fo:conditional-page-master-reference master-reference="blank"
1560 blank-or-not-blank="blank"/>
1561 <fo:conditional-page-master-reference master-reference="body-first"
1562 page-position="first"/>
1563 <fo:conditional-page-master-reference master-reference="body-odd"
1565 <fo:conditional-page-master-reference
1567 <xsl:attribute name="master-reference">
1569 <xsl:when test="$double.sided != 0">body-even</xsl:when>
1570 <xsl:otherwise>body-odd</xsl:otherwise>
1573 </fo:conditional-page-master-reference>
1574 </fo:repeatable-page-master-alternatives>
1575 </fo:page-sequence-master>
1577 <!-- setup back matter -->
1578 <fo:page-sequence-master master-name="back">
1579 <fo:repeatable-page-master-alternatives>
1580 <fo:conditional-page-master-reference master-reference="blank"
1581 blank-or-not-blank="blank"/>
1582 <fo:conditional-page-master-reference master-reference="back-first"
1583 page-position="first"/>
1584 <fo:conditional-page-master-reference master-reference="back-odd"
1586 <fo:conditional-page-master-reference
1588 <xsl:attribute name="master-reference">
1590 <xsl:when test="$double.sided != 0">back-even</xsl:when>
1591 <xsl:otherwise>back-odd</xsl:otherwise>
1594 </fo:conditional-page-master-reference>
1595 </fo:repeatable-page-master-alternatives>
1596 </fo:page-sequence-master>
1598 <!-- setup back matter -->
1599 <fo:page-sequence-master master-name="index">
1600 <fo:repeatable-page-master-alternatives>
1601 <fo:conditional-page-master-reference master-reference="blank"
1602 blank-or-not-blank="blank"/>
1603 <fo:conditional-page-master-reference master-reference="index-first"
1604 page-position="first"/>
1605 <fo:conditional-page-master-reference master-reference="index-odd"
1607 <fo:conditional-page-master-reference
1609 <xsl:attribute name="master-reference">
1611 <xsl:when test="$double.sided != 0">index-even</xsl:when>
1612 <xsl:otherwise>index-odd</xsl:otherwise>
1615 </fo:conditional-page-master-reference>
1616 </fo:repeatable-page-master-alternatives>
1617 </fo:page-sequence-master>
1619 <xsl:if test="$draft.mode != 'no'">
1620 <!-- setup for draft title page(s) -->
1621 <fo:page-sequence-master master-name="titlepage-draft">
1622 <fo:repeatable-page-master-alternatives>
1623 <fo:conditional-page-master-reference master-reference="blank-draft"
1624 blank-or-not-blank="blank"/>
1625 <fo:conditional-page-master-reference master-reference="titlepage-first-draft"
1626 page-position="first"/>
1627 <fo:conditional-page-master-reference master-reference="titlepage-odd-draft"
1629 <fo:conditional-page-master-reference
1631 <xsl:attribute name="master-reference">
1633 <xsl:when test="$double.sided != 0">titlepage-even-draft</xsl:when>
1634 <xsl:otherwise>titlepage-odd-draft</xsl:otherwise>
1637 </fo:conditional-page-master-reference>
1638 </fo:repeatable-page-master-alternatives>
1639 </fo:page-sequence-master>
1641 <!-- setup for draft lots -->
1642 <fo:page-sequence-master master-name="lot-draft">
1643 <fo:repeatable-page-master-alternatives>
1644 <fo:conditional-page-master-reference master-reference="blank-draft"
1645 blank-or-not-blank="blank"/>
1646 <fo:conditional-page-master-reference master-reference="lot-first-draft"
1647 page-position="first"/>
1648 <fo:conditional-page-master-reference master-reference="lot-odd-draft"
1650 <fo:conditional-page-master-reference
1652 <xsl:attribute name="master-reference">
1654 <xsl:when test="$double.sided != 0">lot-even-draft</xsl:when>
1655 <xsl:otherwise>lot-odd-draft</xsl:otherwise>
1658 </fo:conditional-page-master-reference>
1659 </fo:repeatable-page-master-alternatives>
1660 </fo:page-sequence-master>
1662 <!-- setup draft front matter -->
1663 <fo:page-sequence-master master-name="front-draft">
1664 <fo:repeatable-page-master-alternatives>
1665 <fo:conditional-page-master-reference master-reference="blank-draft"
1666 blank-or-not-blank="blank"/>
1667 <fo:conditional-page-master-reference master-reference="front-first-draft"
1668 page-position="first"/>
1669 <fo:conditional-page-master-reference master-reference="front-odd-draft"
1671 <fo:conditional-page-master-reference
1673 <xsl:attribute name="master-reference">
1675 <xsl:when test="$double.sided != 0">front-even-draft</xsl:when>
1676 <xsl:otherwise>front-odd-draft</xsl:otherwise>
1679 </fo:conditional-page-master-reference>
1680 </fo:repeatable-page-master-alternatives>
1681 </fo:page-sequence-master>
1683 <!-- setup for draft body pages -->
1684 <fo:page-sequence-master master-name="body-draft">
1685 <fo:repeatable-page-master-alternatives>
1686 <fo:conditional-page-master-reference master-reference="blank-draft"
1687 blank-or-not-blank="blank"/>
1688 <fo:conditional-page-master-reference master-reference="body-first-draft"
1689 page-position="first"/>
1690 <fo:conditional-page-master-reference master-reference="body-odd-draft"
1692 <fo:conditional-page-master-reference
1694 <xsl:attribute name="master-reference">
1696 <xsl:when test="$double.sided != 0">body-even-draft</xsl:when>
1697 <xsl:otherwise>body-odd-draft</xsl:otherwise>
1700 </fo:conditional-page-master-reference>
1701 </fo:repeatable-page-master-alternatives>
1702 </fo:page-sequence-master>
1704 <!-- setup draft back matter -->
1705 <fo:page-sequence-master master-name="back-draft">
1706 <fo:repeatable-page-master-alternatives>
1707 <fo:conditional-page-master-reference master-reference="blank-draft"
1708 blank-or-not-blank="blank"/>
1709 <fo:conditional-page-master-reference master-reference="back-first-draft"
1710 page-position="first"/>
1711 <fo:conditional-page-master-reference master-reference="back-odd-draft"
1713 <fo:conditional-page-master-reference
1715 <xsl:attribute name="master-reference">
1717 <xsl:when test="$double.sided != 0">back-even-draft</xsl:when>
1718 <xsl:otherwise>back-odd-draft</xsl:otherwise>
1721 </fo:conditional-page-master-reference>
1722 </fo:repeatable-page-master-alternatives>
1723 </fo:page-sequence-master>
1725 <!-- setup draft index pages -->
1726 <fo:page-sequence-master master-name="index-draft">
1727 <fo:repeatable-page-master-alternatives>
1728 <fo:conditional-page-master-reference master-reference="blank-draft"
1729 blank-or-not-blank="blank"/>
1730 <fo:conditional-page-master-reference master-reference="index-first-draft"
1731 page-position="first"/>
1732 <fo:conditional-page-master-reference master-reference="index-odd-draft"
1734 <fo:conditional-page-master-reference
1736 <xsl:attribute name="master-reference">
1738 <xsl:when test="$double.sided != 0">index-even-draft</xsl:when>
1739 <xsl:otherwise>index-odd-draft</xsl:otherwise>
1742 </fo:conditional-page-master-reference>
1743 </fo:repeatable-page-master-alternatives>
1744 </fo:page-sequence-master>
1747 <xsl:call-template name="user.pagemasters"/>
1749 </fo:layout-master-set>
1752 <!-- ==================================================================== -->
1754 <xsl:template name="user.pagemasters"/> <!-- intentionally empty -->
1756 <!-- ==================================================================== -->
1758 <xsl:template name="select.pagemaster">
1759 <xsl:param name="element" select="local-name(.)"/>
1760 <xsl:param name="pageclass" select="''"/>
1762 <xsl:variable name="pagemaster">
1764 <xsl:when test="$pageclass != ''">
1765 <xsl:value-of select="$pageclass"/>
1767 <xsl:when test="$pageclass = 'lot'">lot</xsl:when>
1768 <xsl:when test="$element = 'dedication'">front</xsl:when>
1769 <xsl:when test="$element = 'acknowledgements'">front</xsl:when>
1770 <xsl:when test="$element = 'preface'">front</xsl:when>
1771 <xsl:when test="$element = 'appendix'">back</xsl:when>
1772 <xsl:when test="$element = 'glossary'">back</xsl:when>
1773 <xsl:when test="$element = 'bibliography'">back</xsl:when>
1774 <xsl:when test="$element = 'index'">index</xsl:when>
1775 <xsl:when test="$element = 'colophon'">back</xsl:when>
1776 <xsl:otherwise>body</xsl:otherwise>
1780 <xsl:when test="$draft.mode = 'yes'">
1781 <xsl:text>-draft</xsl:text>
1783 <xsl:when test="$draft.mode = 'no'">
1786 <xsl:when test="ancestor-or-self::*[@status][1]/@status = 'draft'">
1787 <xsl:text>-draft</xsl:text>
1795 <xsl:call-template name="select.user.pagemaster">
1796 <xsl:with-param name="element" select="$element"/>
1797 <xsl:with-param name="pageclass" select="$pageclass"/>
1798 <xsl:with-param name="default-pagemaster" select="$pagemaster"/>
1799 </xsl:call-template>
1802 <xsl:template name="select.user.pagemaster">
1803 <xsl:param name="element"/>
1804 <xsl:param name="pageclass"/>
1805 <xsl:param name="default-pagemaster"/>
1807 <!-- by default, return the default. But if you've created your own
1808 pagemasters in user.pagemasters, you might want to select one here. -->
1809 <xsl:value-of select="$default-pagemaster"/>
1812 <!-- ==================================================================== -->
1814 <xsl:template name="head.sep.rule">
1815 <xsl:param name="pageclass"/>
1816 <xsl:param name="sequence"/>
1817 <xsl:param name="gentext-key"/>
1819 <xsl:if test="$header.rule != 0">
1820 <xsl:attribute name="border-bottom-width">0.5pt</xsl:attribute>
1821 <xsl:attribute name="border-bottom-style">solid</xsl:attribute>
1822 <xsl:attribute name="border-bottom-color">black</xsl:attribute>
1826 <xsl:template name="foot.sep.rule">
1827 <xsl:param name="pageclass"/>
1828 <xsl:param name="sequence"/>
1829 <xsl:param name="gentext-key"/>
1831 <xsl:if test="$footer.rule != 0">
1832 <xsl:attribute name="border-top-width">0.5pt</xsl:attribute>
1833 <xsl:attribute name="border-top-style">solid</xsl:attribute>
1834 <xsl:attribute name="border-top-color">black</xsl:attribute>
1838 <!-- ==================================================================== -->
1840 <xsl:template match="*" mode="running.head.mode">
1841 <xsl:param name="master-reference" select="'unknown'"/>
1842 <xsl:param name="gentext-key" select="local-name(.)"/>
1844 <!-- remove -draft from reference -->
1845 <xsl:variable name="pageclass">
1847 <xsl:when test="contains($master-reference, '-draft')">
1848 <xsl:value-of select="substring-before($master-reference, '-draft')"/>
1851 <xsl:value-of select="$master-reference"/>
1856 <fo:static-content flow-name="xsl-region-before-first">
1857 <fo:block xsl:use-attribute-sets="header.content.properties">
1858 <xsl:call-template name="header.table">
1859 <xsl:with-param name="pageclass" select="$pageclass"/>
1860 <xsl:with-param name="sequence" select="'first'"/>
1861 <xsl:with-param name="gentext-key" select="$gentext-key"/>
1862 </xsl:call-template>
1864 </fo:static-content>
1866 <fo:static-content flow-name="xsl-region-before-odd">
1867 <fo:block xsl:use-attribute-sets="header.content.properties">
1868 <xsl:call-template name="header.table">
1869 <xsl:with-param name="pageclass" select="$pageclass"/>
1870 <xsl:with-param name="sequence" select="'odd'"/>
1871 <xsl:with-param name="gentext-key" select="$gentext-key"/>
1872 </xsl:call-template>
1874 </fo:static-content>
1876 <fo:static-content flow-name="xsl-region-before-even">
1877 <fo:block xsl:use-attribute-sets="header.content.properties">
1878 <xsl:call-template name="header.table">
1879 <xsl:with-param name="pageclass" select="$pageclass"/>
1880 <xsl:with-param name="sequence" select="'even'"/>
1881 <xsl:with-param name="gentext-key" select="$gentext-key"/>
1882 </xsl:call-template>
1884 </fo:static-content>
1886 <fo:static-content flow-name="xsl-region-before-blank">
1887 <fo:block xsl:use-attribute-sets="header.content.properties">
1888 <xsl:call-template name="header.table">
1889 <xsl:with-param name="pageclass" select="$pageclass"/>
1890 <xsl:with-param name="sequence" select="'blank'"/>
1891 <xsl:with-param name="gentext-key" select="$gentext-key"/>
1892 </xsl:call-template>
1894 </fo:static-content>
1896 <xsl:call-template name="footnote-separator"/>
1898 <xsl:if test="$fop.extensions = 0 and $fop1.extensions = 0">
1899 <xsl:call-template name="blank.page.content"/>
1903 <xsl:template name="footnote-separator">
1904 <fo:static-content flow-name="xsl-footnote-separator">
1906 <fo:leader xsl:use-attribute-sets="footnote.sep.leader.properties"/>
1908 </fo:static-content>
1911 <xsl:template name="blank.page.content">
1912 <fo:static-content flow-name="blank-body">
1913 <fo:block text-align="center"/>
1914 </fo:static-content>
1917 <xsl:template name="header.table">
1918 <xsl:param name="pageclass" select="''"/>
1919 <xsl:param name="sequence" select="''"/>
1920 <xsl:param name="gentext-key" select="''"/>
1922 <!-- default is a single table style for all headers -->
1923 <!-- Customize it for different page classes or sequence location -->
1926 <xsl:when test="$pageclass = 'index'">
1927 <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
1931 <xsl:variable name="column1">
1933 <xsl:when test="$double.sided = 0">1</xsl:when>
1934 <xsl:when test="$sequence = 'first' or $sequence = 'odd'">1</xsl:when>
1935 <xsl:otherwise>3</xsl:otherwise>
1939 <xsl:variable name="column3">
1941 <xsl:when test="$double.sided = 0">3</xsl:when>
1942 <xsl:when test="$sequence = 'first' or $sequence = 'odd'">3</xsl:when>
1943 <xsl:otherwise>1</xsl:otherwise>
1947 <xsl:variable name="candidate">
1948 <fo:table xsl:use-attribute-sets="header.table.properties">
1949 <xsl:call-template name="head.sep.rule">
1950 <xsl:with-param name="pageclass" select="$pageclass"/>
1951 <xsl:with-param name="sequence" select="$sequence"/>
1952 <xsl:with-param name="gentext-key" select="$gentext-key"/>
1953 </xsl:call-template>
1955 <fo:table-column column-number="1">
1956 <xsl:attribute name="column-width">
1957 <xsl:text>proportional-column-width(</xsl:text>
1958 <xsl:call-template name="header.footer.width">
1959 <xsl:with-param name="location">header</xsl:with-param>
1960 <xsl:with-param name="position" select="$column1"/>
1961 </xsl:call-template>
1962 <xsl:text>)</xsl:text>
1965 <fo:table-column column-number="2">
1966 <xsl:attribute name="column-width">
1967 <xsl:text>proportional-column-width(</xsl:text>
1968 <xsl:call-template name="header.footer.width">
1969 <xsl:with-param name="location">header</xsl:with-param>
1970 <xsl:with-param name="position" select="2"/>
1971 </xsl:call-template>
1972 <xsl:text>)</xsl:text>
1975 <fo:table-column column-number="3">
1976 <xsl:attribute name="column-width">
1977 <xsl:text>proportional-column-width(</xsl:text>
1978 <xsl:call-template name="header.footer.width">
1979 <xsl:with-param name="location">header</xsl:with-param>
1980 <xsl:with-param name="position" select="$column3"/>
1981 </xsl:call-template>
1982 <xsl:text>)</xsl:text>
1988 <xsl:attribute name="block-progression-dimension.minimum">
1989 <xsl:value-of select="$header.table.height"/>
1991 <fo:table-cell text-align="start"
1992 display-align="before">
1993 <xsl:if test="$fop.extensions = 0">
1994 <xsl:attribute name="relative-align">baseline</xsl:attribute>
1997 <xsl:call-template name="header.content">
1998 <xsl:with-param name="pageclass" select="$pageclass"/>
1999 <xsl:with-param name="sequence" select="$sequence"/>
2000 <xsl:with-param name="position" select="$direction.align.start"/>
2001 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2002 </xsl:call-template>
2005 <fo:table-cell text-align="center"
2006 display-align="before">
2007 <xsl:if test="$fop.extensions = 0">
2008 <xsl:attribute name="relative-align">baseline</xsl:attribute>
2011 <xsl:call-template name="header.content">
2012 <xsl:with-param name="pageclass" select="$pageclass"/>
2013 <xsl:with-param name="sequence" select="$sequence"/>
2014 <xsl:with-param name="position" select="'center'"/>
2015 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2016 </xsl:call-template>
2019 <fo:table-cell text-align="right"
2020 display-align="before">
2021 <xsl:if test="$fop.extensions = 0">
2022 <xsl:attribute name="relative-align">baseline</xsl:attribute>
2025 <xsl:call-template name="header.content">
2026 <xsl:with-param name="pageclass" select="$pageclass"/>
2027 <xsl:with-param name="sequence" select="$sequence"/>
2028 <xsl:with-param name="position" select="$direction.align.end"/>
2029 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2030 </xsl:call-template>
2038 <!-- Really output a header? -->
2040 <xsl:when test="$pageclass = 'titlepage' and $gentext-key = 'book'
2041 and $sequence='first'">
2042 <!-- no, book titlepages have no headers at all -->
2044 <xsl:when test="$sequence = 'blank' and $headers.on.blank.pages = 0">
2048 <xsl:copy-of select="$candidate"/>
2053 <xsl:template name="header.content">
2054 <xsl:param name="pageclass" select="''"/>
2055 <xsl:param name="sequence" select="''"/>
2056 <xsl:param name="position" select="''"/>
2057 <xsl:param name="gentext-key" select="''"/>
2061 <xsl:value-of select="$pageclass"/>
2062 <xsl:text>, </xsl:text>
2063 <xsl:value-of select="$sequence"/>
2064 <xsl:text>, </xsl:text>
2065 <xsl:value-of select="$position"/>
2066 <xsl:text>, </xsl:text>
2067 <xsl:value-of select="$gentext-key"/>
2073 <!-- sequence can be odd, even, first, blank -->
2074 <!-- position can be left, center, right -->
2076 <xsl:when test="$sequence = 'blank'">
2080 <xsl:when test="$position='left'">
2081 <!-- Same for odd, even, empty, and blank sequences -->
2082 <xsl:call-template name="draft.text"/>
2085 <xsl:when test="($sequence='odd' or $sequence='even') and $position='center'">
2086 <xsl:if test="$pageclass != 'titlepage'">
2088 <xsl:when test="ancestor::d:book and ($double.sided != 0)">
2089 <fo:retrieve-marker retrieve-class-name="section.head.marker"
2090 retrieve-position="first-including-carryover"
2091 retrieve-boundary="page-sequence"/>
2094 <xsl:apply-templates select="." mode="titleabbrev.markup"/>
2100 <xsl:when test="$position='center'">
2101 <!-- nothing for empty and blank sequences -->
2104 <xsl:when test="$position='right'">
2105 <!-- Same for odd, even, empty, and blank sequences -->
2106 <xsl:call-template name="draft.text"/>
2109 <xsl:when test="$sequence = 'first'">
2110 <!-- nothing for first pages -->
2113 <xsl:when test="$sequence = 'blank'">
2114 <!-- nothing for blank pages -->
2120 <xsl:template name="header.footer.width">
2121 <xsl:param name="location" select="'header'"/>
2122 <xsl:param name="position" select="1"/>
2124 <xsl:variable name="width.set">
2126 <xsl:when test="$location = 'header'">
2127 <xsl:value-of select="normalize-space($header.column.widths)"/>
2130 <xsl:value-of select="normalize-space($footer.column.widths)"/>
2136 <xsl:variable name="width">
2138 <xsl:when test="$position = 1">
2139 <xsl:value-of select="substring-before($width.set, ' ')"/>
2141 <xsl:when test="$position = 2">
2142 <xsl:value-of select="substring-before(substring-after($width.set, ' '), ' ')"/>
2145 <xsl:value-of select="substring-after(substring-after($width.set, ' '), ' ')"/>
2150 <!-- Make sure it is a number -->
2152 <xsl:when test = "$width = number($width)">
2153 <xsl:value-of select="$width"/>
2156 <xsl:message>Error: value in <xsl:value-of select="$location"/>.column.widths at position <xsl:value-of select="$position"/> is not a number.</xsl:message>
2157 <xsl:text>1</xsl:text>
2162 <xsl:template name="draft.text">
2164 <xsl:when test="$draft.mode = 'yes'">
2165 <xsl:call-template name="gentext">
2166 <xsl:with-param name="key" select="'Draft'"/>
2167 </xsl:call-template>
2169 <xsl:when test="$draft.mode = 'no'">
2172 <xsl:when test="ancestor-or-self::*[@status][1]/@status = 'draft'">
2173 <xsl:call-template name="gentext">
2174 <xsl:with-param name="key" select="'Draft'"/>
2175 </xsl:call-template>
2183 <!-- ==================================================================== -->
2185 <xsl:template match="*" mode="running.foot.mode">
2186 <xsl:param name="master-reference" select="'unknown'"/>
2187 <xsl:param name="gentext-key" select="local-name(.)"/>
2189 <!-- remove -draft from reference -->
2190 <xsl:variable name="pageclass">
2192 <xsl:when test="contains($master-reference, '-draft')">
2193 <xsl:value-of select="substring-before($master-reference, '-draft')"/>
2196 <xsl:value-of select="$master-reference"/>
2201 <fo:static-content flow-name="xsl-region-after-first">
2202 <fo:block xsl:use-attribute-sets="footer.content.properties">
2203 <xsl:call-template name="footer.table">
2204 <xsl:with-param name="pageclass" select="$pageclass"/>
2205 <xsl:with-param name="sequence" select="'first'"/>
2206 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2207 </xsl:call-template>
2209 </fo:static-content>
2211 <fo:static-content flow-name="xsl-region-after-odd">
2212 <fo:block xsl:use-attribute-sets="footer.content.properties">
2213 <xsl:call-template name="footer.table">
2214 <xsl:with-param name="pageclass" select="$pageclass"/>
2215 <xsl:with-param name="sequence" select="'odd'"/>
2216 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2217 </xsl:call-template>
2219 <fo:block font-size="8pt"
2220 font-family="sans-serif"
2221 border-after-color="black"
2222 border-after-style="solid"
2223 border-after-width="0.1pt">
2224 Report errors in this documentation using <fo:basic-link color="green" text-decoration="underline" external-destination="https://bugs.launchpad.net/evergreen/+filebug">Launchpad</fo:basic-link>.
2226 </fo:static-content>
2228 <fo:static-content flow-name="xsl-region-after-even">
2229 <fo:block xsl:use-attribute-sets="footer.content.properties">
2230 <xsl:call-template name="footer.table">
2231 <xsl:with-param name="pageclass" select="$pageclass"/>
2232 <xsl:with-param name="sequence" select="'even'"/>
2233 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2234 </xsl:call-template>
2236 <fo:block font-size="8pt"
2237 font-family="sans-serif"
2238 border-after-color="black"
2239 border-after-style="solid"
2240 border-after-width="0.1pt">
2241 Report any errors in this documentation using <fo:basic-link color="green" text-decoration="underline" external-destination="https://bugs.launchpad.net/evergreen/+filebug">Launchpad</fo:basic-link>.
2243 </fo:static-content>
2245 <fo:static-content flow-name="xsl-region-after-blank">
2246 <fo:block xsl:use-attribute-sets="footer.content.properties">
2247 <xsl:call-template name="footer.table">
2248 <xsl:with-param name="pageclass" select="$pageclass"/>
2249 <xsl:with-param name="sequence" select="'blank'"/>
2250 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2251 </xsl:call-template>
2253 </fo:static-content>
2256 <xsl:template name="footer.table">
2257 <xsl:param name="pageclass" select="''"/>
2258 <xsl:param name="sequence" select="''"/>
2259 <xsl:param name="gentext-key" select="''"/>
2261 <!-- default is a single table style for all footers -->
2262 <!-- Customize it for different page classes or sequence location -->
2265 <xsl:when test="$pageclass = 'index'">
2266 <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
2270 <xsl:variable name="column1">
2272 <xsl:when test="$double.sided = 0">1</xsl:when>
2273 <xsl:when test="$sequence = 'first' or $sequence = 'odd'">1</xsl:when>
2274 <xsl:otherwise>3</xsl:otherwise>
2278 <xsl:variable name="column3">
2280 <xsl:when test="$double.sided = 0">3</xsl:when>
2281 <xsl:when test="$sequence = 'first' or $sequence = 'odd'">3</xsl:when>
2282 <xsl:otherwise>1</xsl:otherwise>
2286 <xsl:variable name="candidate">
2287 <fo:table xsl:use-attribute-sets="footer.table.properties">
2288 <xsl:call-template name="foot.sep.rule">
2289 <xsl:with-param name="pageclass" select="$pageclass"/>
2290 <xsl:with-param name="sequence" select="$sequence"/>
2291 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2292 </xsl:call-template>
2293 <fo:table-column column-number="1">
2294 <xsl:attribute name="column-width">
2295 <xsl:text>proportional-column-width(</xsl:text>
2296 <xsl:call-template name="header.footer.width">
2297 <xsl:with-param name="location">footer</xsl:with-param>
2298 <xsl:with-param name="position" select="$column1"/>
2299 </xsl:call-template>
2300 <xsl:text>)</xsl:text>
2303 <fo:table-column column-number="2">
2304 <xsl:attribute name="column-width">
2305 <xsl:text>proportional-column-width(</xsl:text>
2306 <xsl:call-template name="header.footer.width">
2307 <xsl:with-param name="location">footer</xsl:with-param>
2308 <xsl:with-param name="position" select="2"/>
2309 </xsl:call-template>
2310 <xsl:text>)</xsl:text>
2313 <fo:table-column column-number="3">
2314 <xsl:attribute name="column-width">
2315 <xsl:text>proportional-column-width(</xsl:text>
2316 <xsl:call-template name="header.footer.width">
2317 <xsl:with-param name="location">footer</xsl:with-param>
2318 <xsl:with-param name="position" select="$column3"/>
2319 </xsl:call-template>
2320 <xsl:text>)</xsl:text>
2326 <xsl:attribute name="block-progression-dimension.minimum">
2327 <xsl:value-of select="$footer.table.height"/>
2329 <fo:table-cell text-align="start"
2330 display-align="after">
2331 <xsl:if test="$fop.extensions = 0">
2332 <xsl:attribute name="relative-align">baseline</xsl:attribute>
2335 <xsl:call-template name="footer.content">
2336 <xsl:with-param name="pageclass" select="$pageclass"/>
2337 <xsl:with-param name="sequence" select="$sequence"/>
2338 <xsl:with-param name="position" select="$direction.align.start"/>
2339 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2340 </xsl:call-template>
2343 <fo:table-cell text-align="center"
2344 display-align="after">
2345 <xsl:if test="$fop.extensions = 0">
2346 <xsl:attribute name="relative-align">baseline</xsl:attribute>
2349 <xsl:call-template name="footer.content">
2350 <xsl:with-param name="pageclass" select="$pageclass"/>
2351 <xsl:with-param name="sequence" select="$sequence"/>
2352 <xsl:with-param name="position" select="'center'"/>
2353 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2354 </xsl:call-template>
2357 <fo:table-cell text-align="end"
2358 display-align="after">
2359 <xsl:if test="$fop.extensions = 0">
2360 <xsl:attribute name="relative-align">baseline</xsl:attribute>
2363 <xsl:call-template name="footer.content">
2364 <xsl:with-param name="pageclass" select="$pageclass"/>
2365 <xsl:with-param name="sequence" select="$sequence"/>
2366 <xsl:with-param name="position" select="$direction.align.end"/>
2367 <xsl:with-param name="gentext-key" select="$gentext-key"/>
2368 </xsl:call-template>
2376 <!-- Really output a footer? -->
2378 <xsl:when test="$pageclass='titlepage' and $gentext-key='book'
2379 and $sequence='first'">
2380 <!-- no, book titlepages have no footers at all -->
2382 <xsl:when test="$sequence = 'blank' and $footers.on.blank.pages = 0">
2386 <xsl:copy-of select="$candidate"/>
2391 <xsl:template name="footer.content">
2392 <xsl:param name="pageclass" select="''"/>
2393 <xsl:param name="sequence" select="''"/>
2394 <xsl:param name="position" select="''"/>
2395 <xsl:param name="gentext-key" select="''"/>
2399 <xsl:value-of select="$pageclass"/>
2400 <xsl:text>, </xsl:text>
2401 <xsl:value-of select="$sequence"/>
2402 <xsl:text>, </xsl:text>
2403 <xsl:value-of select="$position"/>
2404 <xsl:text>, </xsl:text>
2405 <xsl:value-of select="$gentext-key"/>
2410 <!-- pageclass can be front, body, back -->
2411 <!-- sequence can be odd, even, first, blank -->
2412 <!-- position can be left, center, right -->
2414 <xsl:when test="$pageclass = 'titlepage'">
2415 <!-- nop; no footer on title pages -->
2418 <xsl:when test="$double.sided != 0 and $sequence = 'even'
2419 and $position='left'">
2423 <xsl:when test="$double.sided != 0 and ($sequence = 'odd' or $sequence = 'first')
2424 and $position='right'">
2430 <xsl:when test="$double.sided = 0 and $position='right'">
2434 <xsl:when test="$double.sided = 0 and $position='left'">
2436 <xsl:when test="ancestor::d:book and ($double.sided != 0)">
2437 <fo:retrieve-marker retrieve-class-name="section.head.marker"
2438 retrieve-position="first-including-carryover"
2439 retrieve-boundary="page-sequence"/>
2442 <xsl:apply-templates select="." mode="object.title.markup"/>
2450 <xsl:when test="$sequence='blank'">
2452 <xsl:when test="$double.sided != 0 and $position = 'left'">
2455 <xsl:when test="$double.sided = 0 and $position = 'right'">
2472 <!-- ==================================================================== -->
2474 <xsl:template name="page.number.format">
2475 <xsl:param name="element" select="local-name(.)"/>
2476 <xsl:param name="master-reference" select="''"/>
2479 <xsl:when test="$element = 'toc' and self::d:book">i</xsl:when>
2480 <xsl:when test="$element = 'preface'">i</xsl:when>
2481 <xsl:when test="$element = 'dedication'">i</xsl:when>
2482 <xsl:otherwise>1</xsl:otherwise>
2486 <xsl:template name="initial.page.number">
2487 <xsl:param name="element" select="local-name(.)"/>
2488 <xsl:param name="master-reference" select="''"/>
2490 <!-- Select the first content that the stylesheet places
2492 <xsl:variable name="first.book.content"
2493 select="ancestor::d:book/*[
2494 not(self::d:title or
2496 self::d:titleabbrev or
2499 self::d:dedication or
2504 <!-- double-sided output -->
2505 <xsl:when test="$double.sided != 0">
2507 <xsl:when test="$element = 'toc'">auto-odd</xsl:when>
2508 <xsl:when test="$element = 'book'">1</xsl:when>
2509 <!-- preface typically continues TOC roman numerals -->
2510 <!-- Change page.number.format if not -->
2511 <xsl:when test="$element = 'preface'">auto-odd</xsl:when>
2512 <xsl:when test="($element = 'dedication' or $element = 'article')
2513 and not(preceding::d:chapter
2514 or preceding::d:preface
2515 or preceding::d:appendix
2516 or preceding::d:article
2517 or preceding::d:dedication
2519 or parent::d:reference)">1</xsl:when>
2520 <xsl:when test="generate-id($first.book.content) =
2521 generate-id(.)">1</xsl:when>
2522 <xsl:otherwise>auto-odd</xsl:otherwise>
2526 <!-- single-sided output -->
2529 <xsl:when test="$element = 'toc'">auto</xsl:when>
2530 <xsl:when test="$element = 'book'">1</xsl:when>
2531 <xsl:when test="$element = 'preface'">auto</xsl:when>
2532 <xsl:when test="($element = 'dedication' or $element = 'article') and
2533 not(preceding::d:chapter
2534 or preceding::d:preface
2535 or preceding::d:appendix
2536 or preceding::d:article
2537 or preceding::d:dedication
2539 or parent::d:reference)">1</xsl:when>
2540 <xsl:when test="generate-id($first.book.content) =
2541 generate-id(.)">1</xsl:when>
2542 <xsl:otherwise>auto</xsl:otherwise>
2548 <xsl:template name="force.page.count">
2549 <xsl:param name="element" select="local-name(.)"/>
2550 <xsl:param name="master-reference" select="''"/>
2553 <!-- double-sided output -->
2554 <xsl:when test="$double.sided != 0">end-on-even</xsl:when>
2555 <!-- single-sided output -->
2556 <xsl:otherwise>no-force</xsl:otherwise>
2560 <xsl:template name="set.flow.properties">
2561 <xsl:param name="element" select="local-name(.)"/>
2562 <xsl:param name="master-reference" select="''"/>
2564 <!-- This template is called after each <fo:flow> starts. -->
2565 <!-- Customize this template to set attributes on fo:flow -->
2567 <!-- remove -draft from reference -->
2568 <xsl:variable name="pageclass">
2570 <xsl:when test="contains($master-reference, '-draft')">
2571 <xsl:value-of select="substring-before($master-reference, '-draft')"/>
2574 <xsl:value-of select="$master-reference"/>
2580 <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
2581 <!-- body.start.indent does not work well with these processors -->
2583 <xsl:when test="starts-with($pageclass, 'body') or
2584 starts-with($pageclass, 'lot') or
2585 starts-with($pageclass, 'front') or
2586 $element = 'preface' or
2587 (starts-with($pageclass, 'back') and
2588 $element = 'appendix')">
2589 <xsl:attribute name="start-indent">
2590 <xsl:value-of select="$body.start.indent"/>
2592 <xsl:attribute name="end-indent">
2593 <xsl:value-of select="$body.end.indent"/>
2599 <!-- ==================================================================== -->