| 1 |
<?xml version='1.0'?> |
| 2 |
<xsl:stylesheet exclude-result-prefixes="d" |
| 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 4 |
xmlns:d="http://docbook.org/ns/docbook" |
| 5 |
xmlns:fo="http://www.w3.org/1999/XSL/Format" |
| 6 |
version='1.0'> |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
<xsl:attribute-set name="book.titlepage.recto.style"> |
| 19 |
<xsl:attribute name="font-family"> |
| 20 |
<xsl:value-of select="$title.fontset"/> |
| 21 |
</xsl:attribute> |
| 22 |
<xsl:attribute name="font-weight">bold</xsl:attribute> |
| 23 |
<xsl:attribute name="font-size">12pt</xsl:attribute> |
| 24 |
<xsl:attribute name="text-align">center</xsl:attribute> |
| 25 |
</xsl:attribute-set> |
| 26 |
|
| 27 |
<xsl:attribute-set name="book.titlepage.verso.style"> |
| 28 |
<xsl:attribute name="font-size">10pt</xsl:attribute> |
| 29 |
</xsl:attribute-set> |
| 30 |
|
| 31 |
<xsl:attribute-set name="article.titlepage.recto.style"/> |
| 32 |
<xsl:attribute-set name="article.titlepage.verso.style"/> |
| 33 |
|
| 34 |
<xsl:attribute-set name="set.titlepage.recto.style"/> |
| 35 |
<xsl:attribute-set name="set.titlepage.verso.style"/> |
| 36 |
|
| 37 |
<xsl:attribute-set name="part.titlepage.recto.style"> |
| 38 |
<xsl:attribute name="text-align">center</xsl:attribute> |
| 39 |
</xsl:attribute-set> |
| 40 |
|
| 41 |
<xsl:attribute-set name="part.titlepage.verso.style"/> |
| 42 |
|
| 43 |
<xsl:attribute-set name="partintro.titlepage.recto.style"/> |
| 44 |
<xsl:attribute-set name="partintro.titlepage.verso.style"/> |
| 45 |
|
| 46 |
<xsl:attribute-set name="reference.titlepage.recto.style"/> |
| 47 |
<xsl:attribute-set name="reference.titlepage.verso.style"/> |
| 48 |
|
| 49 |
<xsl:attribute-set name="dedication.titlepage.recto.style"/> |
| 50 |
<xsl:attribute-set name="dedication.titlepage.verso.style"/> |
| 51 |
|
| 52 |
<xsl:attribute-set name="acknowledgements.titlepage.recto.style"/> |
| 53 |
<xsl:attribute-set name="acknowledgements.titlepage.verso.style"/> |
| 54 |
|
| 55 |
<xsl:attribute-set name="preface.titlepage.recto.style"/> |
| 56 |
<xsl:attribute-set name="preface.titlepage.verso.style"/> |
| 57 |
|
| 58 |
<xsl:attribute-set name="chapter.titlepage.recto.style"/> |
| 59 |
<xsl:attribute-set name="chapter.titlepage.verso.style"/> |
| 60 |
|
| 61 |
<xsl:attribute-set name="appendix.titlepage.recto.style"/> |
| 62 |
<xsl:attribute-set name="appendix.titlepage.verso.style"/> |
| 63 |
|
| 64 |
<xsl:attribute-set name="bibliography.titlepage.recto.style"/> |
| 65 |
<xsl:attribute-set name="bibliography.titlepage.verso.style"/> |
| 66 |
|
| 67 |
<xsl:attribute-set name="bibliodiv.titlepage.recto.style"/> |
| 68 |
<xsl:attribute-set name="bibliodiv.titlepage.verso.style"/> |
| 69 |
|
| 70 |
<xsl:attribute-set name="glossary.titlepage.recto.style"/> |
| 71 |
<xsl:attribute-set name="glossary.titlepage.verso.style"/> |
| 72 |
|
| 73 |
<xsl:attribute-set name="glossdiv.titlepage.recto.style"/> |
| 74 |
<xsl:attribute-set name="glossdiv.titlepage.verso.style"/> |
| 75 |
|
| 76 |
<xsl:attribute-set name="index.titlepage.recto.style"/> |
| 77 |
<xsl:attribute-set name="index.titlepage.verso.style"/> |
| 78 |
|
| 79 |
<xsl:attribute-set name="setindex.titlepage.recto.style"/> |
| 80 |
<xsl:attribute-set name="setindex.titlepage.verso.style"/> |
| 81 |
|
| 82 |
<xsl:attribute-set name="indexdiv.titlepage.recto.style"/> |
| 83 |
<xsl:attribute-set name="indexdiv.titlepage.verso.style"/> |
| 84 |
|
| 85 |
<xsl:attribute-set name="colophon.titlepage.recto.style"/> |
| 86 |
<xsl:attribute-set name="colophon.titlepage.verso.style"/> |
| 87 |
|
| 88 |
<xsl:attribute-set name="sidebar.titlepage.recto.style"/> |
| 89 |
<xsl:attribute-set name="sidebar.titlepage.verso.style"/> |
| 90 |
|
| 91 |
<xsl:attribute-set name="qandaset.titlepage.recto.style"/> |
| 92 |
<xsl:attribute-set name="qandaset.titlepage.verso.style"/> |
| 93 |
|
| 94 |
<xsl:attribute-set name="section.titlepage.recto.style"> |
| 95 |
<xsl:attribute name="keep-together.within-column">always</xsl:attribute> |
| 96 |
</xsl:attribute-set> |
| 97 |
|
| 98 |
<xsl:attribute-set name="section.titlepage.verso.style"> |
| 99 |
<xsl:attribute name="keep-together.within-column">always</xsl:attribute> |
| 100 |
<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute> |
| 101 |
</xsl:attribute-set> |
| 102 |
|
| 103 |
<xsl:attribute-set name="sect1.titlepage.recto.style" |
| 104 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 105 |
<xsl:attribute-set name="sect1.titlepage.verso.style" |
| 106 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 107 |
|
| 108 |
<xsl:attribute-set name="sect2.titlepage.recto.style" |
| 109 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 110 |
<xsl:attribute-set name="sect2.titlepage.verso.style" |
| 111 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 112 |
|
| 113 |
<xsl:attribute-set name="sect3.titlepage.recto.style" |
| 114 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 115 |
<xsl:attribute-set name="sect3.titlepage.verso.style" |
| 116 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 117 |
|
| 118 |
<xsl:attribute-set name="sect4.titlepage.recto.style" |
| 119 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 120 |
<xsl:attribute-set name="sect4.titlepage.verso.style" |
| 121 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 122 |
|
| 123 |
<xsl:attribute-set name="sect5.titlepage.recto.style" |
| 124 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 125 |
<xsl:attribute-set name="sect5.titlepage.verso.style" |
| 126 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 127 |
|
| 128 |
<xsl:attribute-set name="simplesect.titlepage.recto.style" |
| 129 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 130 |
<xsl:attribute-set name="simplesect.titlepage.verso.style" |
| 131 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 132 |
|
| 133 |
<xsl:attribute-set name="dialogue.titlepage.recto.style"/> |
| 134 |
<xsl:attribute-set name="dialogue.titlepage.verso.style"/> |
| 135 |
<xsl:attribute-set name="drama.titlepage.recto.style"/> |
| 136 |
<xsl:attribute-set name="drama.titlepage.verso.style"/> |
| 137 |
<xsl:attribute-set name="poetry.titlepage.recto.style"/> |
| 138 |
<xsl:attribute-set name="poetry.titlepage.verso.style"/> |
| 139 |
|
| 140 |
<xsl:attribute-set name="topic.titlepage.recto.style"/> |
| 141 |
<xsl:attribute-set name="topic.titlepage.verso.style"/> |
| 142 |
|
| 143 |
<xsl:attribute-set name="refnamediv.titlepage.recto.style" |
| 144 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 145 |
<xsl:attribute-set name="refnamediv.titlepage.verso.style" |
| 146 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 147 |
|
| 148 |
<xsl:attribute-set name="refsynopsisdiv.titlepage.recto.style" |
| 149 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 150 |
<xsl:attribute-set name="refsynopsisdiv.titlepage.verso.style" |
| 151 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 152 |
|
| 153 |
<xsl:attribute-set name="refsection.titlepage.recto.style" |
| 154 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 155 |
<xsl:attribute-set name="refsection.titlepage.verso.style" |
| 156 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 157 |
|
| 158 |
<xsl:attribute-set name="refsect1.titlepage.recto.style" |
| 159 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 160 |
<xsl:attribute-set name="refsect1.titlepage.verso.style" |
| 161 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 162 |
|
| 163 |
<xsl:attribute-set name="refsect2.titlepage.recto.style" |
| 164 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 165 |
<xsl:attribute-set name="refsect2.titlepage.verso.style" |
| 166 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 167 |
|
| 168 |
<xsl:attribute-set name="refsect3.titlepage.recto.style" |
| 169 |
use-attribute-sets="section.titlepage.recto.style"/> |
| 170 |
<xsl:attribute-set name="refsect3.titlepage.verso.style" |
| 171 |
use-attribute-sets="section.titlepage.verso.style"/> |
| 172 |
|
| 173 |
<xsl:attribute-set name="table.of.contents.titlepage.recto.style"/> |
| 174 |
<xsl:attribute-set name="table.of.contents.titlepage.verso.style"/> |
| 175 |
|
| 176 |
<xsl:attribute-set name="list.of.tables.titlepage.recto.style"/> |
| 177 |
<xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/> |
| 178 |
|
| 179 |
<xsl:attribute-set name="list.of.figures.titlepage.recto.style"/> |
| 180 |
<xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/> |
| 181 |
|
| 182 |
<xsl:attribute-set name="list.of.equations.titlepage.recto.style"/> |
| 183 |
<xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/> |
| 184 |
|
| 185 |
<xsl:attribute-set name="list.of.examples.titlepage.recto.style"/> |
| 186 |
<xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/> |
| 187 |
|
| 188 |
<xsl:attribute-set name="list.of.procedures.titlepage.recto.style"/> |
| 189 |
<xsl:attribute-set name="list.of.procedures.contents.titlepage.verso.style"/> |
| 190 |
|
| 191 |
<xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/> |
| 192 |
<xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/> |
| 193 |
|
| 194 |
<xsl:attribute-set name="component.list.of.tables.titlepage.recto.style"/> |
| 195 |
<xsl:attribute-set name="component.list.of.tables.contents.titlepage.verso.style"/> |
| 196 |
|
| 197 |
<xsl:attribute-set name="component.list.of.figures.titlepage.recto.style"/> |
| 198 |
<xsl:attribute-set name="component.list.of.figures.contents.titlepage.verso.style"/> |
| 199 |
|
| 200 |
<xsl:attribute-set name="component.list.of.equations.titlepage.recto.style"/> |
| 201 |
<xsl:attribute-set name="component.list.of.equations.contents.titlepage.verso.style"/> |
| 202 |
|
| 203 |
<xsl:attribute-set name="component.list.of.examples.titlepage.recto.style"/> |
| 204 |
<xsl:attribute-set name="component.list.of.examples.contents.titlepage.verso.style"/> |
| 205 |
|
| 206 |
<xsl:attribute-set name="component.list.of.procedures.titlepage.recto.style"/> |
| 207 |
<xsl:attribute-set name="component.list.of.procedures.contents.titlepage.verso.style"/> |
| 208 |
|
| 209 |
<xsl:attribute-set name="component.list.of.unknowns.titlepage.recto.style"/> |
| 210 |
<xsl:attribute-set name="component.list.of.unknowns.contents.titlepage.verso.style"/> |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
<xsl:template match="*" mode="titlepage.mode"> |
| 215 |
|
| 216 |
<xsl:apply-templates select="."/> |
| 217 |
</xsl:template> |
| 218 |
|
| 219 |
<xsl:template match="d:abbrev" mode="titlepage.mode"> |
| 220 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 221 |
</xsl:template> |
| 222 |
|
| 223 |
<xsl:template match="d:abstract" mode="titlepage.mode"> |
| 224 |
<fo:block xsl:use-attribute-sets="abstract.properties"> |
| 225 |
<fo:block xsl:use-attribute-sets="abstract.title.properties"> |
| 226 |
<xsl:choose> |
| 227 |
<xsl:when test="d:title|d:info/d:title"> |
| 228 |
<xsl:apply-templates select="d:title|d:info/d:title"/> |
| 229 |
</xsl:when> |
| 230 |
<xsl:otherwise> |
| 231 |
<xsl:call-template name="gentext"> |
| 232 |
<xsl:with-param name="key" select="'Abstract'"/> |
| 233 |
</xsl:call-template> |
| 234 |
</xsl:otherwise> |
| 235 |
</xsl:choose> |
| 236 |
</fo:block> |
| 237 |
<xsl:apply-templates select="*[not(self::d:title)]" mode="titlepage.mode"/> |
| 238 |
</fo:block> |
| 239 |
</xsl:template> |
| 240 |
|
| 241 |
<xsl:template match="d:abstract/d:title" mode="titlepage.mode"/> |
| 242 |
|
| 243 |
<xsl:template match="d:abstract/d:title" mode="titlepage.abstract.title.mode"> |
| 244 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 245 |
</xsl:template> |
| 246 |
|
| 247 |
<xsl:template match="d:address" mode="titlepage.mode"> |
| 248 |
|
| 249 |
<xsl:apply-templates select="."/> |
| 250 |
</xsl:template> |
| 251 |
|
| 252 |
<xsl:template match="d:affiliation" mode="titlepage.mode"> |
| 253 |
<fo:block> |
| 254 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 255 |
</fo:block> |
| 256 |
</xsl:template> |
| 257 |
|
| 258 |
<xsl:template match="d:artpagenums" mode="titlepage.mode"> |
| 259 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 260 |
</xsl:template> |
| 261 |
|
| 262 |
<xsl:template match="d:author" mode="titlepage.mode"> |
| 263 |
<fo:block> |
| 264 |
<xsl:call-template name="anchor"/> |
| 265 |
<xsl:choose> |
| 266 |
<xsl:when test="d:orgname"> |
| 267 |
<xsl:apply-templates/> |
| 268 |
</xsl:when> |
| 269 |
<xsl:otherwise> |
| 270 |
<xsl:call-template name="person.name"/> |
| 271 |
<xsl:if test="d:affiliation/d:orgname"> |
| 272 |
<xsl:text>, </xsl:text> |
| 273 |
<xsl:apply-templates select="d:affiliation/d:orgname" mode="titlepage.mode"/> |
| 274 |
</xsl:if> |
| 275 |
<xsl:if test="d:email|d:affiliation/d:address/d:email"> |
| 276 |
<xsl:text> </xsl:text> |
| 277 |
<xsl:apply-templates select="(d:email|d:affiliation/d:address/d:email)[1]"/> |
| 278 |
</xsl:if> |
| 279 |
</xsl:otherwise> |
| 280 |
</xsl:choose> |
| 281 |
</fo:block> |
| 282 |
</xsl:template> |
| 283 |
|
| 284 |
<xsl:template match="d:authorblurb" mode="titlepage.mode"> |
| 285 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 286 |
</xsl:template> |
| 287 |
|
| 288 |
<xsl:template match="d:authorgroup" mode="titlepage.mode"> |
| 289 |
<fo:wrapper> |
| 290 |
<xsl:call-template name="anchor"/> |
| 291 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 292 |
</fo:wrapper> |
| 293 |
</xsl:template> |
| 294 |
|
| 295 |
<xsl:template match="d:authorinitials" mode="titlepage.mode"> |
| 296 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 297 |
</xsl:template> |
| 298 |
|
| 299 |
<xsl:template match="d:bibliomisc" mode="titlepage.mode"> |
| 300 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 301 |
</xsl:template> |
| 302 |
|
| 303 |
<xsl:template match="d:bibliomset" mode="titlepage.mode"> |
| 304 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 305 |
</xsl:template> |
| 306 |
|
| 307 |
<xsl:template match="d:collab" mode="titlepage.mode"> |
| 308 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 309 |
</xsl:template> |
| 310 |
|
| 311 |
<xsl:template match="d:collabname" mode="titlepage.mode"> |
| 312 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 313 |
</xsl:template> |
| 314 |
|
| 315 |
<xsl:template match="d:confgroup" mode="titlepage.mode"> |
| 316 |
<fo:block> |
| 317 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 318 |
</fo:block> |
| 319 |
</xsl:template> |
| 320 |
|
| 321 |
<xsl:template match="d:confdates" mode="titlepage.mode"> |
| 322 |
<fo:block> |
| 323 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 324 |
</fo:block> |
| 325 |
</xsl:template> |
| 326 |
|
| 327 |
<xsl:template match="d:conftitle" mode="titlepage.mode"> |
| 328 |
<fo:block> |
| 329 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 330 |
</fo:block> |
| 331 |
</xsl:template> |
| 332 |
|
| 333 |
<xsl:template match="d:confnum" mode="titlepage.mode"> |
| 334 |
|
| 335 |
</xsl:template> |
| 336 |
|
| 337 |
<xsl:template match="d:contractnum" mode="titlepage.mode"> |
| 338 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 339 |
</xsl:template> |
| 340 |
|
| 341 |
<xsl:template match="d:contractsponsor" mode="titlepage.mode"> |
| 342 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 343 |
</xsl:template> |
| 344 |
|
| 345 |
<xsl:template match="d:contrib" mode="titlepage.mode"> |
| 346 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 347 |
</xsl:template> |
| 348 |
|
| 349 |
<xsl:template match="d:copyright" mode="titlepage.mode"> |
| 350 |
<xsl:call-template name="gentext"> |
| 351 |
<xsl:with-param name="key" select="'Copyright'"/> |
| 352 |
</xsl:call-template> |
| 353 |
<xsl:call-template name="gentext.space"/> |
| 354 |
<xsl:call-template name="dingbat"> |
| 355 |
<xsl:with-param name="dingbat">copyright</xsl:with-param> |
| 356 |
</xsl:call-template> |
| 357 |
<xsl:call-template name="gentext.space"/> |
| 358 |
<xsl:call-template name="copyright.years"> |
| 359 |
<xsl:with-param name="years" select="d:year"/> |
| 360 |
<xsl:with-param name="print.ranges" select="$make.year.ranges"/> |
| 361 |
<xsl:with-param name="single.year.ranges" |
| 362 |
select="$make.single.year.ranges"/> |
| 363 |
</xsl:call-template> |
| 364 |
<xsl:call-template name="gentext.space"/> |
| 365 |
<xsl:apply-templates select="d:holder" mode="titlepage.mode"/> |
| 366 |
</xsl:template> |
| 367 |
|
| 368 |
<xsl:template match="d:year" mode="titlepage.mode"> |
| 369 |
<xsl:apply-templates/> |
| 370 |
</xsl:template> |
| 371 |
|
| 372 |
<xsl:template match="d:holder" mode="titlepage.mode"> |
| 373 |
<xsl:apply-templates/> |
| 374 |
<xsl:if test="position() < last()"> |
| 375 |
<xsl:text>, </xsl:text> |
| 376 |
</xsl:if> |
| 377 |
</xsl:template> |
| 378 |
|
| 379 |
<xsl:template match="d:corpauthor" mode="titlepage.mode"> |
| 380 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 381 |
</xsl:template> |
| 382 |
|
| 383 |
<xsl:template match="d:corpcredit" mode="titlepage.mode"> |
| 384 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 385 |
</xsl:template> |
| 386 |
|
| 387 |
<xsl:template match="d:corpname" mode="titlepage.mode"> |
| 388 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 389 |
</xsl:template> |
| 390 |
|
| 391 |
<xsl:template match="d:date" mode="titlepage.mode"> |
| 392 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 393 |
</xsl:template> |
| 394 |
|
| 395 |
<xsl:template match="d:edition" mode="titlepage.mode"> |
| 396 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 397 |
<xsl:call-template name="gentext.space"/> |
| 398 |
<xsl:call-template name="gentext"> |
| 399 |
<xsl:with-param name="key" select="'Edition'"/> |
| 400 |
</xsl:call-template> |
| 401 |
</xsl:template> |
| 402 |
|
| 403 |
<xsl:template match="d:editor" mode="titlepage.mode"> |
| 404 |
|
| 405 |
|
| 406 |
</xsl:template> |
| 407 |
|
| 408 |
<xsl:template match="d:editor[1]" priority="2" mode="titlepage.mode"> |
| 409 |
<xsl:call-template name="gentext.edited.by"/> |
| 410 |
<xsl:call-template name="gentext.space"/> |
| 411 |
<xsl:call-template name="person.name.list"> |
| 412 |
<xsl:with-param name="person.list" select="../d:editor"/> |
| 413 |
</xsl:call-template> |
| 414 |
</xsl:template> |
| 415 |
|
| 416 |
<xsl:template match="d:firstname" mode="titlepage.mode"> |
| 417 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 418 |
</xsl:template> |
| 419 |
|
| 420 |
<xsl:template match="d:graphic" mode="titlepage.mode"> |
| 421 |
|
| 422 |
<xsl:apply-templates select="."/> |
| 423 |
</xsl:template> |
| 424 |
|
| 425 |
<xsl:template match="d:honorific" mode="titlepage.mode"> |
| 426 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 427 |
</xsl:template> |
| 428 |
|
| 429 |
<xsl:template match="d:isbn" mode="titlepage.mode"> |
| 430 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 431 |
</xsl:template> |
| 432 |
|
| 433 |
<xsl:template match="d:issn" mode="titlepage.mode"> |
| 434 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 435 |
</xsl:template> |
| 436 |
|
| 437 |
<xsl:template match="d:biblioid" mode="titlepage.mode"> |
| 438 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 439 |
</xsl:template> |
| 440 |
|
| 441 |
<xsl:template match="d:itermset" mode="titlepage.mode"> |
| 442 |
<xsl:apply-templates select="d:indexterm"/> |
| 443 |
</xsl:template> |
| 444 |
|
| 445 |
<xsl:template match="d:invpartnumber" mode="titlepage.mode"> |
| 446 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 447 |
</xsl:template> |
| 448 |
|
| 449 |
<xsl:template match="d:issuenum" mode="titlepage.mode"> |
| 450 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 451 |
</xsl:template> |
| 452 |
|
| 453 |
<xsl:template match="d:jobtitle" mode="titlepage.mode"> |
| 454 |
<fo:block> |
| 455 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 456 |
</fo:block> |
| 457 |
</xsl:template> |
| 458 |
|
| 459 |
<xsl:template match="d:keywordset" mode="titlepage.mode"> |
| 460 |
</xsl:template> |
| 461 |
|
| 462 |
<xsl:template match="d:legalnotice" mode="titlepage.mode"> |
| 463 |
|
| 464 |
<xsl:variable name="id"> |
| 465 |
<xsl:call-template name="object.id"/> |
| 466 |
</xsl:variable> |
| 467 |
|
| 468 |
<fo:block id="{$id}"> |
| 469 |
<xsl:if test="d:title"> |
| 470 |
<xsl:call-template name="formal.object.heading"/> |
| 471 |
</xsl:if> |
| 472 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 473 |
</fo:block> |
| 474 |
</xsl:template> |
| 475 |
|
| 476 |
<xsl:template match="d:legalnotice/d:title" mode="titlepage.mode"> |
| 477 |
</xsl:template> |
| 478 |
|
| 479 |
<xsl:template match="d:lineage" mode="titlepage.mode"> |
| 480 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 481 |
</xsl:template> |
| 482 |
|
| 483 |
<xsl:template match="d:modespec" mode="titlepage.mode"> |
| 484 |
|
| 485 |
</xsl:template> |
| 486 |
|
| 487 |
<xsl:template match="d:orgdiv" mode="titlepage.mode"> |
| 488 |
<xsl:if test="preceding-sibling::*[1][self::d:orgname]"> |
| 489 |
<xsl:text> </xsl:text> |
| 490 |
</xsl:if> |
| 491 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 492 |
</xsl:template> |
| 493 |
|
| 494 |
<xsl:template match="d:orgname" mode="titlepage.mode"> |
| 495 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 496 |
</xsl:template> |
| 497 |
|
| 498 |
<xsl:template match="d:othercredit" mode="titlepage.mode"> |
| 499 |
<xsl:variable name="contrib" select="string(d:contrib)"/> |
| 500 |
<xsl:choose> |
| 501 |
<xsl:when test="d:contrib"> |
| 502 |
<xsl:if test="not(preceding-sibling::d:othercredit[string(d:contrib)=$contrib])"> |
| 503 |
<fo:block> |
| 504 |
<xsl:apply-templates mode="titlepage.mode" select="d:contrib"/> |
| 505 |
<xsl:text>: </xsl:text> |
| 506 |
<xsl:call-template name="person.name"/> |
| 507 |
<xsl:apply-templates mode="titlepage.mode" select="d:affiliation"/> |
| 508 |
<xsl:apply-templates select="following-sibling::d:othercredit[string(d:contrib)=$contrib]" mode="titlepage.othercredits"/> |
| 509 |
</fo:block> |
| 510 |
</xsl:if> |
| 511 |
</xsl:when> |
| 512 |
<xsl:otherwise> |
| 513 |
<fo:block><xsl:call-template name="person.name"/></fo:block> |
| 514 |
<xsl:apply-templates mode="titlepage.mode" select="./d:affiliation"/> |
| 515 |
</xsl:otherwise> |
| 516 |
</xsl:choose> |
| 517 |
</xsl:template> |
| 518 |
|
| 519 |
<xsl:template match="d:othercredit" mode="titlepage.othercredits"> |
| 520 |
<xsl:text>, </xsl:text> |
| 521 |
<xsl:call-template name="person.name"/> |
| 522 |
</xsl:template> |
| 523 |
|
| 524 |
<xsl:template match="d:othername" mode="titlepage.mode"> |
| 525 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 526 |
</xsl:template> |
| 527 |
|
| 528 |
<xsl:template match="d:pagenums" mode="titlepage.mode"> |
| 529 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 530 |
</xsl:template> |
| 531 |
|
| 532 |
<xsl:template match="d:printhistory" mode="titlepage.mode"> |
| 533 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 534 |
</xsl:template> |
| 535 |
|
| 536 |
<xsl:template match="d:productname" mode="titlepage.mode"> |
| 537 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 538 |
</xsl:template> |
| 539 |
|
| 540 |
<xsl:template match="d:productnumber" mode="titlepage.mode"> |
| 541 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 542 |
</xsl:template> |
| 543 |
|
| 544 |
<xsl:template match="d:pubdate" mode="titlepage.mode"> |
| 545 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 546 |
</xsl:template> |
| 547 |
|
| 548 |
<xsl:template match="d:publisher" mode="titlepage.mode"> |
| 549 |
<fo:block> |
| 550 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 551 |
</fo:block> |
| 552 |
</xsl:template> |
| 553 |
|
| 554 |
<xsl:template match="d:publishername" mode="titlepage.mode"> |
| 555 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 556 |
</xsl:template> |
| 557 |
|
| 558 |
<xsl:template match="d:pubsnumber" mode="titlepage.mode"> |
| 559 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 560 |
</xsl:template> |
| 561 |
|
| 562 |
<xsl:template match="d:releaseinfo" mode="titlepage.mode"> |
| 563 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 564 |
</xsl:template> |
| 565 |
|
| 566 |
<xsl:template match="d:revhistory" mode="titlepage.mode"> |
| 567 |
|
| 568 |
<xsl:variable name="explicit.table.width"> |
| 569 |
<xsl:call-template name="pi.dbfo_table-width"/> |
| 570 |
</xsl:variable> |
| 571 |
|
| 572 |
<xsl:variable name="table.width"> |
| 573 |
<xsl:choose> |
| 574 |
<xsl:when test="$explicit.table.width != ''"> |
| 575 |
<xsl:value-of select="$explicit.table.width"/> |
| 576 |
</xsl:when> |
| 577 |
<xsl:when test="$default.table.width = ''"> |
| 578 |
<xsl:text>100%</xsl:text> |
| 579 |
</xsl:when> |
| 580 |
<xsl:otherwise> |
| 581 |
<xsl:value-of select="$default.table.width"/> |
| 582 |
</xsl:otherwise> |
| 583 |
</xsl:choose> |
| 584 |
</xsl:variable> |
| 585 |
|
| 586 |
<fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties"> |
| 587 |
<fo:table-column column-number="1" column-width="proportional-column-width(1)"/> |
| 588 |
<fo:table-column column-number="2" column-width="proportional-column-width(1)"/> |
| 589 |
<fo:table-column column-number="3" column-width="proportional-column-width(1)"/> |
| 590 |
<fo:table-body start-indent="0pt" end-indent="0pt"> |
| 591 |
<fo:table-row> |
| 592 |
<fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties"> |
| 593 |
<fo:block xsl:use-attribute-sets="revhistory.title.properties"> |
| 594 |
<xsl:choose> |
| 595 |
<xsl:when test="d:title|d:info/d:title"> |
| 596 |
<xsl:apply-templates select="d:title|d:info/d:title" mode="titlepage.mode"/> |
| 597 |
</xsl:when> |
| 598 |
<xsl:otherwise> |
| 599 |
<xsl:call-template name="gentext"> |
| 600 |
<xsl:with-param name="key" select="'RevHistory'"/> |
| 601 |
</xsl:call-template> |
| 602 |
</xsl:otherwise> |
| 603 |
</xsl:choose> |
| 604 |
</fo:block> |
| 605 |
</fo:table-cell> |
| 606 |
</fo:table-row> |
| 607 |
<xsl:apply-templates select="*[not(self::d:title)]" mode="titlepage.mode"/> |
| 608 |
</fo:table-body> |
| 609 |
</fo:table> |
| 610 |
|
| 611 |
</xsl:template> |
| 612 |
|
| 613 |
|
| 614 |
<xsl:template match="d:revhistory/d:revision" mode="titlepage.mode"> |
| 615 |
<xsl:variable name="revnumber" select="d:revnumber"/> |
| 616 |
<xsl:variable name="revdate" select="d:date"/> |
| 617 |
<xsl:variable name="revauthor" select="d:authorinitials|d:author"/> |
| 618 |
<xsl:variable name="revremark" select="d:revremark|d:revdescription"/> |
| 619 |
<fo:table-row> |
| 620 |
<fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties"> |
| 621 |
<fo:block> |
| 622 |
<xsl:if test="$revnumber"> |
| 623 |
<xsl:call-template name="gentext"> |
| 624 |
<xsl:with-param name="key" select="'Revision'"/> |
| 625 |
</xsl:call-template> |
| 626 |
<xsl:call-template name="gentext.space"/> |
| 627 |
<xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/> |
| 628 |
</xsl:if> |
| 629 |
</fo:block> |
| 630 |
</fo:table-cell> |
| 631 |
<fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties"> |
| 632 |
<fo:block> |
| 633 |
<xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/> |
| 634 |
</fo:block> |
| 635 |
</fo:table-cell> |
| 636 |
<fo:table-cell xsl:use-attribute-sets="revhistory.table.cell.properties"> |
| 637 |
<fo:block> |
| 638 |
<xsl:for-each select="$revauthor"> |
| 639 |
<xsl:apply-templates select="." mode="titlepage.mode"/> |
| 640 |
<xsl:if test="position() != last()"> |
| 641 |
<xsl:text>, </xsl:text> |
| 642 |
</xsl:if> |
| 643 |
</xsl:for-each> |
| 644 |
</fo:block> |
| 645 |
</fo:table-cell> |
| 646 |
</fo:table-row> |
| 647 |
<xsl:if test="$revremark"> |
| 648 |
<fo:table-row> |
| 649 |
<fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties"> |
| 650 |
<fo:block> |
| 651 |
<xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/> |
| 652 |
</fo:block> |
| 653 |
</fo:table-cell> |
| 654 |
</fo:table-row> |
| 655 |
</xsl:if> |
| 656 |
</xsl:template> |
| 657 |
|
| 658 |
<xsl:template match="d:revision/d:revnumber" mode="titlepage.mode"> |
| 659 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 660 |
</xsl:template> |
| 661 |
|
| 662 |
<xsl:template match="d:revision/d:date" mode="titlepage.mode"> |
| 663 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 664 |
</xsl:template> |
| 665 |
|
| 666 |
<xsl:template match="d:revision/d:authorinitials" mode="titlepage.mode"> |
| 667 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 668 |
</xsl:template> |
| 669 |
|
| 670 |
<xsl:template match="d:revision/d:author" mode="titlepage.mode"> |
| 671 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 672 |
</xsl:template> |
| 673 |
|
| 674 |
<xsl:template match="d:revision/d:revremark" mode="titlepage.mode"> |
| 675 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 676 |
</xsl:template> |
| 677 |
|
| 678 |
<xsl:template match="d:revision/d:revdescription" mode="titlepage.mode"> |
| 679 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 680 |
</xsl:template> |
| 681 |
|
| 682 |
<xsl:template match="d:seriesvolnums" mode="titlepage.mode"> |
| 683 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 684 |
</xsl:template> |
| 685 |
|
| 686 |
<xsl:template match="d:shortaffil" mode="titlepage.mode"> |
| 687 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 688 |
</xsl:template> |
| 689 |
|
| 690 |
<xsl:template match="d:subjectset" mode="titlepage.mode"> |
| 691 |
|
| 692 |
</xsl:template> |
| 693 |
|
| 694 |
<xsl:template match="d:subtitle" mode="titlepage.mode"> |
| 695 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 696 |
</xsl:template> |
| 697 |
|
| 698 |
<xsl:template match="d:surname" mode="titlepage.mode"> |
| 699 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 700 |
</xsl:template> |
| 701 |
|
| 702 |
<xsl:template match="d:title" mode="titlepage.mode"> |
| 703 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 704 |
</xsl:template> |
| 705 |
|
| 706 |
<xsl:template match="d:titleabbrev" mode="titlepage.mode"> |
| 707 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 708 |
</xsl:template> |
| 709 |
|
| 710 |
<xsl:template match="d:volumenum" mode="titlepage.mode"> |
| 711 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 712 |
</xsl:template> |
| 713 |
|
| 714 |
|
| 715 |
|
| 716 |
|
| 717 |
|
| 718 |
|
| 719 |
|
| 720 |
|
| 721 |
|
| 722 |
|
| 723 |
<xsl:template match="d:bookinfo/d:authorgroup|d:book/d:info/d:authorgroup" |
| 724 |
mode="titlepage.mode" priority="2"> |
| 725 |
<fo:block> |
| 726 |
<xsl:call-template name="anchor"/> |
| 727 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 728 |
</fo:block> |
| 729 |
</xsl:template> |
| 730 |
|
| 731 |
|
| 732 |
|
| 733 |
<xsl:template name="book.verso.title"> |
| 734 |
<fo:block> |
| 735 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 736 |
|
| 737 |
<xsl:if test="following-sibling::d:subtitle |
| 738 |
|following-sibling::d:info/d:subtitle |
| 739 |
|following-sibling::d:bookinfo/d:subtitle"> |
| 740 |
<xsl:text>: </xsl:text> |
| 741 |
|
| 742 |
<xsl:apply-templates select="(following-sibling::d:subtitle |
| 743 |
|following-sibling::d:info/d:subtitle |
| 744 |
|following-sibling::d:bookinfo/d:subtitle)[1]" |
| 745 |
mode="book.verso.subtitle.mode"/> |
| 746 |
</xsl:if> |
| 747 |
</fo:block> |
| 748 |
</xsl:template> |
| 749 |
|
| 750 |
<xsl:template match="d:subtitle" mode="book.verso.subtitle.mode"> |
| 751 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 752 |
<xsl:if test="following-sibling::d:subtitle"> |
| 753 |
<xsl:text>: </xsl:text> |
| 754 |
<xsl:apply-templates select="following-sibling::d:subtitle[1]" |
| 755 |
mode="book.verso.subtitle.mode"/> |
| 756 |
</xsl:if> |
| 757 |
</xsl:template> |
| 758 |
|
| 759 |
<xsl:template name="verso.authorgroup"> |
| 760 |
<fo:block> |
| 761 |
<xsl:call-template name="gentext"> |
| 762 |
<xsl:with-param name="key" select="'by'"/> |
| 763 |
</xsl:call-template> |
| 764 |
<xsl:text> </xsl:text> |
| 765 |
<xsl:call-template name="person.name.list"> |
| 766 |
<xsl:with-param name="person.list" select="d:author|d:corpauthor|d:editor"/> |
| 767 |
</xsl:call-template> |
| 768 |
</fo:block> |
| 769 |
<xsl:apply-templates select="d:othercredit" mode="titlepage.mode"/> |
| 770 |
</xsl:template> |
| 771 |
|
| 772 |
<xsl:template match="d:bookinfo/d:author|d:book/d:info/d:author" |
| 773 |
mode="titlepage.mode" priority="2"> |
| 774 |
<fo:block> |
| 775 |
<xsl:call-template name="person.name"/> |
| 776 |
</fo:block> |
| 777 |
</xsl:template> |
| 778 |
|
| 779 |
<xsl:template match="d:bookinfo/d:corpauthor|d:book/d:info/d:corpauthor" |
| 780 |
mode="titlepage.mode" priority="2"> |
| 781 |
<fo:block> |
| 782 |
<xsl:apply-templates/> |
| 783 |
</fo:block> |
| 784 |
</xsl:template> |
| 785 |
|
| 786 |
<xsl:template match="d:bookinfo/d:pubdate|d:book/d:info/d:pubdate" |
| 787 |
mode="titlepage.mode" priority="2"> |
| 788 |
<fo:block> |
| 789 |
<xsl:call-template name="gentext"> |
| 790 |
<xsl:with-param name="key" select="'pubdate'"/> |
| 791 |
</xsl:call-template> |
| 792 |
<xsl:text> </xsl:text> |
| 793 |
<xsl:apply-templates mode="titlepage.mode"/> |
| 794 |
</fo:block> |
| 795 |
</xsl:template> |
| 796 |
|
| 797 |
|
| 798 |
|
| 799 |
</xsl:stylesheet> |