- Timestamp:
- 12/10/2013 11:37:38 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 112db9d
- Parents:
- f2a5108
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/pagesetup.xsl
rf2a5108 rb1a51ac1 5 5 6 6 <!-- ******************************************************************** 7 $Id $7 $Id: pagesetup.xsl 9720 2013-01-31 18:24:47Z bobstayton $ 8 8 ******************************************************************** 9 9 … … 20 20 <xsl:if test="$body.font.family != '' 21 21 and $symbol.font.family != ''">,</xsl:if> 22 22 <xsl:value-of select="$symbol.font.family"/> 23 23 </xsl:param> 24 24 … … 27 27 <xsl:if test="$title.font.family != '' 28 28 and $symbol.font.family != ''">,</xsl:if> 29 29 <xsl:value-of select="$symbol.font.family"/> 30 30 </xsl:param> 31 31 32 <!-- PassiveTeX can't handle the math expression for 33 title.margin.left being negative, so ignore it. 34 margin-left="{$page.margin.outer} - {$title.margin.left}" 35 --> 36 <xsl:param name="margin.left.outer"> 32 <xsl:param name="dingbat.fontset"> 33 <xsl:value-of select="$dingbat.font.family"/> 34 <xsl:if test="$dingbat.font.family != '' 35 and $symbol.font.family != ''">,</xsl:if> 36 <xsl:value-of select="$symbol.font.family"/> 37 </xsl:param> 38 39 <!-- These are internal parameters are for the individual precedence attributes --> 40 <xsl:param name="region.start.precedence"> 37 41 <xsl:choose> 38 <xsl:when test="$passivetex.extensions != 0"> 39 <xsl:value-of select="$page.margin.outer"/> 40 </xsl:when> 41 <xsl:otherwise> 42 <xsl:value-of select="$page.margin.outer"/> 43 <xsl:text> - </xsl:text> 44 <xsl:value-of select="$title.margin.left"/> 45 </xsl:otherwise> 42 <xsl:when test="$side.region.precedence = 'true'">true</xsl:when> 43 <xsl:otherwise>false</xsl:otherwise> 46 44 </xsl:choose> 47 45 </xsl:param> 48 46 49 <xsl:param name=" margin.left.inner">47 <xsl:param name="region.end.precedence"> 50 48 <xsl:choose> 51 <xsl:when test="$passivetex.extensions != 0"> 52 <xsl:value-of select="$page.margin.inner"/> 53 </xsl:when> 54 <xsl:otherwise> 55 <xsl:value-of select="$page.margin.inner"/> 56 <xsl:text> - </xsl:text> 57 <xsl:value-of select="$title.margin.left"/> 58 </xsl:otherwise> 49 <xsl:when test="$side.region.precedence = 'true'">true</xsl:when> 50 <xsl:otherwise>false</xsl:otherwise> 51 </xsl:choose> 52 </xsl:param> 53 54 <xsl:param name="region.before.precedence"> 55 <xsl:choose> 56 <xsl:when test="$side.region.precedence = 'true'">false</xsl:when> 57 <xsl:otherwise>true</xsl:otherwise> 58 </xsl:choose> 59 </xsl:param> 60 61 <xsl:param name="region.after.precedence"> 62 <xsl:choose> 63 <xsl:when test="$side.region.precedence = 'true'">false</xsl:when> 64 <xsl:otherwise>true</xsl:otherwise> 59 65 </xsl:choose> 60 66 </xsl:param> … … 67 73 page-height="{$page.height}" 68 74 margin-top="{$page.margin.top}" 69 margin-bottom="{$page.margin.bottom}" 70 margin-left="{$margin.left.outer}" 71 margin-right="{$page.margin.inner}"> 75 margin-bottom="{$page.margin.bottom}"> 76 <xsl:attribute name="margin-{$direction.align.start}"> 77 <xsl:value-of select="$page.margin.outer"/> 78 <xsl:if test="$fop.extensions != 0"> 79 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 80 </xsl:if> 81 </xsl:attribute> 82 <xsl:attribute name="margin-{$direction.align.end}"> 83 <xsl:value-of select="$page.margin.inner"/> 84 </xsl:attribute> 72 85 <xsl:if test="$axf.extensions != 0"> 73 86 <xsl:call-template name="axf-page-master-properties"> … … 78 91 margin-bottom="{$body.margin.bottom}" 79 92 margin-top="{$body.margin.top}"> 93 <xsl:attribute name="margin-{$direction.align.start}"> 94 <xsl:value-of select="$body.margin.outer"/> 95 </xsl:attribute> 96 <xsl:attribute name="margin-{$direction.align.end}"> 97 <xsl:value-of select="$body.margin.inner"/> 98 </xsl:attribute> 80 99 <xsl:if test="$fop.extensions = 0 and $fop1.extensions = 0"> 81 100 <xsl:attribute name="region-name">blank-body</xsl:attribute> … … 84 103 <fo:region-before region-name="xsl-region-before-blank" 85 104 extent="{$region.before.extent}" 105 precedence="{$region.before.precedence}" 86 106 display-align="before"/> 87 107 <fo:region-after region-name="xsl-region-after-blank" 88 108 extent="{$region.after.extent}" 89 display-align="after"/> 109 precedence="{$region.after.precedence}" 110 display-align="after"/> 111 <xsl:call-template name="region.outer"> 112 <xsl:with-param name="sequence">blank</xsl:with-param> 113 <xsl:with-param name="pageclass">blank</xsl:with-param> 114 </xsl:call-template> 115 <xsl:call-template name="region.inner"> 116 <xsl:with-param name="sequence">blank</xsl:with-param> 117 <xsl:with-param name="pageclass">blank</xsl:with-param> 118 </xsl:call-template> 90 119 </fo:simple-page-master> 91 120 … … 95 124 page-height="{$page.height}" 96 125 margin-top="{$page.margin.top}" 97 margin-bottom="{$page.margin.bottom}" 98 margin-left="{$margin.left.inner}" 99 margin-right="{$page.margin.outer}"> 126 margin-bottom="{$page.margin.bottom}"> 127 <xsl:attribute name="margin-{$direction.align.start}"> 128 <xsl:value-of select="$page.margin.inner"/> 129 <xsl:if test="$fop.extensions != 0"> 130 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 131 </xsl:if> 132 </xsl:attribute> 133 <xsl:attribute name="margin-{$direction.align.end}"> 134 <xsl:value-of select="$page.margin.outer"/> 135 </xsl:attribute> 100 136 <xsl:if test="$axf.extensions != 0"> 101 137 <xsl:call-template name="axf-page-master-properties"> … … 107 143 column-gap="{$column.gap.titlepage}" 108 144 column-count="{$column.count.titlepage}"> 145 <xsl:attribute name="margin-{$direction.align.start}"> 146 <xsl:value-of select="$body.margin.inner"/> 147 </xsl:attribute> 148 <xsl:attribute name="margin-{$direction.align.end}"> 149 <xsl:value-of select="$body.margin.outer"/> 150 </xsl:attribute> 109 151 </fo:region-body> 110 152 <fo:region-before region-name="xsl-region-before-first" 111 153 extent="{$region.before.extent}" 154 precedence="{$region.before.precedence}" 112 155 display-align="before"/> 113 156 <fo:region-after region-name="xsl-region-after-first" 114 157 extent="{$region.after.extent}" 158 precedence="{$region.after.precedence}" 115 159 display-align="after"/> 160 <xsl:call-template name="region.inner"> 161 <xsl:with-param name="sequence">first</xsl:with-param> 162 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 163 </xsl:call-template> 164 <xsl:call-template name="region.outer"> 165 <xsl:with-param name="sequence">first</xsl:with-param> 166 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 167 </xsl:call-template> 116 168 </fo:simple-page-master> 117 169 … … 120 172 page-height="{$page.height}" 121 173 margin-top="{$page.margin.top}" 122 margin-bottom="{$page.margin.bottom}" 123 margin-left="{$margin.left.inner}" 124 margin-right="{$page.margin.outer}"> 174 margin-bottom="{$page.margin.bottom}"> 175 <xsl:attribute name="margin-{$direction.align.start}"> 176 <xsl:value-of select="$page.margin.inner"/> 177 <xsl:if test="$fop.extensions != 0"> 178 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 179 </xsl:if> 180 </xsl:attribute> 181 <xsl:attribute name="margin-{$direction.align.end}"> 182 <xsl:value-of select="$page.margin.outer"/> 183 </xsl:attribute> 125 184 <xsl:if test="$axf.extensions != 0"> 126 185 <xsl:call-template name="axf-page-master-properties"> … … 132 191 column-gap="{$column.gap.titlepage}" 133 192 column-count="{$column.count.titlepage}"> 193 <xsl:attribute name="margin-{$direction.align.start}"> 194 <xsl:value-of select="$body.margin.inner"/> 195 </xsl:attribute> 196 <xsl:attribute name="margin-{$direction.align.end}"> 197 <xsl:value-of select="$body.margin.outer"/> 198 </xsl:attribute> 134 199 </fo:region-body> 135 200 <fo:region-before region-name="xsl-region-before-odd" 136 201 extent="{$region.before.extent}" 202 precedence="{$region.before.precedence}" 137 203 display-align="before"/> 138 204 <fo:region-after region-name="xsl-region-after-odd" 139 205 extent="{$region.after.extent}" 206 precedence="{$region.after.precedence}" 140 207 display-align="after"/> 208 <xsl:call-template name="region.inner"> 209 <xsl:with-param name="sequence">odd</xsl:with-param> 210 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 211 </xsl:call-template> 212 <xsl:call-template name="region.outer"> 213 <xsl:with-param name="sequence">odd</xsl:with-param> 214 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 215 </xsl:call-template> 141 216 </fo:simple-page-master> 142 217 … … 145 220 page-height="{$page.height}" 146 221 margin-top="{$page.margin.top}" 147 margin-bottom="{$page.margin.bottom}" 148 margin-left="{$margin.left.outer}" 149 margin-right="{$page.margin.inner}"> 222 margin-bottom="{$page.margin.bottom}"> 223 <xsl:attribute name="margin-{$direction.align.start}"> 224 <xsl:value-of select="$page.margin.outer"/> 225 <xsl:if test="$fop.extensions != 0"> 226 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 227 </xsl:if> 228 </xsl:attribute> 229 <xsl:attribute name="margin-{$direction.align.end}"> 230 <xsl:value-of select="$page.margin.inner"/> 231 </xsl:attribute> 150 232 <xsl:if test="$axf.extensions != 0"> 151 233 <xsl:call-template name="axf-page-master-properties"> … … 157 239 column-gap="{$column.gap.titlepage}" 158 240 column-count="{$column.count.titlepage}"> 241 <xsl:attribute name="margin-{$direction.align.start}"> 242 <xsl:value-of select="$body.margin.outer"/> 243 </xsl:attribute> 244 <xsl:attribute name="margin-{$direction.align.end}"> 245 <xsl:value-of select="$body.margin.inner"/> 246 </xsl:attribute> 159 247 </fo:region-body> 160 248 <fo:region-before region-name="xsl-region-before-even" 161 249 extent="{$region.before.extent}" 250 precedence="{$region.before.precedence}" 162 251 display-align="before"/> 163 252 <fo:region-after region-name="xsl-region-after-even" 164 253 extent="{$region.after.extent}" 254 precedence="{$region.after.precedence}" 165 255 display-align="after"/> 256 <xsl:call-template name="region.outer"> 257 <xsl:with-param name="sequence">even</xsl:with-param> 258 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 259 </xsl:call-template> 260 <xsl:call-template name="region.inner"> 261 <xsl:with-param name="sequence">even</xsl:with-param> 262 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 263 </xsl:call-template> 166 264 </fo:simple-page-master> 167 265 … … 171 269 page-height="{$page.height}" 172 270 margin-top="{$page.margin.top}" 173 margin-bottom="{$page.margin.bottom}" 174 margin-left="{$margin.left.inner}" 175 margin-right="{$page.margin.outer}"> 271 margin-bottom="{$page.margin.bottom}"> 272 <xsl:attribute name="margin-{$direction.align.start}"> 273 <xsl:value-of select="$page.margin.inner"/> 274 <xsl:if test="$fop.extensions != 0"> 275 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 276 </xsl:if> 277 </xsl:attribute> 278 <xsl:attribute name="margin-{$direction.align.end}"> 279 <xsl:value-of select="$page.margin.outer"/> 280 </xsl:attribute> 176 281 <xsl:if test="$axf.extensions != 0"> 177 282 <xsl:call-template name="axf-page-master-properties"> … … 183 288 column-gap="{$column.gap.lot}" 184 289 column-count="{$column.count.lot}"> 290 <xsl:attribute name="margin-{$direction.align.start}"> 291 <xsl:value-of select="$body.margin.inner"/> 292 </xsl:attribute> 293 <xsl:attribute name="margin-{$direction.align.end}"> 294 <xsl:value-of select="$body.margin.outer"/> 295 </xsl:attribute> 185 296 </fo:region-body> 186 297 <fo:region-before region-name="xsl-region-before-first" 187 298 extent="{$region.before.extent}" 299 precedence="{$region.before.precedence}" 188 300 display-align="before"/> 189 301 <fo:region-after region-name="xsl-region-after-first" 190 302 extent="{$region.after.extent}" 303 precedence="{$region.after.precedence}" 191 304 display-align="after"/> 305 <xsl:call-template name="region.inner"> 306 <xsl:with-param name="sequence">first</xsl:with-param> 307 <xsl:with-param name="pageclass">lot</xsl:with-param> 308 </xsl:call-template> 309 <xsl:call-template name="region.outer"> 310 <xsl:with-param name="sequence">first</xsl:with-param> 311 <xsl:with-param name="pageclass">lot</xsl:with-param> 312 </xsl:call-template> 192 313 </fo:simple-page-master> 193 314 … … 196 317 page-height="{$page.height}" 197 318 margin-top="{$page.margin.top}" 198 margin-bottom="{$page.margin.bottom}" 199 margin-left="{$margin.left.inner}" 200 margin-right="{$page.margin.outer}"> 319 margin-bottom="{$page.margin.bottom}"> 320 <xsl:attribute name="margin-{$direction.align.start}"> 321 <xsl:value-of select="$page.margin.inner"/> 322 <xsl:if test="$fop.extensions != 0"> 323 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 324 </xsl:if> 325 </xsl:attribute> 326 <xsl:attribute name="margin-{$direction.align.end}"> 327 <xsl:value-of select="$page.margin.outer"/> 328 </xsl:attribute> 201 329 <xsl:if test="$axf.extensions != 0"> 202 330 <xsl:call-template name="axf-page-master-properties"> … … 208 336 column-gap="{$column.gap.lot}" 209 337 column-count="{$column.count.lot}"> 338 <xsl:attribute name="margin-{$direction.align.start}"> 339 <xsl:value-of select="$body.margin.inner"/> 340 </xsl:attribute> 341 <xsl:attribute name="margin-{$direction.align.end}"> 342 <xsl:value-of select="$body.margin.outer"/> 343 </xsl:attribute> 210 344 </fo:region-body> 211 345 <fo:region-before region-name="xsl-region-before-odd" 212 346 extent="{$region.before.extent}" 347 precedence="{$region.before.precedence}" 213 348 display-align="before"/> 214 349 <fo:region-after region-name="xsl-region-after-odd" 215 350 extent="{$region.after.extent}" 351 precedence="{$region.after.precedence}" 216 352 display-align="after"/> 353 <xsl:call-template name="region.inner"> 354 <xsl:with-param name="sequence">odd</xsl:with-param> 355 <xsl:with-param name="pageclass">lot</xsl:with-param> 356 </xsl:call-template> 357 <xsl:call-template name="region.outer"> 358 <xsl:with-param name="sequence">odd</xsl:with-param> 359 <xsl:with-param name="pageclass">lot</xsl:with-param> 360 </xsl:call-template> 217 361 </fo:simple-page-master> 218 362 … … 221 365 page-height="{$page.height}" 222 366 margin-top="{$page.margin.top}" 223 margin-bottom="{$page.margin.bottom}" 224 margin-left="{$margin.left.outer}" 225 margin-right="{$page.margin.inner}"> 367 margin-bottom="{$page.margin.bottom}"> 368 <xsl:attribute name="margin-{$direction.align.start}"> 369 <xsl:value-of select="$page.margin.outer"/> 370 <xsl:if test="$fop.extensions != 0"> 371 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 372 </xsl:if> 373 </xsl:attribute> 374 <xsl:attribute name="margin-{$direction.align.end}"> 375 <xsl:value-of select="$page.margin.inner"/> 376 </xsl:attribute> 226 377 <xsl:if test="$axf.extensions != 0"> 227 378 <xsl:call-template name="axf-page-master-properties"> … … 233 384 column-gap="{$column.gap.lot}" 234 385 column-count="{$column.count.lot}"> 386 <xsl:attribute name="margin-{$direction.align.start}"> 387 <xsl:value-of select="$body.margin.outer"/> 388 </xsl:attribute> 389 <xsl:attribute name="margin-{$direction.align.end}"> 390 <xsl:value-of select="$body.margin.inner"/> 391 </xsl:attribute> 235 392 </fo:region-body> 236 393 <fo:region-before region-name="xsl-region-before-even" 237 394 extent="{$region.before.extent}" 395 precedence="{$region.before.precedence}" 238 396 display-align="before"/> 239 397 <fo:region-after region-name="xsl-region-after-even" 240 398 extent="{$region.after.extent}" 399 precedence="{$region.after.precedence}" 241 400 display-align="after"/> 401 <xsl:call-template name="region.outer"> 402 <xsl:with-param name="sequence">even</xsl:with-param> 403 <xsl:with-param name="pageclass">lot</xsl:with-param> 404 </xsl:call-template> 405 <xsl:call-template name="region.inner"> 406 <xsl:with-param name="sequence">even</xsl:with-param> 407 <xsl:with-param name="pageclass">lot</xsl:with-param> 408 </xsl:call-template> 242 409 </fo:simple-page-master> 243 410 … … 247 414 page-height="{$page.height}" 248 415 margin-top="{$page.margin.top}" 249 margin-bottom="{$page.margin.bottom}" 250 margin-left="{$margin.left.inner}" 251 margin-right="{$page.margin.outer}"> 416 margin-bottom="{$page.margin.bottom}"> 417 <xsl:attribute name="margin-{$direction.align.start}"> 418 <xsl:value-of select="$page.margin.inner"/> 419 <xsl:if test="$fop.extensions != 0"> 420 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 421 </xsl:if> 422 </xsl:attribute> 423 <xsl:attribute name="margin-{$direction.align.end}"> 424 <xsl:value-of select="$page.margin.outer"/> 425 </xsl:attribute> 252 426 <xsl:if test="$axf.extensions != 0"> 253 427 <xsl:call-template name="axf-page-master-properties"> … … 259 433 column-gap="{$column.gap.front}" 260 434 column-count="{$column.count.front}"> 435 <xsl:attribute name="margin-{$direction.align.start}"> 436 <xsl:value-of select="$body.margin.inner"/> 437 </xsl:attribute> 438 <xsl:attribute name="margin-{$direction.align.end}"> 439 <xsl:value-of select="$body.margin.outer"/> 440 </xsl:attribute> 261 441 </fo:region-body> 262 442 <fo:region-before region-name="xsl-region-before-first" 263 443 extent="{$region.before.extent}" 444 precedence="{$region.before.precedence}" 264 445 display-align="before"/> 265 446 <fo:region-after region-name="xsl-region-after-first" 266 447 extent="{$region.after.extent}" 448 precedence="{$region.after.precedence}" 267 449 display-align="after"/> 450 <xsl:call-template name="region.inner"> 451 <xsl:with-param name="sequence">first</xsl:with-param> 452 <xsl:with-param name="pageclass">front</xsl:with-param> 453 </xsl:call-template> 454 <xsl:call-template name="region.outer"> 455 <xsl:with-param name="sequence">first</xsl:with-param> 456 <xsl:with-param name="pageclass">front</xsl:with-param> 457 </xsl:call-template> 268 458 </fo:simple-page-master> 269 459 … … 272 462 page-height="{$page.height}" 273 463 margin-top="{$page.margin.top}" 274 margin-bottom="{$page.margin.bottom}" 275 margin-left="{$margin.left.inner}" 276 margin-right="{$page.margin.outer}"> 464 margin-bottom="{$page.margin.bottom}"> 465 <xsl:attribute name="margin-{$direction.align.start}"> 466 <xsl:value-of select="$page.margin.inner"/> 467 <xsl:if test="$fop.extensions != 0"> 468 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 469 </xsl:if> 470 </xsl:attribute> 471 <xsl:attribute name="margin-{$direction.align.end}"> 472 <xsl:value-of select="$page.margin.outer"/> 473 </xsl:attribute> 277 474 <xsl:if test="$axf.extensions != 0"> 278 475 <xsl:call-template name="axf-page-master-properties"> … … 284 481 column-gap="{$column.gap.front}" 285 482 column-count="{$column.count.front}"> 483 <xsl:attribute name="margin-{$direction.align.start}"> 484 <xsl:value-of select="$body.margin.inner"/> 485 </xsl:attribute> 486 <xsl:attribute name="margin-{$direction.align.end}"> 487 <xsl:value-of select="$body.margin.outer"/> 488 </xsl:attribute> 286 489 </fo:region-body> 287 490 <fo:region-before region-name="xsl-region-before-odd" 288 491 extent="{$region.before.extent}" 492 precedence="{$region.before.precedence}" 289 493 display-align="before"/> 290 494 <fo:region-after region-name="xsl-region-after-odd" 291 495 extent="{$region.after.extent}" 496 precedence="{$region.after.precedence}" 292 497 display-align="after"/> 498 <xsl:call-template name="region.inner"> 499 <xsl:with-param name="sequence">odd</xsl:with-param> 500 <xsl:with-param name="pageclass">front</xsl:with-param> 501 </xsl:call-template> 502 <xsl:call-template name="region.outer"> 503 <xsl:with-param name="sequence">odd</xsl:with-param> 504 <xsl:with-param name="pageclass">front</xsl:with-param> 505 </xsl:call-template> 293 506 </fo:simple-page-master> 294 507 … … 297 510 page-height="{$page.height}" 298 511 margin-top="{$page.margin.top}" 299 margin-bottom="{$page.margin.bottom}" 300 margin-left="{$margin.left.outer}" 301 margin-right="{$page.margin.inner}"> 512 margin-bottom="{$page.margin.bottom}"> 513 <xsl:attribute name="margin-{$direction.align.start}"> 514 <xsl:value-of select="$page.margin.outer"/> 515 <xsl:if test="$fop.extensions != 0"> 516 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 517 </xsl:if> 518 </xsl:attribute> 519 <xsl:attribute name="margin-{$direction.align.end}"> 520 <xsl:value-of select="$page.margin.inner"/> 521 </xsl:attribute> 302 522 <xsl:if test="$axf.extensions != 0"> 303 523 <xsl:call-template name="axf-page-master-properties"> … … 309 529 column-gap="{$column.gap.front}" 310 530 column-count="{$column.count.front}"> 531 <xsl:attribute name="margin-{$direction.align.start}"> 532 <xsl:value-of select="$body.margin.outer"/> 533 </xsl:attribute> 534 <xsl:attribute name="margin-{$direction.align.end}"> 535 <xsl:value-of select="$body.margin.inner"/> 536 </xsl:attribute> 311 537 </fo:region-body> 312 538 <fo:region-before region-name="xsl-region-before-even" 313 539 extent="{$region.before.extent}" 540 precedence="{$region.before.precedence}" 314 541 display-align="before"/> 315 542 <fo:region-after region-name="xsl-region-after-even" 316 543 extent="{$region.after.extent}" 544 precedence="{$region.after.precedence}" 317 545 display-align="after"/> 546 <xsl:call-template name="region.outer"> 547 <xsl:with-param name="sequence">even</xsl:with-param> 548 <xsl:with-param name="pageclass">front</xsl:with-param> 549 </xsl:call-template> 550 <xsl:call-template name="region.inner"> 551 <xsl:with-param name="sequence">even</xsl:with-param> 552 <xsl:with-param name="pageclass">front</xsl:with-param> 553 </xsl:call-template> 318 554 </fo:simple-page-master> 319 555 … … 323 559 page-height="{$page.height}" 324 560 margin-top="{$page.margin.top}" 325 margin-bottom="{$page.margin.bottom}" 326 margin-left="{$margin.left.inner}" 327 margin-right="{$page.margin.outer}"> 561 margin-bottom="{$page.margin.bottom}"> 562 <xsl:attribute name="margin-{$direction.align.start}"> 563 <xsl:value-of select="$page.margin.inner"/> 564 <xsl:if test="$fop.extensions != 0"> 565 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 566 </xsl:if> 567 <xsl:if test="$fop.extensions != 0"> 568 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 569 </xsl:if> 570 </xsl:attribute> 571 <xsl:attribute name="margin-{$direction.align.end}"> 572 <xsl:value-of select="$page.margin.outer"/> 573 </xsl:attribute> 328 574 <xsl:if test="$axf.extensions != 0"> 329 575 <xsl:call-template name="axf-page-master-properties"> … … 335 581 column-gap="{$column.gap.body}" 336 582 column-count="{$column.count.body}"> 583 <xsl:attribute name="margin-{$direction.align.start}"> 584 <xsl:value-of select="$body.margin.inner"/> 585 </xsl:attribute> 586 <xsl:attribute name="margin-{$direction.align.end}"> 587 <xsl:value-of select="$body.margin.outer"/> 588 </xsl:attribute> 337 589 </fo:region-body> 338 590 <fo:region-before region-name="xsl-region-before-first" 339 591 extent="{$region.before.extent}" 592 precedence="{$region.before.precedence}" 340 593 display-align="before"/> 341 594 <fo:region-after region-name="xsl-region-after-first" 342 595 extent="{$region.after.extent}" 596 precedence="{$region.after.precedence}" 343 597 display-align="after"/> 598 <xsl:call-template name="region.inner"> 599 <xsl:with-param name="sequence">first</xsl:with-param> 600 <xsl:with-param name="pageclass">body</xsl:with-param> 601 </xsl:call-template> 602 <xsl:call-template name="region.outer"> 603 <xsl:with-param name="sequence">first</xsl:with-param> 604 <xsl:with-param name="pageclass">body</xsl:with-param> 605 </xsl:call-template> 344 606 </fo:simple-page-master> 345 607 … … 348 610 page-height="{$page.height}" 349 611 margin-top="{$page.margin.top}" 350 margin-bottom="{$page.margin.bottom}" 351 margin-left="{$margin.left.inner}" 352 margin-right="{$page.margin.outer}"> 612 margin-bottom="{$page.margin.bottom}"> 613 <xsl:attribute name="margin-{$direction.align.start}"> 614 <xsl:value-of select="$page.margin.inner"/> 615 <xsl:if test="$fop.extensions != 0"> 616 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 617 </xsl:if> 618 </xsl:attribute> 619 <xsl:attribute name="margin-{$direction.align.end}"> 620 <xsl:value-of select="$page.margin.outer"/> 621 </xsl:attribute> 353 622 <xsl:if test="$axf.extensions != 0"> 354 623 <xsl:call-template name="axf-page-master-properties"> … … 360 629 column-gap="{$column.gap.body}" 361 630 column-count="{$column.count.body}"> 631 <xsl:attribute name="margin-{$direction.align.start}"> 632 <xsl:value-of select="$body.margin.inner"/> 633 </xsl:attribute> 634 <xsl:attribute name="margin-{$direction.align.end}"> 635 <xsl:value-of select="$body.margin.outer"/> 636 </xsl:attribute> 362 637 </fo:region-body> 363 638 <fo:region-before region-name="xsl-region-before-odd" 364 639 extent="{$region.before.extent}" 640 precedence="{$region.before.precedence}" 365 641 display-align="before"/> 366 642 <fo:region-after region-name="xsl-region-after-odd" 367 643 extent="{$region.after.extent}" 644 precedence="{$region.after.precedence}" 368 645 display-align="after"/> 646 <xsl:call-template name="region.inner"> 647 <xsl:with-param name="pageclass">body</xsl:with-param> 648 <xsl:with-param name="sequence">odd</xsl:with-param> 649 </xsl:call-template> 650 <xsl:call-template name="region.outer"> 651 <xsl:with-param name="pageclass">body</xsl:with-param> 652 <xsl:with-param name="sequence">odd</xsl:with-param> 653 </xsl:call-template> 369 654 </fo:simple-page-master> 370 655 … … 373 658 page-height="{$page.height}" 374 659 margin-top="{$page.margin.top}" 375 margin-bottom="{$page.margin.bottom}" 376 margin-left="{$margin.left.outer}" 377 margin-right="{$page.margin.inner}"> 660 margin-bottom="{$page.margin.bottom}"> 661 <xsl:attribute name="margin-{$direction.align.start}"> 662 <xsl:value-of select="$page.margin.outer"/> 663 <xsl:if test="$fop.extensions != 0"> 664 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 665 </xsl:if> 666 </xsl:attribute> 667 <xsl:attribute name="margin-{$direction.align.end}"> 668 <xsl:value-of select="$page.margin.inner"/> 669 </xsl:attribute> 378 670 <xsl:if test="$axf.extensions != 0"> 379 671 <xsl:call-template name="axf-page-master-properties"> … … 385 677 column-gap="{$column.gap.body}" 386 678 column-count="{$column.count.body}"> 679 <xsl:attribute name="margin-{$direction.align.start}"> 680 <xsl:value-of select="$body.margin.outer"/> 681 </xsl:attribute> 682 <xsl:attribute name="margin-{$direction.align.end}"> 683 <xsl:value-of select="$body.margin.inner"/> 684 </xsl:attribute> 387 685 </fo:region-body> 388 686 <fo:region-before region-name="xsl-region-before-even" 389 687 extent="{$region.before.extent}" 688 precedence="{$region.before.precedence}" 390 689 display-align="before"/> 391 690 <fo:region-after region-name="xsl-region-after-even" 392 691 extent="{$region.after.extent}" 692 precedence="{$region.after.precedence}" 393 693 display-align="after"/> 694 <xsl:call-template name="region.outer"> 695 <xsl:with-param name="pageclass">body</xsl:with-param> 696 <xsl:with-param name="sequence">even</xsl:with-param> 697 </xsl:call-template> 698 <xsl:call-template name="region.inner"> 699 <xsl:with-param name="pageclass">body</xsl:with-param> 700 <xsl:with-param name="sequence">even</xsl:with-param> 701 </xsl:call-template> 394 702 </fo:simple-page-master> 395 703 … … 399 707 page-height="{$page.height}" 400 708 margin-top="{$page.margin.top}" 401 margin-bottom="{$page.margin.bottom}" 402 margin-left="{$margin.left.inner}" 403 margin-right="{$page.margin.outer}"> 709 margin-bottom="{$page.margin.bottom}"> 710 <xsl:attribute name="margin-{$direction.align.start}"> 711 <xsl:value-of select="$page.margin.inner"/> 712 <xsl:if test="$fop.extensions != 0"> 713 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 714 </xsl:if> 715 </xsl:attribute> 716 <xsl:attribute name="margin-{$direction.align.end}"> 717 <xsl:value-of select="$page.margin.outer"/> 718 </xsl:attribute> 404 719 <xsl:if test="$axf.extensions != 0"> 405 720 <xsl:call-template name="axf-page-master-properties"> … … 411 726 column-gap="{$column.gap.back}" 412 727 column-count="{$column.count.back}"> 728 <xsl:attribute name="margin-{$direction.align.start}"> 729 <xsl:value-of select="$body.margin.inner"/> 730 </xsl:attribute> 731 <xsl:attribute name="margin-{$direction.align.end}"> 732 <xsl:value-of select="$body.margin.outer"/> 733 </xsl:attribute> 413 734 </fo:region-body> 414 735 <fo:region-before region-name="xsl-region-before-first" 415 736 extent="{$region.before.extent}" 737 precedence="{$region.before.precedence}" 416 738 display-align="before"/> 417 739 <fo:region-after region-name="xsl-region-after-first" 418 740 extent="{$region.after.extent}" 741 precedence="{$region.after.precedence}" 419 742 display-align="after"/> 743 <xsl:call-template name="region.inner"> 744 <xsl:with-param name="sequence">first</xsl:with-param> 745 <xsl:with-param name="pageclass">back</xsl:with-param> 746 </xsl:call-template> 747 <xsl:call-template name="region.outer"> 748 <xsl:with-param name="sequence">first</xsl:with-param> 749 <xsl:with-param name="pageclass">back</xsl:with-param> 750 </xsl:call-template> 420 751 </fo:simple-page-master> 421 752 … … 424 755 page-height="{$page.height}" 425 756 margin-top="{$page.margin.top}" 426 margin-bottom="{$page.margin.bottom}" 427 margin-left="{$margin.left.inner}" 428 margin-right="{$page.margin.outer}"> 757 margin-bottom="{$page.margin.bottom}"> 758 <xsl:attribute name="margin-{$direction.align.start}"> 759 <xsl:value-of select="$page.margin.inner"/> 760 <xsl:if test="$fop.extensions != 0"> 761 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 762 </xsl:if> 763 </xsl:attribute> 764 <xsl:attribute name="margin-{$direction.align.end}"> 765 <xsl:value-of select="$page.margin.outer"/> 766 </xsl:attribute> 429 767 <xsl:if test="$axf.extensions != 0"> 430 768 <xsl:call-template name="axf-page-master-properties"> … … 436 774 column-gap="{$column.gap.back}" 437 775 column-count="{$column.count.back}"> 776 <xsl:attribute name="margin-{$direction.align.start}"> 777 <xsl:value-of select="$body.margin.inner"/> 778 </xsl:attribute> 779 <xsl:attribute name="margin-{$direction.align.end}"> 780 <xsl:value-of select="$body.margin.outer"/> 781 </xsl:attribute> 438 782 </fo:region-body> 439 783 <fo:region-before region-name="xsl-region-before-odd" 440 784 extent="{$region.before.extent}" 785 precedence="{$region.before.precedence}" 441 786 display-align="before"/> 442 787 <fo:region-after region-name="xsl-region-after-odd" 443 788 extent="{$region.after.extent}" 789 precedence="{$region.after.precedence}" 444 790 display-align="after"/> 791 <xsl:call-template name="region.inner"> 792 <xsl:with-param name="sequence">odd</xsl:with-param> 793 <xsl:with-param name="pageclass">back</xsl:with-param> 794 </xsl:call-template> 795 <xsl:call-template name="region.outer"> 796 <xsl:with-param name="sequence">odd</xsl:with-param> 797 <xsl:with-param name="pageclass">back</xsl:with-param> 798 </xsl:call-template> 445 799 </fo:simple-page-master> 446 800 … … 449 803 page-height="{$page.height}" 450 804 margin-top="{$page.margin.top}" 451 margin-bottom="{$page.margin.bottom}" 452 margin-left="{$margin.left.outer}" 453 margin-right="{$page.margin.inner}"> 805 margin-bottom="{$page.margin.bottom}"> 806 <xsl:attribute name="margin-{$direction.align.start}"> 807 <xsl:value-of select="$page.margin.outer"/> 808 <xsl:if test="$fop.extensions != 0"> 809 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 810 </xsl:if> 811 </xsl:attribute> 812 <xsl:attribute name="margin-{$direction.align.end}"> 813 <xsl:value-of select="$page.margin.inner"/> 814 </xsl:attribute> 454 815 <xsl:if test="$axf.extensions != 0"> 455 816 <xsl:call-template name="axf-page-master-properties"> … … 461 822 column-gap="{$column.gap.back}" 462 823 column-count="{$column.count.back}"> 824 <xsl:attribute name="margin-{$direction.align.start}"> 825 <xsl:value-of select="$body.margin.outer"/> 826 </xsl:attribute> 827 <xsl:attribute name="margin-{$direction.align.end}"> 828 <xsl:value-of select="$body.margin.inner"/> 829 </xsl:attribute> 463 830 </fo:region-body> 464 831 <fo:region-before region-name="xsl-region-before-even" 465 832 extent="{$region.before.extent}" 833 precedence="{$region.before.precedence}" 466 834 display-align="before"/> 467 835 <fo:region-after region-name="xsl-region-after-even" 468 836 extent="{$region.after.extent}" 837 precedence="{$region.after.precedence}" 469 838 display-align="after"/> 839 <xsl:call-template name="region.outer"> 840 <xsl:with-param name="sequence">even</xsl:with-param> 841 <xsl:with-param name="pageclass">back</xsl:with-param> 842 </xsl:call-template> 843 <xsl:call-template name="region.inner"> 844 <xsl:with-param name="sequence">even</xsl:with-param> 845 <xsl:with-param name="pageclass">back</xsl:with-param> 846 </xsl:call-template> 470 847 </fo:simple-page-master> 471 848 … … 475 852 page-height="{$page.height}" 476 853 margin-top="{$page.margin.top}" 477 margin-bottom="{$page.margin.bottom}" 478 margin-left="{$page.margin.inner}" 479 margin-right="{$page.margin.outer}"> 854 margin-bottom="{$page.margin.bottom}"> 855 <xsl:attribute name="margin-{$direction.align.start}"> 856 <xsl:value-of select="$page.margin.inner"/> 857 <xsl:if test="$fop.extensions != 0"> 858 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 859 </xsl:if> 860 </xsl:attribute> 861 <xsl:attribute name="margin-{$direction.align.end}"> 862 <xsl:value-of select="$page.margin.outer"/> 863 </xsl:attribute> 480 864 <xsl:if test="$axf.extensions != 0"> 481 865 <xsl:call-template name="axf-page-master-properties"> … … 487 871 column-gap="{$column.gap.index}" 488 872 column-count="{$column.count.index}"> 873 <xsl:attribute name="margin-{$direction.align.start}"> 874 <xsl:value-of select="$body.margin.inner"/> 875 </xsl:attribute> 876 <xsl:attribute name="margin-{$direction.align.end}"> 877 <xsl:value-of select="$body.margin.outer"/> 878 </xsl:attribute> 489 879 </fo:region-body> 490 880 <fo:region-before region-name="xsl-region-before-first" 491 881 extent="{$region.before.extent}" 882 precedence="{$region.before.precedence}" 492 883 display-align="before"/> 493 884 <fo:region-after region-name="xsl-region-after-first" 494 885 extent="{$region.after.extent}" 886 precedence="{$region.after.precedence}" 495 887 display-align="after"/> 888 <xsl:call-template name="region.inner"> 889 <xsl:with-param name="sequence">first</xsl:with-param> 890 <xsl:with-param name="pageclass">index</xsl:with-param> 891 </xsl:call-template> 892 <xsl:call-template name="region.outer"> 893 <xsl:with-param name="sequence">first</xsl:with-param> 894 <xsl:with-param name="pageclass">index</xsl:with-param> 895 </xsl:call-template> 496 896 </fo:simple-page-master> 497 897 … … 500 900 page-height="{$page.height}" 501 901 margin-top="{$page.margin.top}" 502 margin-bottom="{$page.margin.bottom}" 503 margin-left="{$page.margin.inner}" 504 margin-right="{$page.margin.outer}"> 902 margin-bottom="{$page.margin.bottom}"> 903 <xsl:attribute name="margin-{$direction.align.start}"> 904 <xsl:value-of select="$page.margin.inner"/> 905 <xsl:if test="$fop.extensions != 0"> 906 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 907 </xsl:if> 908 </xsl:attribute> 909 <xsl:attribute name="margin-{$direction.align.end}"> 910 <xsl:value-of select="$page.margin.outer"/> 911 </xsl:attribute> 505 912 <xsl:if test="$axf.extensions != 0"> 506 913 <xsl:call-template name="axf-page-master-properties"> … … 512 919 column-gap="{$column.gap.index}" 513 920 column-count="{$column.count.index}"> 921 <xsl:attribute name="margin-{$direction.align.start}"> 922 <xsl:value-of select="$body.margin.inner"/> 923 </xsl:attribute> 924 <xsl:attribute name="margin-{$direction.align.end}"> 925 <xsl:value-of select="$body.margin.outer"/> 926 </xsl:attribute> 514 927 </fo:region-body> 515 928 <fo:region-before region-name="xsl-region-before-odd" 516 929 extent="{$region.before.extent}" 930 precedence="{$region.before.precedence}" 517 931 display-align="before"/> 518 932 <fo:region-after region-name="xsl-region-after-odd" 519 933 extent="{$region.after.extent}" 934 precedence="{$region.after.precedence}" 520 935 display-align="after"/> 936 <xsl:call-template name="region.inner"> 937 <xsl:with-param name="sequence">odd</xsl:with-param> 938 <xsl:with-param name="pageclass">index</xsl:with-param> 939 </xsl:call-template> 940 <xsl:call-template name="region.outer"> 941 <xsl:with-param name="sequence">odd</xsl:with-param> 942 <xsl:with-param name="pageclass">index</xsl:with-param> 943 </xsl:call-template> 521 944 </fo:simple-page-master> 522 945 … … 525 948 page-height="{$page.height}" 526 949 margin-top="{$page.margin.top}" 527 margin-bottom="{$page.margin.bottom}" 528 margin-left="{$page.margin.outer}" 529 margin-right="{$page.margin.inner}"> 950 margin-bottom="{$page.margin.bottom}"> 951 <xsl:attribute name="margin-{$direction.align.start}"> 952 <xsl:value-of select="$page.margin.outer"/> 953 <xsl:if test="$fop.extensions != 0"> 954 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 955 </xsl:if> 956 </xsl:attribute> 957 <xsl:attribute name="margin-{$direction.align.end}"> 958 <xsl:value-of select="$page.margin.inner"/> 959 </xsl:attribute> 530 960 <xsl:if test="$axf.extensions != 0"> 531 961 <xsl:call-template name="axf-page-master-properties"> … … 537 967 column-gap="{$column.gap.index}" 538 968 column-count="{$column.count.index}"> 969 <xsl:attribute name="margin-{$direction.align.start}"> 970 <xsl:value-of select="$body.margin.outer"/> 971 </xsl:attribute> 972 <xsl:attribute name="margin-{$direction.align.end}"> 973 <xsl:value-of select="$body.margin.inner"/> 974 </xsl:attribute> 539 975 </fo:region-body> 540 976 <fo:region-before region-name="xsl-region-before-even" 541 977 extent="{$region.before.extent}" 978 precedence="{$region.before.precedence}" 542 979 display-align="before"/> 543 980 <fo:region-after region-name="xsl-region-after-even" 544 981 extent="{$region.after.extent}" 982 precedence="{$region.after.precedence}" 545 983 display-align="after"/> 984 <xsl:call-template name="region.outer"> 985 <xsl:with-param name="sequence">even</xsl:with-param> 986 <xsl:with-param name="pageclass">index</xsl:with-param> 987 </xsl:call-template> 988 <xsl:call-template name="region.inner"> 989 <xsl:with-param name="sequence">even</xsl:with-param> 990 <xsl:with-param name="pageclass">index</xsl:with-param> 991 </xsl:call-template> 546 992 </fo:simple-page-master> 547 993 … … 552 998 page-height="{$page.height}" 553 999 margin-top="{$page.margin.top}" 554 margin-bottom="{$page.margin.bottom}" 555 margin-left="{$margin.left.outer}" 556 margin-right="{$page.margin.inner}"> 1000 margin-bottom="{$page.margin.bottom}"> 1001 <xsl:attribute name="margin-{$direction.align.start}"> 1002 <xsl:value-of select="$page.margin.outer"/> 1003 <xsl:if test="$fop.extensions != 0"> 1004 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1005 </xsl:if> 1006 </xsl:attribute> 1007 <xsl:attribute name="margin-{$direction.align.end}"> 1008 <xsl:value-of select="$page.margin.inner"/> 1009 </xsl:attribute> 557 1010 <xsl:if test="$axf.extensions != 0"> 558 1011 <xsl:call-template name="axf-page-master-properties"> … … 562 1015 <fo:region-body margin-bottom="{$body.margin.bottom}" 563 1016 margin-top="{$body.margin.top}"> 1017 <xsl:attribute name="margin-{$direction.align.start}"> 1018 <xsl:value-of select="$body.margin.outer"/> 1019 </xsl:attribute> 1020 <xsl:attribute name="margin-{$direction.align.end}"> 1021 <xsl:value-of select="$body.margin.inner"/> 1022 </xsl:attribute> 564 1023 <xsl:if test="$draft.watermark.image != ''"> 565 1024 <xsl:attribute name="background-image"> … … 576 1035 <fo:region-before region-name="xsl-region-before-blank" 577 1036 extent="{$region.before.extent}" 1037 precedence="{$region.before.precedence}" 578 1038 display-align="before"/> 579 1039 <fo:region-after region-name="xsl-region-after-blank" 580 1040 extent="{$region.after.extent}" 1041 precedence="{$region.after.precedence}" 581 1042 display-align="after"/> 1043 <xsl:call-template name="region.outer"> 1044 <xsl:with-param name="sequence">blank</xsl:with-param> 1045 <xsl:with-param name="pageclass">blank</xsl:with-param> 1046 </xsl:call-template> 1047 <xsl:call-template name="region.inner"> 1048 <xsl:with-param name="sequence">blank</xsl:with-param> 1049 <xsl:with-param name="pageclass">blank</xsl:with-param> 1050 </xsl:call-template> 582 1051 </fo:simple-page-master> 583 1052 … … 587 1056 page-height="{$page.height}" 588 1057 margin-top="{$page.margin.top}" 589 margin-bottom="{$page.margin.bottom}" 590 margin-left="{$margin.left.inner}" 591 margin-right="{$page.margin.outer}"> 1058 margin-bottom="{$page.margin.bottom}"> 1059 <xsl:attribute name="margin-{$direction.align.start}"> 1060 <xsl:value-of select="$page.margin.inner"/> 1061 <xsl:if test="$fop.extensions != 0"> 1062 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1063 </xsl:if> 1064 </xsl:attribute> 1065 <xsl:attribute name="margin-{$direction.align.end}"> 1066 <xsl:value-of select="$page.margin.outer"/> 1067 </xsl:attribute> 592 1068 <xsl:if test="$axf.extensions != 0"> 593 1069 <xsl:call-template name="axf-page-master-properties"> … … 599 1075 column-gap="{$column.gap.titlepage}" 600 1076 column-count="{$column.count.titlepage}"> 1077 <xsl:attribute name="margin-{$direction.align.start}"> 1078 <xsl:value-of select="$body.margin.inner"/> 1079 </xsl:attribute> 1080 <xsl:attribute name="margin-{$direction.align.end}"> 1081 <xsl:value-of select="$body.margin.outer"/> 1082 </xsl:attribute> 601 1083 <xsl:if test="$draft.watermark.image != ''"> 602 1084 <xsl:attribute name="background-image"> … … 613 1095 <fo:region-before region-name="xsl-region-before-first" 614 1096 extent="{$region.before.extent}" 1097 precedence="{$region.before.precedence}" 615 1098 display-align="before"/> 616 1099 <fo:region-after region-name="xsl-region-after-first" 617 1100 extent="{$region.after.extent}" 1101 precedence="{$region.after.precedence}" 618 1102 display-align="after"/> 1103 <xsl:call-template name="region.inner"> 1104 <xsl:with-param name="sequence">first</xsl:with-param> 1105 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 1106 </xsl:call-template> 1107 <xsl:call-template name="region.outer"> 1108 <xsl:with-param name="sequence">first</xsl:with-param> 1109 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 1110 </xsl:call-template> 619 1111 </fo:simple-page-master> 620 1112 … … 623 1115 page-height="{$page.height}" 624 1116 margin-top="{$page.margin.top}" 625 margin-bottom="{$page.margin.bottom}" 626 margin-left="{$margin.left.inner}" 627 margin-right="{$page.margin.outer}"> 1117 margin-bottom="{$page.margin.bottom}"> 1118 <xsl:attribute name="margin-{$direction.align.start}"> 1119 <xsl:value-of select="$page.margin.inner"/> 1120 <xsl:if test="$fop.extensions != 0"> 1121 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1122 </xsl:if> 1123 </xsl:attribute> 1124 <xsl:attribute name="margin-{$direction.align.end}"> 1125 <xsl:value-of select="$page.margin.outer"/> 1126 </xsl:attribute> 628 1127 <xsl:if test="$axf.extensions != 0"> 629 1128 <xsl:call-template name="axf-page-master-properties"> … … 635 1134 column-gap="{$column.gap.titlepage}" 636 1135 column-count="{$column.count.titlepage}"> 1136 <xsl:attribute name="margin-{$direction.align.start}"> 1137 <xsl:value-of select="$body.margin.inner"/> 1138 </xsl:attribute> 1139 <xsl:attribute name="margin-{$direction.align.end}"> 1140 <xsl:value-of select="$body.margin.outer"/> 1141 </xsl:attribute> 637 1142 <xsl:if test="$draft.watermark.image != ''"> 638 1143 <xsl:attribute name="background-image"> … … 649 1154 <fo:region-before region-name="xsl-region-before-odd" 650 1155 extent="{$region.before.extent}" 1156 precedence="{$region.before.precedence}" 651 1157 display-align="before"/> 652 1158 <fo:region-after region-name="xsl-region-after-odd" 653 1159 extent="{$region.after.extent}" 1160 precedence="{$region.after.precedence}" 654 1161 display-align="after"/> 1162 <xsl:call-template name="region.inner"> 1163 <xsl:with-param name="sequence">odd</xsl:with-param> 1164 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 1165 </xsl:call-template> 1166 <xsl:call-template name="region.outer"> 1167 <xsl:with-param name="sequence">odd</xsl:with-param> 1168 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 1169 </xsl:call-template> 655 1170 </fo:simple-page-master> 656 1171 … … 659 1174 page-height="{$page.height}" 660 1175 margin-top="{$page.margin.top}" 661 margin-bottom="{$page.margin.bottom}" 662 margin-left="{$margin.left.outer}" 663 margin-right="{$page.margin.inner}"> 1176 margin-bottom="{$page.margin.bottom}"> 1177 <xsl:attribute name="margin-{$direction.align.start}"> 1178 <xsl:value-of select="$page.margin.outer"/> 1179 <xsl:if test="$fop.extensions != 0"> 1180 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1181 </xsl:if> 1182 </xsl:attribute> 1183 <xsl:attribute name="margin-{$direction.align.end}"> 1184 <xsl:value-of select="$page.margin.inner"/> 1185 </xsl:attribute> 664 1186 <xsl:if test="$axf.extensions != 0"> 665 1187 <xsl:call-template name="axf-page-master-properties"> … … 671 1193 column-gap="{$column.gap.titlepage}" 672 1194 column-count="{$column.count.titlepage}"> 1195 <xsl:attribute name="margin-{$direction.align.start}"> 1196 <xsl:value-of select="$body.margin.outer"/> 1197 </xsl:attribute> 1198 <xsl:attribute name="margin-{$direction.align.end}"> 1199 <xsl:value-of select="$body.margin.inner"/> 1200 </xsl:attribute> 673 1201 <xsl:if test="$draft.watermark.image != ''"> 674 1202 <xsl:attribute name="background-image"> … … 685 1213 <fo:region-before region-name="xsl-region-before-even" 686 1214 extent="{$region.before.extent}" 1215 precedence="{$region.before.precedence}" 687 1216 display-align="before"/> 688 1217 <fo:region-after region-name="xsl-region-after-even" 689 1218 extent="{$region.after.extent}" 1219 precedence="{$region.after.precedence}" 690 1220 display-align="after"/> 1221 <xsl:call-template name="region.outer"> 1222 <xsl:with-param name="sequence">even</xsl:with-param> 1223 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 1224 </xsl:call-template> 1225 <xsl:call-template name="region.inner"> 1226 <xsl:with-param name="sequence">even</xsl:with-param> 1227 <xsl:with-param name="pageclass">titlepage</xsl:with-param> 1228 </xsl:call-template> 691 1229 </fo:simple-page-master> 692 1230 … … 696 1234 page-height="{$page.height}" 697 1235 margin-top="{$page.margin.top}" 698 margin-bottom="{$page.margin.bottom}" 699 margin-left="{$margin.left.inner}" 700 margin-right="{$page.margin.outer}"> 1236 margin-bottom="{$page.margin.bottom}"> 1237 <xsl:attribute name="margin-{$direction.align.start}"> 1238 <xsl:value-of select="$page.margin.inner"/> 1239 <xsl:if test="$fop.extensions != 0"> 1240 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1241 </xsl:if> 1242 </xsl:attribute> 1243 <xsl:attribute name="margin-{$direction.align.end}"> 1244 <xsl:value-of select="$page.margin.outer"/> 1245 </xsl:attribute> 701 1246 <xsl:if test="$axf.extensions != 0"> 702 1247 <xsl:call-template name="axf-page-master-properties"> … … 708 1253 column-gap="{$column.gap.lot}" 709 1254 column-count="{$column.count.lot}"> 1255 <xsl:attribute name="margin-{$direction.align.start}"> 1256 <xsl:value-of select="$body.margin.inner"/> 1257 </xsl:attribute> 1258 <xsl:attribute name="margin-{$direction.align.end}"> 1259 <xsl:value-of select="$body.margin.outer"/> 1260 </xsl:attribute> 710 1261 <xsl:if test="$draft.watermark.image != ''"> 711 1262 <xsl:attribute name="background-image"> … … 722 1273 <fo:region-before region-name="xsl-region-before-first" 723 1274 extent="{$region.before.extent}" 1275 precedence="{$region.before.precedence}" 724 1276 display-align="before"/> 725 1277 <fo:region-after region-name="xsl-region-after-first" 726 1278 extent="{$region.after.extent}" 1279 precedence="{$region.after.precedence}" 727 1280 display-align="after"/> 1281 <xsl:call-template name="region.inner"> 1282 <xsl:with-param name="sequence">first</xsl:with-param> 1283 <xsl:with-param name="pageclass">lot</xsl:with-param> 1284 </xsl:call-template> 1285 <xsl:call-template name="region.outer"> 1286 <xsl:with-param name="sequence">first</xsl:with-param> 1287 <xsl:with-param name="pageclass">lot</xsl:with-param> 1288 </xsl:call-template> 728 1289 </fo:simple-page-master> 729 1290 … … 732 1293 page-height="{$page.height}" 733 1294 margin-top="{$page.margin.top}" 734 margin-bottom="{$page.margin.bottom}" 735 margin-left="{$margin.left.inner}" 736 margin-right="{$page.margin.outer}"> 1295 margin-bottom="{$page.margin.bottom}"> 1296 <xsl:attribute name="margin-{$direction.align.start}"> 1297 <xsl:value-of select="$page.margin.inner"/> 1298 <xsl:if test="$fop.extensions != 0"> 1299 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1300 </xsl:if> 1301 </xsl:attribute> 1302 <xsl:attribute name="margin-{$direction.align.end}"> 1303 <xsl:value-of select="$page.margin.outer"/> 1304 </xsl:attribute> 737 1305 <xsl:if test="$axf.extensions != 0"> 738 1306 <xsl:call-template name="axf-page-master-properties"> … … 744 1312 column-gap="{$column.gap.lot}" 745 1313 column-count="{$column.count.lot}"> 1314 <xsl:attribute name="margin-{$direction.align.start}"> 1315 <xsl:value-of select="$body.margin.inner"/> 1316 </xsl:attribute> 1317 <xsl:attribute name="margin-{$direction.align.end}"> 1318 <xsl:value-of select="$body.margin.outer"/> 1319 </xsl:attribute> 746 1320 <xsl:if test="$draft.watermark.image != ''"> 747 1321 <xsl:attribute name="background-image"> … … 758 1332 <fo:region-before region-name="xsl-region-before-odd" 759 1333 extent="{$region.before.extent}" 1334 precedence="{$region.before.precedence}" 760 1335 display-align="before"/> 761 1336 <fo:region-after region-name="xsl-region-after-odd" 762 1337 extent="{$region.after.extent}" 1338 precedence="{$region.after.precedence}" 763 1339 display-align="after"/> 1340 <xsl:call-template name="region.inner"> 1341 <xsl:with-param name="sequence">odd</xsl:with-param> 1342 <xsl:with-param name="pageclass">lot</xsl:with-param> 1343 </xsl:call-template> 1344 <xsl:call-template name="region.outer"> 1345 <xsl:with-param name="sequence">odd</xsl:with-param> 1346 <xsl:with-param name="pageclass">lot</xsl:with-param> 1347 </xsl:call-template> 764 1348 </fo:simple-page-master> 765 1349 … … 768 1352 page-height="{$page.height}" 769 1353 margin-top="{$page.margin.top}" 770 margin-bottom="{$page.margin.bottom}" 771 margin-left="{$margin.left.outer}" 772 margin-right="{$page.margin.inner}"> 1354 margin-bottom="{$page.margin.bottom}"> 1355 <xsl:attribute name="margin-{$direction.align.start}"> 1356 <xsl:value-of select="$page.margin.outer"/> 1357 <xsl:if test="$fop.extensions != 0"> 1358 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1359 </xsl:if> 1360 </xsl:attribute> 1361 <xsl:attribute name="margin-{$direction.align.end}"> 1362 <xsl:value-of select="$page.margin.inner"/> 1363 </xsl:attribute> 773 1364 <xsl:if test="$axf.extensions != 0"> 774 1365 <xsl:call-template name="axf-page-master-properties"> … … 780 1371 column-gap="{$column.gap.lot}" 781 1372 column-count="{$column.count.lot}"> 1373 <xsl:attribute name="margin-{$direction.align.start}"> 1374 <xsl:value-of select="$body.margin.outer"/> 1375 </xsl:attribute> 1376 <xsl:attribute name="margin-{$direction.align.end}"> 1377 <xsl:value-of select="$body.margin.inner"/> 1378 </xsl:attribute> 782 1379 <xsl:if test="$draft.watermark.image != ''"> 783 1380 <xsl:attribute name="background-image"> … … 794 1391 <fo:region-before region-name="xsl-region-before-even" 795 1392 extent="{$region.before.extent}" 1393 precedence="{$region.before.precedence}" 796 1394 display-align="before"/> 797 1395 <fo:region-after region-name="xsl-region-after-even" 798 1396 extent="{$region.after.extent}" 1397 precedence="{$region.after.precedence}" 799 1398 display-align="after"/> 1399 <xsl:call-template name="region.outer"> 1400 <xsl:with-param name="sequence">even</xsl:with-param> 1401 <xsl:with-param name="pageclass">lot</xsl:with-param> 1402 </xsl:call-template> 1403 <xsl:call-template name="region.inner"> 1404 <xsl:with-param name="sequence">even</xsl:with-param> 1405 <xsl:with-param name="pageclass">lot</xsl:with-param> 1406 </xsl:call-template> 800 1407 </fo:simple-page-master> 801 1408 … … 805 1412 page-height="{$page.height}" 806 1413 margin-top="{$page.margin.top}" 807 margin-bottom="{$page.margin.bottom}" 808 margin-left="{$margin.left.inner}" 809 margin-right="{$page.margin.outer}"> 1414 margin-bottom="{$page.margin.bottom}"> 1415 <xsl:attribute name="margin-{$direction.align.start}"> 1416 <xsl:value-of select="$page.margin.inner"/> 1417 <xsl:if test="$fop.extensions != 0"> 1418 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1419 </xsl:if> 1420 </xsl:attribute> 1421 <xsl:attribute name="margin-{$direction.align.end}"> 1422 <xsl:value-of select="$page.margin.outer"/> 1423 </xsl:attribute> 810 1424 <xsl:if test="$axf.extensions != 0"> 811 1425 <xsl:call-template name="axf-page-master-properties"> … … 817 1431 column-gap="{$column.gap.front}" 818 1432 column-count="{$column.count.front}"> 1433 <xsl:attribute name="margin-{$direction.align.start}"> 1434 <xsl:value-of select="$body.margin.inner"/> 1435 </xsl:attribute> 1436 <xsl:attribute name="margin-{$direction.align.end}"> 1437 <xsl:value-of select="$body.margin.outer"/> 1438 </xsl:attribute> 819 1439 <xsl:if test="$draft.watermark.image != ''"> 820 1440 <xsl:attribute name="background-image"> … … 831 1451 <fo:region-before region-name="xsl-region-before-first" 832 1452 extent="{$region.before.extent}" 1453 precedence="{$region.before.precedence}" 833 1454 display-align="before"/> 834 1455 <fo:region-after region-name="xsl-region-after-first" 835 1456 extent="{$region.after.extent}" 1457 precedence="{$region.after.precedence}" 836 1458 display-align="after"/> 1459 <xsl:call-template name="region.inner"> 1460 <xsl:with-param name="sequence">first</xsl:with-param> 1461 <xsl:with-param name="pageclass">front</xsl:with-param> 1462 </xsl:call-template> 1463 <xsl:call-template name="region.outer"> 1464 <xsl:with-param name="sequence">first</xsl:with-param> 1465 <xsl:with-param name="pageclass">front</xsl:with-param> 1466 </xsl:call-template> 837 1467 </fo:simple-page-master> 838 1468 … … 841 1471 page-height="{$page.height}" 842 1472 margin-top="{$page.margin.top}" 843 margin-bottom="{$page.margin.bottom}" 844 margin-left="{$margin.left.inner}" 845 margin-right="{$page.margin.outer}"> 1473 margin-bottom="{$page.margin.bottom}"> 1474 <xsl:attribute name="margin-{$direction.align.start}"> 1475 <xsl:value-of select="$page.margin.inner"/> 1476 <xsl:if test="$fop.extensions != 0"> 1477 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1478 </xsl:if> 1479 </xsl:attribute> 1480 <xsl:attribute name="margin-{$direction.align.end}"> 1481 <xsl:value-of select="$page.margin.outer"/> 1482 </xsl:attribute> 846 1483 <xsl:if test="$axf.extensions != 0"> 847 1484 <xsl:call-template name="axf-page-master-properties"> … … 853 1490 column-gap="{$column.gap.front}" 854 1491 column-count="{$column.count.front}"> 1492 <xsl:attribute name="margin-{$direction.align.start}"> 1493 <xsl:value-of select="$body.margin.inner"/> 1494 </xsl:attribute> 1495 <xsl:attribute name="margin-{$direction.align.end}"> 1496 <xsl:value-of select="$body.margin.outer"/> 1497 </xsl:attribute> 855 1498 <xsl:if test="$draft.watermark.image != ''"> 856 1499 <xsl:attribute name="background-image"> … … 867 1510 <fo:region-before region-name="xsl-region-before-odd" 868 1511 extent="{$region.before.extent}" 1512 precedence="{$region.before.precedence}" 869 1513 display-align="before"/> 870 1514 <fo:region-after region-name="xsl-region-after-odd" 871 1515 extent="{$region.after.extent}" 1516 precedence="{$region.after.precedence}" 872 1517 display-align="after"/> 1518 <xsl:call-template name="region.inner"> 1519 <xsl:with-param name="sequence">odd</xsl:with-param> 1520 <xsl:with-param name="pageclass">front</xsl:with-param> 1521 </xsl:call-template> 1522 <xsl:call-template name="region.outer"> 1523 <xsl:with-param name="sequence">odd</xsl:with-param> 1524 <xsl:with-param name="pageclass">front</xsl:with-param> 1525 </xsl:call-template> 873 1526 </fo:simple-page-master> 874 1527 … … 877 1530 page-height="{$page.height}" 878 1531 margin-top="{$page.margin.top}" 879 margin-bottom="{$page.margin.bottom}" 880 margin-left="{$margin.left.outer}" 881 margin-right="{$page.margin.inner}"> 1532 margin-bottom="{$page.margin.bottom}"> 1533 <xsl:attribute name="margin-{$direction.align.start}"> 1534 <xsl:value-of select="$page.margin.outer"/> 1535 <xsl:if test="$fop.extensions != 0"> 1536 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1537 </xsl:if> 1538 </xsl:attribute> 1539 <xsl:attribute name="margin-{$direction.align.end}"> 1540 <xsl:value-of select="$page.margin.inner"/> 1541 </xsl:attribute> 882 1542 <xsl:if test="$axf.extensions != 0"> 883 1543 <xsl:call-template name="axf-page-master-properties"> … … 889 1549 column-gap="{$column.gap.front}" 890 1550 column-count="{$column.count.front}"> 1551 <xsl:attribute name="margin-{$direction.align.start}"> 1552 <xsl:value-of select="$body.margin.outer"/> 1553 </xsl:attribute> 1554 <xsl:attribute name="margin-{$direction.align.end}"> 1555 <xsl:value-of select="$body.margin.inner"/> 1556 </xsl:attribute> 891 1557 <xsl:if test="$draft.watermark.image != ''"> 892 1558 <xsl:attribute name="background-image"> … … 903 1569 <fo:region-before region-name="xsl-region-before-even" 904 1570 extent="{$region.before.extent}" 1571 precedence="{$region.before.precedence}" 905 1572 display-align="before"/> 906 1573 <fo:region-after region-name="xsl-region-after-even" 907 1574 extent="{$region.after.extent}" 1575 precedence="{$region.after.precedence}" 908 1576 display-align="after"/> 1577 <xsl:call-template name="region.outer"> 1578 <xsl:with-param name="sequence">even</xsl:with-param> 1579 <xsl:with-param name="pageclass">front</xsl:with-param> 1580 </xsl:call-template> 1581 <xsl:call-template name="region.inner"> 1582 <xsl:with-param name="sequence">even</xsl:with-param> 1583 <xsl:with-param name="pageclass">front</xsl:with-param> 1584 </xsl:call-template> 909 1585 </fo:simple-page-master> 910 1586 … … 914 1590 page-height="{$page.height}" 915 1591 margin-top="{$page.margin.top}" 916 margin-bottom="{$page.margin.bottom}" 917 margin-left="{$margin.left.inner}" 918 margin-right="{$page.margin.outer}"> 1592 margin-bottom="{$page.margin.bottom}"> 1593 <xsl:attribute name="margin-{$direction.align.start}"> 1594 <xsl:value-of select="$page.margin.inner"/> 1595 <xsl:if test="$fop.extensions != 0"> 1596 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1597 </xsl:if> 1598 </xsl:attribute> 1599 <xsl:attribute name="margin-{$direction.align.end}"> 1600 <xsl:value-of select="$page.margin.outer"/> 1601 </xsl:attribute> 919 1602 <xsl:if test="$axf.extensions != 0"> 920 1603 <xsl:call-template name="axf-page-master-properties"> … … 926 1609 column-gap="{$column.gap.body}" 927 1610 column-count="{$column.count.body}"> 1611 <xsl:attribute name="margin-{$direction.align.start}"> 1612 <xsl:value-of select="$body.margin.inner"/> 1613 </xsl:attribute> 1614 <xsl:attribute name="margin-{$direction.align.end}"> 1615 <xsl:value-of select="$body.margin.outer"/> 1616 </xsl:attribute> 928 1617 <xsl:if test="$draft.watermark.image != ''"> 929 1618 <xsl:attribute name="background-image"> … … 940 1629 <fo:region-before region-name="xsl-region-before-first" 941 1630 extent="{$region.before.extent}" 1631 precedence="{$region.before.precedence}" 942 1632 display-align="before"/> 943 1633 <fo:region-after region-name="xsl-region-after-first" 944 1634 extent="{$region.after.extent}" 1635 precedence="{$region.after.precedence}" 945 1636 display-align="after"/> 1637 <xsl:call-template name="region.inner"> 1638 <xsl:with-param name="sequence">first</xsl:with-param> 1639 <xsl:with-param name="pageclass">body</xsl:with-param> 1640 </xsl:call-template> 1641 <xsl:call-template name="region.outer"> 1642 <xsl:with-param name="sequence">first</xsl:with-param> 1643 <xsl:with-param name="pageclass">body</xsl:with-param> 1644 </xsl:call-template> 946 1645 </fo:simple-page-master> 947 1646 … … 950 1649 page-height="{$page.height}" 951 1650 margin-top="{$page.margin.top}" 952 margin-bottom="{$page.margin.bottom}" 953 margin-left="{$margin.left.inner}" 954 margin-right="{$page.margin.outer}"> 1651 margin-bottom="{$page.margin.bottom}"> 1652 <xsl:attribute name="margin-{$direction.align.start}"> 1653 <xsl:value-of select="$page.margin.inner"/> 1654 <xsl:if test="$fop.extensions != 0"> 1655 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1656 </xsl:if> 1657 </xsl:attribute> 1658 <xsl:attribute name="margin-{$direction.align.end}"> 1659 <xsl:value-of select="$page.margin.outer"/> 1660 </xsl:attribute> 955 1661 <xsl:if test="$axf.extensions != 0"> 956 1662 <xsl:call-template name="axf-page-master-properties"> … … 962 1668 column-gap="{$column.gap.body}" 963 1669 column-count="{$column.count.body}"> 1670 <xsl:attribute name="margin-{$direction.align.start}"> 1671 <xsl:value-of select="$body.margin.inner"/> 1672 </xsl:attribute> 1673 <xsl:attribute name="margin-{$direction.align.end}"> 1674 <xsl:value-of select="$body.margin.outer"/> 1675 </xsl:attribute> 964 1676 <xsl:if test="$draft.watermark.image != ''"> 965 1677 <xsl:attribute name="background-image"> … … 976 1688 <fo:region-before region-name="xsl-region-before-odd" 977 1689 extent="{$region.before.extent}" 1690 precedence="{$region.before.precedence}" 978 1691 display-align="before"/> 979 1692 <fo:region-after region-name="xsl-region-after-odd" 980 1693 extent="{$region.after.extent}" 1694 precedence="{$region.after.precedence}" 981 1695 display-align="after"/> 1696 <xsl:call-template name="region.inner"> 1697 <xsl:with-param name="sequence">odd</xsl:with-param> 1698 <xsl:with-param name="pageclass">body</xsl:with-param> 1699 </xsl:call-template> 1700 <xsl:call-template name="region.outer"> 1701 <xsl:with-param name="sequence">odd</xsl:with-param> 1702 <xsl:with-param name="pageclass">body</xsl:with-param> 1703 </xsl:call-template> 982 1704 </fo:simple-page-master> 983 1705 … … 986 1708 page-height="{$page.height}" 987 1709 margin-top="{$page.margin.top}" 988 margin-bottom="{$page.margin.bottom}" 989 margin-left="{$margin.left.outer}" 990 margin-right="{$page.margin.inner}"> 1710 margin-bottom="{$page.margin.bottom}"> 1711 <xsl:attribute name="margin-{$direction.align.start}"> 1712 <xsl:value-of select="$page.margin.outer"/> 1713 <xsl:if test="$fop.extensions != 0"> 1714 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1715 </xsl:if> 1716 </xsl:attribute> 1717 <xsl:attribute name="margin-{$direction.align.end}"> 1718 <xsl:value-of select="$page.margin.inner"/> 1719 </xsl:attribute> 991 1720 <xsl:if test="$axf.extensions != 0"> 992 1721 <xsl:call-template name="axf-page-master-properties"> … … 998 1727 column-gap="{$column.gap.body}" 999 1728 column-count="{$column.count.body}"> 1729 <xsl:attribute name="margin-{$direction.align.start}"> 1730 <xsl:value-of select="$body.margin.outer"/> 1731 </xsl:attribute> 1732 <xsl:attribute name="margin-{$direction.align.end}"> 1733 <xsl:value-of select="$body.margin.inner"/> 1734 </xsl:attribute> 1000 1735 <xsl:if test="$draft.watermark.image != ''"> 1001 1736 <xsl:attribute name="background-image"> … … 1012 1747 <fo:region-before region-name="xsl-region-before-even" 1013 1748 extent="{$region.before.extent}" 1749 precedence="{$region.before.precedence}" 1014 1750 display-align="before"/> 1015 1751 <fo:region-after region-name="xsl-region-after-even" 1016 1752 extent="{$region.after.extent}" 1753 precedence="{$region.after.precedence}" 1017 1754 display-align="after"/> 1755 <xsl:call-template name="region.outer"> 1756 <xsl:with-param name="sequence">even</xsl:with-param> 1757 <xsl:with-param name="pageclass">body</xsl:with-param> 1758 </xsl:call-template> 1759 <xsl:call-template name="region.inner"> 1760 <xsl:with-param name="sequence">even</xsl:with-param> 1761 <xsl:with-param name="pageclass">body</xsl:with-param> 1762 </xsl:call-template> 1018 1763 </fo:simple-page-master> 1019 1764 … … 1023 1768 page-height="{$page.height}" 1024 1769 margin-top="{$page.margin.top}" 1025 margin-bottom="{$page.margin.bottom}" 1026 margin-left="{$margin.left.inner}" 1027 margin-right="{$page.margin.outer}"> 1770 margin-bottom="{$page.margin.bottom}"> 1771 <xsl:attribute name="margin-{$direction.align.start}"> 1772 <xsl:value-of select="$page.margin.inner"/> 1773 <xsl:if test="$fop.extensions != 0"> 1774 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1775 </xsl:if> 1776 </xsl:attribute> 1777 <xsl:attribute name="margin-{$direction.align.end}"> 1778 <xsl:value-of select="$page.margin.outer"/> 1779 </xsl:attribute> 1028 1780 <xsl:if test="$axf.extensions != 0"> 1029 1781 <xsl:call-template name="axf-page-master-properties"> … … 1035 1787 column-gap="{$column.gap.back}" 1036 1788 column-count="{$column.count.back}"> 1789 <xsl:attribute name="margin-{$direction.align.start}"> 1790 <xsl:value-of select="$body.margin.inner"/> 1791 </xsl:attribute> 1792 <xsl:attribute name="margin-{$direction.align.end}"> 1793 <xsl:value-of select="$body.margin.outer"/> 1794 </xsl:attribute> 1037 1795 <xsl:if test="$draft.watermark.image != ''"> 1038 1796 <xsl:attribute name="background-image"> … … 1049 1807 <fo:region-before region-name="xsl-region-before-first" 1050 1808 extent="{$region.before.extent}" 1809 precedence="{$region.before.precedence}" 1051 1810 display-align="before"/> 1052 1811 <fo:region-after region-name="xsl-region-after-first" 1053 1812 extent="{$region.after.extent}" 1813 precedence="{$region.after.precedence}" 1054 1814 display-align="after"/> 1815 <xsl:call-template name="region.inner"> 1816 <xsl:with-param name="sequence">first</xsl:with-param> 1817 <xsl:with-param name="pageclass">back</xsl:with-param> 1818 </xsl:call-template> 1819 <xsl:call-template name="region.outer"> 1820 <xsl:with-param name="sequence">first</xsl:with-param> 1821 <xsl:with-param name="pageclass">back</xsl:with-param> 1822 </xsl:call-template> 1055 1823 </fo:simple-page-master> 1056 1824 … … 1059 1827 page-height="{$page.height}" 1060 1828 margin-top="{$page.margin.top}" 1061 margin-bottom="{$page.margin.bottom}" 1062 margin-left="{$margin.left.inner}" 1063 margin-right="{$page.margin.outer}"> 1829 margin-bottom="{$page.margin.bottom}"> 1830 <xsl:attribute name="margin-{$direction.align.start}"> 1831 <xsl:value-of select="$page.margin.inner"/> 1832 <xsl:if test="$fop.extensions != 0"> 1833 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1834 </xsl:if> 1835 </xsl:attribute> 1836 <xsl:attribute name="margin-{$direction.align.end}"> 1837 <xsl:value-of select="$page.margin.outer"/> 1838 </xsl:attribute> 1064 1839 <xsl:if test="$axf.extensions != 0"> 1065 1840 <xsl:call-template name="axf-page-master-properties"> … … 1071 1846 column-gap="{$column.gap.back}" 1072 1847 column-count="{$column.count.back}"> 1848 <xsl:attribute name="margin-{$direction.align.start}"> 1849 <xsl:value-of select="$body.margin.inner"/> 1850 </xsl:attribute> 1851 <xsl:attribute name="margin-{$direction.align.end}"> 1852 <xsl:value-of select="$body.margin.outer"/> 1853 </xsl:attribute> 1073 1854 <xsl:if test="$draft.watermark.image != ''"> 1074 1855 <xsl:attribute name="background-image"> … … 1085 1866 <fo:region-before region-name="xsl-region-before-odd" 1086 1867 extent="{$region.before.extent}" 1868 precedence="{$region.before.precedence}" 1087 1869 display-align="before"/> 1088 1870 <fo:region-after region-name="xsl-region-after-odd" 1089 1871 extent="{$region.after.extent}" 1872 precedence="{$region.after.precedence}" 1090 1873 display-align="after"/> 1874 <xsl:call-template name="region.inner"> 1875 <xsl:with-param name="sequence">odd</xsl:with-param> 1876 <xsl:with-param name="pageclass">back</xsl:with-param> 1877 </xsl:call-template> 1878 <xsl:call-template name="region.outer"> 1879 <xsl:with-param name="sequence">odd</xsl:with-param> 1880 <xsl:with-param name="pageclass">back</xsl:with-param> 1881 </xsl:call-template> 1091 1882 </fo:simple-page-master> 1092 1883 … … 1095 1886 page-height="{$page.height}" 1096 1887 margin-top="{$page.margin.top}" 1097 margin-bottom="{$page.margin.bottom}" 1098 margin-left="{$margin.left.outer}" 1099 margin-right="{$page.margin.inner}"> 1888 margin-bottom="{$page.margin.bottom}"> 1889 <xsl:attribute name="margin-{$direction.align.start}"> 1890 <xsl:value-of select="$page.margin.outer"/> 1891 <xsl:if test="$fop.extensions != 0"> 1892 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1893 </xsl:if> 1894 </xsl:attribute> 1895 <xsl:attribute name="margin-{$direction.align.end}"> 1896 <xsl:value-of select="$page.margin.inner"/> 1897 </xsl:attribute> 1100 1898 <xsl:if test="$axf.extensions != 0"> 1101 1899 <xsl:call-template name="axf-page-master-properties"> … … 1107 1905 column-gap="{$column.gap.back}" 1108 1906 column-count="{$column.count.back}"> 1907 <xsl:attribute name="margin-{$direction.align.start}"> 1908 <xsl:value-of select="$body.margin.outer"/> 1909 </xsl:attribute> 1910 <xsl:attribute name="margin-{$direction.align.end}"> 1911 <xsl:value-of select="$body.margin.inner"/> 1912 </xsl:attribute> 1109 1913 <xsl:if test="$draft.watermark.image != ''"> 1110 1914 <xsl:attribute name="background-image"> … … 1121 1925 <fo:region-before region-name="xsl-region-before-even" 1122 1926 extent="{$region.before.extent}" 1927 precedence="{$region.before.precedence}" 1123 1928 display-align="before"/> 1124 1929 <fo:region-after region-name="xsl-region-after-even" 1125 1930 extent="{$region.after.extent}" 1931 precedence="{$region.after.precedence}" 1126 1932 display-align="after"/> 1933 <xsl:call-template name="region.outer"> 1934 <xsl:with-param name="sequence">even</xsl:with-param> 1935 <xsl:with-param name="pageclass">back</xsl:with-param> 1936 </xsl:call-template> 1937 <xsl:call-template name="region.inner"> 1938 <xsl:with-param name="sequence">even</xsl:with-param> 1939 <xsl:with-param name="pageclass">back</xsl:with-param> 1940 </xsl:call-template> 1127 1941 </fo:simple-page-master> 1128 1942 … … 1132 1946 page-height="{$page.height}" 1133 1947 margin-top="{$page.margin.top}" 1134 margin-bottom="{$page.margin.bottom}" 1135 margin-left="{$page.margin.inner}" 1136 margin-right="{$page.margin.outer}"> 1948 margin-bottom="{$page.margin.bottom}"> 1949 <xsl:attribute name="margin-{$direction.align.start}"> 1950 <xsl:value-of select="$page.margin.inner"/> 1951 <xsl:if test="$fop.extensions != 0"> 1952 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 1953 </xsl:if> 1954 </xsl:attribute> 1955 <xsl:attribute name="margin-{$direction.align.end}"> 1956 <xsl:value-of select="$page.margin.outer"/> 1957 </xsl:attribute> 1137 1958 <xsl:if test="$axf.extensions != 0"> 1138 1959 <xsl:call-template name="axf-page-master-properties"> … … 1144 1965 column-gap="{$column.gap.index}" 1145 1966 column-count="{$column.count.index}"> 1967 <xsl:attribute name="margin-{$direction.align.start}"> 1968 <xsl:value-of select="$body.margin.inner"/> 1969 </xsl:attribute> 1970 <xsl:attribute name="margin-{$direction.align.end}"> 1971 <xsl:value-of select="$body.margin.outer"/> 1972 </xsl:attribute> 1146 1973 <xsl:if test="$draft.watermark.image != ''"> 1147 1974 <xsl:attribute name="background-image"> … … 1158 1985 <fo:region-before region-name="xsl-region-before-first" 1159 1986 extent="{$region.before.extent}" 1987 precedence="{$region.before.precedence}" 1160 1988 display-align="before"/> 1161 1989 <fo:region-after region-name="xsl-region-after-first" 1162 1990 extent="{$region.after.extent}" 1991 precedence="{$region.after.precedence}" 1163 1992 display-align="after"/> 1993 <xsl:call-template name="region.inner"> 1994 <xsl:with-param name="sequence">first</xsl:with-param> 1995 <xsl:with-param name="pageclass">index</xsl:with-param> 1996 </xsl:call-template> 1997 <xsl:call-template name="region.outer"> 1998 <xsl:with-param name="sequence">first</xsl:with-param> 1999 <xsl:with-param name="pageclass">index</xsl:with-param> 2000 </xsl:call-template> 1164 2001 </fo:simple-page-master> 1165 2002 … … 1168 2005 page-height="{$page.height}" 1169 2006 margin-top="{$page.margin.top}" 1170 margin-bottom="{$page.margin.bottom}" 1171 margin-left="{$page.margin.inner}" 1172 margin-right="{$page.margin.outer}"> 2007 margin-bottom="{$page.margin.bottom}"> 2008 <xsl:attribute name="margin-{$direction.align.start}"> 2009 <xsl:value-of select="$page.margin.inner"/> 2010 <xsl:if test="$fop.extensions != 0"> 2011 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 2012 </xsl:if> 2013 </xsl:attribute> 2014 <xsl:attribute name="margin-{$direction.align.end}"> 2015 <xsl:value-of select="$page.margin.outer"/> 2016 </xsl:attribute> 1173 2017 <xsl:if test="$axf.extensions != 0"> 1174 2018 <xsl:call-template name="axf-page-master-properties"> … … 1180 2024 column-gap="{$column.gap.index}" 1181 2025 column-count="{$column.count.index}"> 2026 <xsl:attribute name="margin-{$direction.align.start}"> 2027 <xsl:value-of select="$body.margin.inner"/> 2028 </xsl:attribute> 2029 <xsl:attribute name="margin-{$direction.align.end}"> 2030 <xsl:value-of select="$body.margin.outer"/> 2031 </xsl:attribute> 1182 2032 <xsl:if test="$draft.watermark.image != ''"> 1183 2033 <xsl:attribute name="background-image"> … … 1194 2044 <fo:region-before region-name="xsl-region-before-odd" 1195 2045 extent="{$region.before.extent}" 2046 precedence="{$region.before.precedence}" 1196 2047 display-align="before"/> 1197 2048 <fo:region-after region-name="xsl-region-after-odd" 1198 2049 extent="{$region.after.extent}" 2050 precedence="{$region.after.precedence}" 1199 2051 display-align="after"/> 2052 <xsl:call-template name="region.inner"> 2053 <xsl:with-param name="sequence">odd</xsl:with-param> 2054 <xsl:with-param name="pageclass">index</xsl:with-param> 2055 </xsl:call-template> 2056 <xsl:call-template name="region.outer"> 2057 <xsl:with-param name="sequence">odd</xsl:with-param> 2058 <xsl:with-param name="pageclass">index</xsl:with-param> 2059 </xsl:call-template> 1200 2060 </fo:simple-page-master> 1201 2061 … … 1204 2064 page-height="{$page.height}" 1205 2065 margin-top="{$page.margin.top}" 1206 margin-bottom="{$page.margin.bottom}" 1207 margin-right="{$page.margin.inner}" 1208 margin-left="{$page.margin.outer}"> 2066 margin-bottom="{$page.margin.bottom}"> 2067 <xsl:attribute name="margin-{$direction.align.start}"> 2068 <xsl:value-of select="$page.margin.outer"/> 2069 <xsl:if test="$fop.extensions != 0"> 2070 <xsl:value-of select="concat(' - (',$title.margin.left,')')"/> 2071 </xsl:if> 2072 </xsl:attribute> 2073 <xsl:attribute name="margin-{$direction.align.end}"> 2074 <xsl:value-of select="$page.margin.inner"/> 2075 </xsl:attribute> 1209 2076 <xsl:if test="$axf.extensions != 0"> 1210 2077 <xsl:call-template name="axf-page-master-properties"> … … 1216 2083 column-gap="{$column.gap.index}" 1217 2084 column-count="{$column.count.index}"> 2085 <xsl:attribute name="margin-{$direction.align.start}"> 2086 <xsl:value-of select="$body.margin.outer"/> 2087 </xsl:attribute> 2088 <xsl:attribute name="margin-{$direction.align.end}"> 2089 <xsl:value-of select="$body.margin.inner"/> 2090 </xsl:attribute> 1218 2091 <xsl:if test="$draft.watermark.image != ''"> 1219 2092 <xsl:attribute name="background-image"> … … 1230 2103 <fo:region-before region-name="xsl-region-before-even" 1231 2104 extent="{$region.before.extent}" 2105 precedence="{$region.before.precedence}" 1232 2106 display-align="before"/> 1233 2107 <fo:region-after region-name="xsl-region-after-even" 1234 2108 extent="{$region.after.extent}" 2109 precedence="{$region.after.precedence}" 1235 2110 display-align="after"/> 2111 <xsl:call-template name="region.outer"> 2112 <xsl:with-param name="sequence">even</xsl:with-param> 2113 <xsl:with-param name="pageclass">index</xsl:with-param> 2114 </xsl:call-template> 2115 <xsl:call-template name="region.inner"> 2116 <xsl:with-param name="sequence">even</xsl:with-param> 2117 <xsl:with-param name="pageclass">index</xsl:with-param> 2118 </xsl:call-template> 1236 2119 </fo:simple-page-master> 1237 2120 </xsl:if> … … 1242 2125 <fo:conditional-page-master-reference master-reference="blank" 1243 2126 blank-or-not-blank="blank"/> 1244 <fo:conditional-page-master-reference master-reference="titlepage-first" 1245 page-position="first"/> 2127 <xsl:if test="$force.blank.pages != 0"> 2128 <fo:conditional-page-master-reference master-reference="titlepage-first" 2129 page-position="first"/> 2130 </xsl:if> 1246 2131 <fo:conditional-page-master-reference master-reference="titlepage-odd" 1247 2132 odd-or-even="odd"/> … … 1263 2148 <fo:conditional-page-master-reference master-reference="blank" 1264 2149 blank-or-not-blank="blank"/> 1265 <fo:conditional-page-master-reference master-reference="lot-first" 1266 page-position="first"/> 2150 <xsl:if test="$force.blank.pages != 0"> 2151 <fo:conditional-page-master-reference master-reference="lot-first" 2152 page-position="first"/> 2153 </xsl:if> 1267 2154 <fo:conditional-page-master-reference master-reference="lot-odd" 1268 2155 odd-or-even="odd"/> … … 1284 2171 <fo:conditional-page-master-reference master-reference="blank" 1285 2172 blank-or-not-blank="blank"/> 1286 <fo:conditional-page-master-reference master-reference="front-first" 1287 page-position="first"/> 2173 <xsl:if test="$force.blank.pages != 0"> 2174 <fo:conditional-page-master-reference master-reference="front-first" 2175 page-position="first"/> 2176 </xsl:if> 1288 2177 <fo:conditional-page-master-reference master-reference="front-odd" 1289 2178 odd-or-even="odd"/> … … 1305 2194 <fo:conditional-page-master-reference master-reference="blank" 1306 2195 blank-or-not-blank="blank"/> 1307 <fo:conditional-page-master-reference master-reference="body-first" 1308 page-position="first"/> 2196 <xsl:if test="$force.blank.pages != 0"> 2197 <fo:conditional-page-master-reference master-reference="body-first" 2198 page-position="first"/> 2199 </xsl:if> 1309 2200 <fo:conditional-page-master-reference master-reference="body-odd" 1310 2201 odd-or-even="odd"/> … … 1326 2217 <fo:conditional-page-master-reference master-reference="blank" 1327 2218 blank-or-not-blank="blank"/> 1328 <fo:conditional-page-master-reference master-reference="back-first" 1329 page-position="first"/> 2219 <xsl:if test="$force.blank.pages != 0"> 2220 <fo:conditional-page-master-reference master-reference="back-first" 2221 page-position="first"/> 2222 </xsl:if> 1330 2223 <fo:conditional-page-master-reference master-reference="back-odd" 1331 2224 odd-or-even="odd"/> … … 1347 2240 <fo:conditional-page-master-reference master-reference="blank" 1348 2241 blank-or-not-blank="blank"/> 1349 <fo:conditional-page-master-reference master-reference="index-first" 1350 page-position="first"/> 2242 <xsl:if test="$force.blank.pages != 0"> 2243 <fo:conditional-page-master-reference master-reference="index-first" 2244 page-position="first"/> 2245 </xsl:if> 1351 2246 <fo:conditional-page-master-reference master-reference="index-odd" 1352 2247 odd-or-even="odd"/> … … 1369 2264 <fo:conditional-page-master-reference master-reference="blank-draft" 1370 2265 blank-or-not-blank="blank"/> 1371 <fo:conditional-page-master-reference master-reference="titlepage-first-draft" 1372 page-position="first"/> 2266 <xsl:if test="$force.blank.pages != 0"> 2267 <fo:conditional-page-master-reference master-reference="titlepage-first-draft" 2268 page-position="first"/> 2269 </xsl:if> 1373 2270 <fo:conditional-page-master-reference master-reference="titlepage-odd-draft" 1374 2271 odd-or-even="odd"/> … … 1390 2287 <fo:conditional-page-master-reference master-reference="blank-draft" 1391 2288 blank-or-not-blank="blank"/> 1392 <fo:conditional-page-master-reference master-reference="lot-first-draft" 1393 page-position="first"/> 2289 <xsl:if test="$force.blank.pages != 0"> 2290 <fo:conditional-page-master-reference master-reference="lot-first-draft" 2291 page-position="first"/> 2292 </xsl:if> 1394 2293 <fo:conditional-page-master-reference master-reference="lot-odd-draft" 1395 2294 odd-or-even="odd"/> … … 1411 2310 <fo:conditional-page-master-reference master-reference="blank-draft" 1412 2311 blank-or-not-blank="blank"/> 1413 <fo:conditional-page-master-reference master-reference="front-first-draft" 1414 page-position="first"/> 2312 <xsl:if test="$force.blank.pages != 0"> 2313 <fo:conditional-page-master-reference master-reference="front-first-draft" 2314 page-position="first"/> 2315 </xsl:if> 1415 2316 <fo:conditional-page-master-reference master-reference="front-odd-draft" 1416 2317 odd-or-even="odd"/> … … 1432 2333 <fo:conditional-page-master-reference master-reference="blank-draft" 1433 2334 blank-or-not-blank="blank"/> 1434 <fo:conditional-page-master-reference master-reference="body-first-draft" 1435 page-position="first"/> 2335 <xsl:if test="$force.blank.pages != 0"> 2336 <fo:conditional-page-master-reference master-reference="body-first-draft" 2337 page-position="first"/> 2338 </xsl:if> 1436 2339 <fo:conditional-page-master-reference master-reference="body-odd-draft" 1437 2340 odd-or-even="odd"/> … … 1453 2356 <fo:conditional-page-master-reference master-reference="blank-draft" 1454 2357 blank-or-not-blank="blank"/> 1455 <fo:conditional-page-master-reference master-reference="back-first-draft" 1456 page-position="first"/> 2358 <xsl:if test="$force.blank.pages != 0"> 2359 <fo:conditional-page-master-reference master-reference="back-first-draft" 2360 page-position="first"/> 2361 </xsl:if> 1457 2362 <fo:conditional-page-master-reference master-reference="back-odd-draft" 1458 2363 odd-or-even="odd"/> … … 1474 2379 <fo:conditional-page-master-reference master-reference="blank-draft" 1475 2380 blank-or-not-blank="blank"/> 1476 <fo:conditional-page-master-reference master-reference="index-first-draft" 1477 page-position="first"/> 2381 <xsl:if test="$force.blank.pages != 0"> 2382 <fo:conditional-page-master-reference master-reference="index-first-draft" 2383 page-position="first"/> 2384 </xsl:if> 1478 2385 <fo:conditional-page-master-reference master-reference="index-odd-draft" 1479 2386 odd-or-even="odd"/> … … 1513 2420 <xsl:when test="$pageclass = 'lot'">lot</xsl:when> 1514 2421 <xsl:when test="$element = 'dedication'">front</xsl:when> 2422 <xsl:when test="$element = 'acknowledgements'">front</xsl:when> 1515 2423 <xsl:when test="$element = 'preface'">front</xsl:when> 1516 2424 <xsl:when test="$element = 'appendix'">back</xsl:when> … … 1644 2552 <xsl:call-template name="blank.page.content"/> 1645 2553 </xsl:if> 2554 2555 <xsl:apply-templates select="." mode="region.inner.mode"> 2556 <xsl:with-param name="master-reference" select="$master-reference"/> 2557 <xsl:with-param name="gentext-key" select="$gentext-key"/> 2558 </xsl:apply-templates> 2559 2560 <xsl:apply-templates select="." mode="region.outer.mode"> 2561 <xsl:with-param name="master-reference" select="$master-reference"/> 2562 <xsl:with-param name="gentext-key" select="$gentext-key"/> 2563 </xsl:apply-templates> 2564 1646 2565 </xsl:template> 1647 2566 … … 1660 2579 </xsl:template> 1661 2580 2581 <xsl:template name="running.side.content"> 2582 <xsl:apply-templates select="." mode="region.inner.mode"/> 2583 </xsl:template> 2584 1662 2585 <xsl:template name="header.table"> 1663 2586 <xsl:param name="pageclass" select="''"/> … … 1670 2593 <xsl:choose> 1671 2594 <xsl:when test="$pageclass = 'index'"> 1672 <xsl:attribute name="margin- left">0pt</xsl:attribute>2595 <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute> 1673 2596 </xsl:when> 1674 2597 </xsl:choose> … … 1704 2627 <xsl:with-param name="location">header</xsl:with-param> 1705 2628 <xsl:with-param name="position" select="$column1"/> 2629 <xsl:with-param name="pageclass" select="$pageclass"/> 2630 <xsl:with-param name="sequence" select="$sequence"/> 2631 <xsl:with-param name="gentext-key" select="$gentext-key"/> 1706 2632 </xsl:call-template> 1707 2633 <xsl:text>)</xsl:text> … … 1714 2640 <xsl:with-param name="location">header</xsl:with-param> 1715 2641 <xsl:with-param name="position" select="2"/> 2642 <xsl:with-param name="pageclass" select="$pageclass"/> 2643 <xsl:with-param name="sequence" select="$sequence"/> 2644 <xsl:with-param name="gentext-key" select="$gentext-key"/> 1716 2645 </xsl:call-template> 1717 2646 <xsl:text>)</xsl:text> … … 1724 2653 <xsl:with-param name="location">header</xsl:with-param> 1725 2654 <xsl:with-param name="position" select="$column3"/> 2655 <xsl:with-param name="pageclass" select="$pageclass"/> 2656 <xsl:with-param name="sequence" select="$sequence"/> 2657 <xsl:with-param name="gentext-key" select="$gentext-key"/> 1726 2658 </xsl:call-template> 1727 2659 <xsl:text>)</xsl:text> … … 1734 2666 <xsl:value-of select="$header.table.height"/> 1735 2667 </xsl:attribute> 1736 <fo:table-cell text-align=" left"2668 <fo:table-cell text-align="start" 1737 2669 display-align="before"> 1738 2670 <xsl:if test="$fop.extensions = 0"> … … 1743 2675 <xsl:with-param name="pageclass" select="$pageclass"/> 1744 2676 <xsl:with-param name="sequence" select="$sequence"/> 1745 <xsl:with-param name="position" select=" 'left'"/>2677 <xsl:with-param name="position" select="$direction.align.start"/> 1746 2678 <xsl:with-param name="gentext-key" select="$gentext-key"/> 1747 2679 </xsl:call-template> … … 1771 2703 <xsl:with-param name="pageclass" select="$pageclass"/> 1772 2704 <xsl:with-param name="sequence" select="$sequence"/> 1773 <xsl:with-param name="position" select=" 'right'"/>2705 <xsl:with-param name="position" select="$direction.align.end"/> 1774 2706 <xsl:with-param name="gentext-key" select="$gentext-key"/> 1775 2707 </xsl:call-template> … … 1866 2798 <xsl:param name="location" select="'header'"/> 1867 2799 <xsl:param name="position" select="1"/> 2800 <xsl:param name="pageclass" select="''"/> 2801 <xsl:param name="sequence" select="''"/> 2802 <xsl:param name="gentext-key" select="''"/> 2803 2804 <!-- The location param is either 'header' or 'footer'. 2805 The position param is one of '1', '2', or '3' to indicate 2806 which column of the header or footer table. --> 2807 2808 <!-- The pageclass, sequence, and gentext-key values are passed 2809 from the header.table or footer.table template. They are 2810 not currently used, but are made available here 2811 for customization of this template. --> 1868 2812 1869 2813 <xsl:variable name="width.set"> … … 1995 2939 <xsl:choose> 1996 2940 <xsl:when test="$pageclass = 'index'"> 1997 <xsl:attribute name="margin- left">0pt</xsl:attribute>2941 <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute> 1998 2942 </xsl:when> 1999 2943 </xsl:choose> … … 2028 2972 <xsl:with-param name="location">footer</xsl:with-param> 2029 2973 <xsl:with-param name="position" select="$column1"/> 2974 <xsl:with-param name="pageclass" select="$pageclass"/> 2975 <xsl:with-param name="sequence" select="$sequence"/> 2976 <xsl:with-param name="gentext-key" select="$gentext-key"/> 2030 2977 </xsl:call-template> 2031 2978 <xsl:text>)</xsl:text> … … 2038 2985 <xsl:with-param name="location">footer</xsl:with-param> 2039 2986 <xsl:with-param name="position" select="2"/> 2987 <xsl:with-param name="pageclass" select="$pageclass"/> 2988 <xsl:with-param name="sequence" select="$sequence"/> 2989 <xsl:with-param name="gentext-key" select="$gentext-key"/> 2040 2990 </xsl:call-template> 2041 2991 <xsl:text>)</xsl:text> … … 2048 2998 <xsl:with-param name="location">footer</xsl:with-param> 2049 2999 <xsl:with-param name="position" select="$column3"/> 3000 <xsl:with-param name="pageclass" select="$pageclass"/> 3001 <xsl:with-param name="sequence" select="$sequence"/> 3002 <xsl:with-param name="gentext-key" select="$gentext-key"/> 2050 3003 </xsl:call-template> 2051 3004 <xsl:text>)</xsl:text> … … 2058 3011 <xsl:value-of select="$footer.table.height"/> 2059 3012 </xsl:attribute> 2060 <fo:table-cell text-align=" left"3013 <fo:table-cell text-align="start" 2061 3014 display-align="after"> 2062 3015 <xsl:if test="$fop.extensions = 0"> … … 2067 3020 <xsl:with-param name="pageclass" select="$pageclass"/> 2068 3021 <xsl:with-param name="sequence" select="$sequence"/> 2069 <xsl:with-param name="position" select=" 'left'"/>3022 <xsl:with-param name="position" select="$direction.align.start"/> 2070 3023 <xsl:with-param name="gentext-key" select="$gentext-key"/> 2071 3024 </xsl:call-template> … … 2086 3039 </fo:block> 2087 3040 </fo:table-cell> 2088 <fo:table-cell text-align=" right"3041 <fo:table-cell text-align="end" 2089 3042 display-align="after"> 2090 3043 <xsl:if test="$fop.extensions = 0"> … … 2095 3048 <xsl:with-param name="pageclass" select="$pageclass"/> 2096 3049 <xsl:with-param name="sequence" select="$sequence"/> 2097 <xsl:with-param name="position" select=" 'right'"/>3050 <xsl:with-param name="position" select="$direction.align.end"/> 2098 3051 <xsl:with-param name="gentext-key" select="$gentext-key"/> 2099 3052 </xsl:call-template> … … 2184 3137 2185 3138 <!-- ==================================================================== --> 3139 <xsl:template match="*" mode="region.inner.mode"> 3140 <xsl:param name="master-reference" select="'unknown'"/> 3141 <xsl:param name="gentext-key" select="local-name(.)"/> 3142 3143 <!-- remove -draft from reference --> 3144 <xsl:variable name="pageclass"> 3145 <xsl:choose> 3146 <xsl:when test="contains($master-reference, '-draft')"> 3147 <xsl:value-of select="substring-before($master-reference, '-draft')"/> 3148 </xsl:when> 3149 <xsl:otherwise> 3150 <xsl:value-of select="$master-reference"/> 3151 </xsl:otherwise> 3152 </xsl:choose> 3153 </xsl:variable> 3154 3155 <fo:static-content flow-name="xsl-region-inner-first"> 3156 <xsl:call-template name="inner.region.content"> 3157 <xsl:with-param name="pageclass" select="$pageclass"/> 3158 <xsl:with-param name="sequence" select="'first'"/> 3159 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3160 </xsl:call-template> 3161 </fo:static-content> 3162 3163 <fo:static-content flow-name="xsl-region-inner-odd"> 3164 <xsl:call-template name="inner.region.content"> 3165 <xsl:with-param name="pageclass" select="$pageclass"/> 3166 <xsl:with-param name="sequence" select="'odd'"/> 3167 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3168 </xsl:call-template> 3169 </fo:static-content> 3170 3171 <fo:static-content flow-name="xsl-region-inner-even"> 3172 <xsl:call-template name="inner.region.content"> 3173 <xsl:with-param name="pageclass" select="$pageclass"/> 3174 <xsl:with-param name="sequence" select="'even'"/> 3175 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3176 </xsl:call-template> 3177 </fo:static-content> 3178 3179 <fo:static-content flow-name="xsl-region-inner-blank"> 3180 <xsl:call-template name="inner.region.content"> 3181 <xsl:with-param name="pageclass" select="$pageclass"/> 3182 <xsl:with-param name="sequence" select="'blank'"/> 3183 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3184 </xsl:call-template> 3185 </fo:static-content> 3186 3187 </xsl:template> 3188 3189 <xsl:template match="*" mode="region.outer.mode"> 3190 <xsl:param name="master-reference" select="'unknown'"/> 3191 <xsl:param name="gentext-key" select="local-name(.)"/> 3192 3193 <!-- remove -draft from reference --> 3194 <xsl:variable name="pageclass"> 3195 <xsl:choose> 3196 <xsl:when test="contains($master-reference, '-draft')"> 3197 <xsl:value-of select="substring-before($master-reference, '-draft')"/> 3198 </xsl:when> 3199 <xsl:otherwise> 3200 <xsl:value-of select="$master-reference"/> 3201 </xsl:otherwise> 3202 </xsl:choose> 3203 </xsl:variable> 3204 3205 <fo:static-content flow-name="xsl-region-outer-first"> 3206 <xsl:call-template name="outer.region.content"> 3207 <xsl:with-param name="pageclass" select="$pageclass"/> 3208 <xsl:with-param name="sequence" select="'first'"/> 3209 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3210 </xsl:call-template> 3211 </fo:static-content> 3212 3213 <fo:static-content flow-name="xsl-region-outer-odd"> 3214 <xsl:call-template name="outer.region.content"> 3215 <xsl:with-param name="pageclass" select="$pageclass"/> 3216 <xsl:with-param name="sequence" select="'odd'"/> 3217 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3218 </xsl:call-template> 3219 </fo:static-content> 3220 3221 <fo:static-content flow-name="xsl-region-outer-even"> 3222 <xsl:call-template name="outer.region.content"> 3223 <xsl:with-param name="pageclass" select="$pageclass"/> 3224 <xsl:with-param name="sequence" select="'even'"/> 3225 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3226 </xsl:call-template> 3227 </fo:static-content> 3228 3229 <fo:static-content flow-name="xsl-region-outer-blank"> 3230 <xsl:call-template name="outer.region.content"> 3231 <xsl:with-param name="pageclass" select="$pageclass"/> 3232 <xsl:with-param name="sequence" select="'blank'"/> 3233 <xsl:with-param name="gentext-key" select="$gentext-key"/> 3234 </xsl:call-template> 3235 </fo:static-content> 3236 3237 </xsl:template> 3238 3239 <xsl:template name="inner.region.content"> 3240 <xsl:param name="pageclass" select="''"/> 3241 <xsl:param name="sequence" select="''"/> 3242 <xsl:param name="position" select="''"/> 3243 <xsl:param name="gentext-key" select="''"/> 3244 3245 <!-- pageclass can be front, body, back --> 3246 <!-- sequence can be odd, even, first, blank --> 3247 <!-- position can be left, center, right --> 3248 3249 <!-- Customize to add side region content--> 3250 <fo:block xsl:use-attribute-sets="inner.region.content.properties"> 3251 <!-- Add your content here --> 3252 </fo:block> 3253 </xsl:template> 3254 3255 <xsl:template name="outer.region.content"> 3256 <xsl:param name="pageclass" select="''"/> 3257 <xsl:param name="sequence" select="''"/> 3258 <xsl:param name="position" select="''"/> 3259 <xsl:param name="gentext-key" select="''"/> 3260 3261 <!-- pageclass can be front, body, back --> 3262 <!-- sequence can be odd, even, first, blank --> 3263 <!-- position can be left, center, right --> 3264 3265 <!-- Customize to add side region content--> 3266 <fo:block xsl:use-attribute-sets="outer.region.content.properties"> 3267 <!-- Add your content here --> 3268 </fo:block> 3269 </xsl:template> 3270 3271 <!-- ==================================================================== --> 2186 3272 2187 3273 <xsl:template name="page.number.format"> … … 2191 3277 <xsl:choose> 2192 3278 <xsl:when test="$element = 'toc' and self::book">i</xsl:when> 3279 <xsl:when test="$element = 'set'">i</xsl:when> 3280 <xsl:when test="$element = 'book'">i</xsl:when> 2193 3281 <xsl:when test="$element = 'preface'">i</xsl:when> 2194 3282 <xsl:when test="$element = 'dedication'">i</xsl:when> 3283 <xsl:when test="$element = 'acknowledgements'">i</xsl:when> 2195 3284 <xsl:otherwise>1</xsl:otherwise> 2196 3285 </xsl:choose> … … 2201 3290 <xsl:param name="master-reference" select="''"/> 2202 3291 3292 <xsl:variable name="first"> 3293 <xsl:choose> 3294 <xsl:when test="$force.blank.pages = 0">auto</xsl:when> 3295 <xsl:otherwise>auto-odd</xsl:otherwise> 3296 </xsl:choose> 3297 </xsl:variable> 2203 3298 <!-- Select the first content that the stylesheet places 2204 3299 after the TOC --> … … 2211 3306 self::info or 2212 3307 self::dedication or 3308 self::acknowledgements or 2213 3309 self::preface or 2214 3310 self::toc or … … 2218 3314 <xsl:when test="$double.sided != 0"> 2219 3315 <xsl:choose> 2220 <xsl:when test="$element = 'toc'"> auto-odd</xsl:when>2221 <xsl:when test="$element = 'book'"> 1</xsl:when>3316 <xsl:when test="$element = 'toc'"><xsl:value-of select="$first"/></xsl:when> 3317 <xsl:when test="$element = 'book'"><xsl:value-of select="$first"/></xsl:when> 2222 3318 <!-- preface typically continues TOC roman numerals --> 2223 <!-- Change page.number.format if not-->2224 <xsl:when test="$element = 'preface'"> auto-odd</xsl:when>3319 <!-- If changed to 1 here, then change page.number.format too --> 3320 <xsl:when test="$element = 'preface'"><xsl:value-of select="$first"/></xsl:when> 2225 3321 <xsl:when test="($element = 'dedication' or $element = 'article') 2226 3322 and not(preceding::chapter … … 2233 3329 <xsl:when test="generate-id($first.book.content) = 2234 3330 generate-id(.)">1</xsl:when> 2235 <xsl:otherwise> auto-odd</xsl:otherwise>3331 <xsl:otherwise><xsl:value-of select="$first"/></xsl:otherwise> 2236 3332 </xsl:choose> 2237 3333 </xsl:when> … … 2241 3337 <xsl:choose> 2242 3338 <xsl:when test="$element = 'toc'">auto</xsl:when> 2243 <xsl:when test="$element = 'book'"> 1</xsl:when>3339 <xsl:when test="$element = 'book'">auto</xsl:when> 2244 3340 <xsl:when test="$element = 'preface'">auto</xsl:when> 2245 3341 <xsl:when test="($element = 'dedication' or $element = 'article') and … … 2264 3360 2265 3361 <xsl:choose> 3362 <!-- no automatic even blank pages at end of chapters --> 3363 <xsl:when test="$force.blank.pages = 0">no-force</xsl:when> 2266 3364 <!-- double-sided output --> 2267 3365 <xsl:when test="$double.sided != 0">end-on-even</xsl:when> … … 2291 3389 2292 3390 <xsl:choose> 2293 <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">3391 <xsl:when test="$fop.extensions != 0"> 2294 3392 <!-- body.start.indent does not work well with these processors --> 2295 3393 </xsl:when> … … 2312 3410 <!-- ==================================================================== --> 2313 3411 3412 <!-- Customize this template for custom side regions --> 3413 <xsl:template name="region.inner"> 3414 <xsl:param name="sequence">blank</xsl:param> 3415 <xsl:param name="classname">blank</xsl:param> 3416 3417 <xsl:choose> 3418 <xsl:when test="$sequence = 'first' or $sequence = 'odd'"> 3419 <fo:region-start xsl:use-attribute-sets="region.inner.properties"> 3420 <xsl:attribute name="region-name"> 3421 <xsl:text>xsl-region-inner-</xsl:text> 3422 <xsl:value-of select="$sequence"/> 3423 </xsl:attribute> 3424 <xsl:attribute name="precedence"> 3425 <xsl:value-of select="$region.start.precedence"/> 3426 </xsl:attribute> 3427 <xsl:attribute name="extent"> 3428 <xsl:value-of select="$region.inner.extent"/> 3429 </xsl:attribute> 3430 </fo:region-start> 3431 </xsl:when> 3432 <xsl:otherwise> 3433 <fo:region-end xsl:use-attribute-sets="region.inner.properties"> 3434 <xsl:attribute name="region-name"> 3435 <xsl:text>xsl-region-inner-</xsl:text> 3436 <xsl:value-of select="$sequence"/> 3437 </xsl:attribute> 3438 <xsl:attribute name="precedence"> 3439 <xsl:value-of select="$region.end.precedence"/> 3440 </xsl:attribute> 3441 <xsl:attribute name="extent"> 3442 <xsl:value-of select="$region.inner.extent"/> 3443 </xsl:attribute> 3444 </fo:region-end> 3445 </xsl:otherwise> 3446 </xsl:choose> 3447 </xsl:template> 3448 3449 <!-- Customize this template for custom side regions --> 3450 <xsl:template name="region.outer"> 3451 <xsl:param name="sequence">blank</xsl:param> 3452 <xsl:param name="classname">blank</xsl:param> 3453 3454 <xsl:choose> 3455 <xsl:when test="$sequence = 'first' or $sequence = 'odd'"> 3456 <fo:region-end xsl:use-attribute-sets="region.outer.properties"> 3457 <xsl:attribute name="region-name"> 3458 <xsl:text>xsl-region-outer-</xsl:text> 3459 <xsl:value-of select="$sequence"/> 3460 </xsl:attribute> 3461 <xsl:attribute name="precedence"> 3462 <xsl:value-of select="$region.start.precedence"/> 3463 </xsl:attribute> 3464 <xsl:attribute name="extent"> 3465 <xsl:value-of select="$region.outer.extent"/> 3466 </xsl:attribute> 3467 </fo:region-end> 3468 </xsl:when> 3469 <xsl:otherwise> 3470 <fo:region-start xsl:use-attribute-sets="region.outer.properties"> 3471 <xsl:attribute name="region-name"> 3472 <xsl:text>xsl-region-outer-</xsl:text> 3473 <xsl:value-of select="$sequence"/> 3474 </xsl:attribute> 3475 <xsl:attribute name="precedence"> 3476 <xsl:value-of select="$region.end.precedence"/> 3477 </xsl:attribute> 3478 <xsl:attribute name="extent"> 3479 <xsl:value-of select="$region.outer.extent"/> 3480 </xsl:attribute> 3481 </fo:region-start> 3482 </xsl:otherwise> 3483 </xsl:choose> 3484 </xsl:template> 3485 2314 3486 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.