Changeset 15c7d39 for stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/block.xsl
- Timestamp:
- 10/08/2013 08:03:29 PM (11 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 58675ce
- Parents:
- 09a35dd
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/block.xsl
r09a35dd r15c7d39 5 5 6 6 <!-- ******************************************************************** 7 $Id $7 $Id: block.xsl 9389 2012-06-02 19:02:39Z bobstayton $ 8 8 ******************************************************************** 9 9 … … 15 15 16 16 <!-- ==================================================================== --> 17 <!-- What should we do about styling blockinfo? -->18 17 19 18 <xsl:template match="blockinfo|info"> … … 24 23 25 24 <xsl:template name="block.object"> 25 <xsl:variable name="keep.together"> 26 <xsl:call-template name="pi.dbfo_keep-together"/> 27 </xsl:variable> 26 28 <fo:block> 29 <xsl:if test="$keep.together != ''"> 30 <xsl:attribute name="keep-together.within-column"><xsl:value-of 31 select="$keep.together"/></xsl:attribute> 32 </xsl:if> 27 33 <xsl:call-template name="anchor"/> 28 34 <xsl:apply-templates/> … … 33 39 34 40 <xsl:template match="para"> 41 <xsl:variable name="keep.together"> 42 <xsl:call-template name="pi.dbfo_keep-together"/> 43 </xsl:variable> 44 <fo:block xsl:use-attribute-sets="para.properties"> 45 <xsl:if test="$keep.together != ''"> 46 <xsl:attribute name="keep-together.within-column"><xsl:value-of 47 select="$keep.together"/></xsl:attribute> 48 </xsl:if> 49 <xsl:call-template name="anchor"/> 50 <xsl:apply-templates/> 51 </fo:block> 52 </xsl:template> 53 54 <xsl:template match="simpara"> 55 <xsl:variable name="keep.together"> 56 <xsl:call-template name="pi.dbfo_keep-together"/> 57 </xsl:variable> 35 58 <fo:block xsl:use-attribute-sets="normal.para.spacing"> 36 <xsl:call-template name="anchor"/> 37 <xsl:apply-templates/> 38 </fo:block> 39 </xsl:template> 40 41 <xsl:template match="simpara"> 59 <xsl:if test="$keep.together != ''"> 60 <xsl:attribute name="keep-together.within-column"><xsl:value-of 61 select="$keep.together"/></xsl:attribute> 62 </xsl:if> 63 <xsl:call-template name="anchor"/> 64 <xsl:apply-templates/> 65 </fo:block> 66 </xsl:template> 67 68 <xsl:template match="formalpara"> 69 <xsl:variable name="keep.together"> 70 <xsl:call-template name="pi.dbfo_keep-together"/> 71 </xsl:variable> 42 72 <fo:block xsl:use-attribute-sets="normal.para.spacing"> 43 <xsl:call-template name="anchor"/> 44 <xsl:apply-templates/> 45 </fo:block> 46 </xsl:template> 47 48 <xsl:template match="formalpara"> 49 <fo:block xsl:use-attribute-sets="normal.para.spacing"> 73 <xsl:if test="$keep.together != ''"> 74 <xsl:attribute name="keep-together.within-column"><xsl:value-of 75 select="$keep.together"/></xsl:attribute> 76 </xsl:if> 50 77 <xsl:call-template name="anchor"/> 51 78 <xsl:apply-templates/> … … 87 114 88 115 <xsl:template match="blockquote"> 116 <xsl:variable name="keep.together"> 117 <xsl:call-template name="pi.dbfo_keep-together"/> 118 </xsl:variable> 89 119 <fo:block xsl:use-attribute-sets="blockquote.properties"> 120 <xsl:if test="$keep.together != ''"> 121 <xsl:attribute name="keep-together.within-column"><xsl:value-of 122 select="$keep.together"/></xsl:attribute> 123 </xsl:if> 90 124 <xsl:call-template name="anchor"/> 91 125 <fo:block> … … 108 142 </xsl:template> 109 143 144 <!-- Use an em dash per Chicago Manual of Style and https://sourceforge.net/tracker/index.php?func=detail&aid=2793878&group_id=21935&atid=373747 --> 110 145 <xsl:template match="epigraph"> 111 146 <fo:block> … … 114 149 <xsl:if test="attribution"> 115 150 <fo:inline> 116 <xsl:text> --</xsl:text>151 <xsl:text>—</xsl:text> 117 152 <xsl:apply-templates select="attribution"/> 118 153 </fo:inline> … … 328 363 </xsl:template> 329 364 365 <!-- Turn off para space-before if sidebar starts with a para, not title --> 366 <xsl:template match="sidebar/*[1][self::para]"> 367 <xsl:variable name="keep.together"> 368 <xsl:call-template name="pi.dbfo_keep-together"/> 369 </xsl:variable> 370 <fo:block xsl:use-attribute-sets="para.properties"> 371 <xsl:attribute name="space-before.maximum">0pt</xsl:attribute> 372 <xsl:attribute name="space-before.minimum">0pt</xsl:attribute> 373 <xsl:attribute name="space-before.optimum">0pt</xsl:attribute> 374 <xsl:if test="$keep.together != ''"> 375 <xsl:attribute name="keep-together.within-column"><xsl:value-of 376 select="$keep.together"/></xsl:attribute> 377 </xsl:if> 378 <xsl:call-template name="anchor"/> 379 <xsl:apply-templates/> 380 </fo:block> 381 382 </xsl:template> 383 330 384 <xsl:template name="margin.note"> 331 385 <xsl:param name="content"> … … 387 441 388 442 <xsl:template match="abstract"> 443 <xsl:variable name="keep.together"> 444 <xsl:call-template name="pi.dbfo_keep-together"/> 445 </xsl:variable> 389 446 <fo:block xsl:use-attribute-sets="abstract.properties"> 447 <xsl:if test="$keep.together != ''"> 448 <xsl:attribute name="keep-together.within-column"><xsl:value-of 449 select="$keep.together"/></xsl:attribute> 450 </xsl:if> 390 451 <xsl:call-template name="anchor"/> 391 452 <xsl:apply-templates/> … … 501 562 <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties"> 502 563 <fo:block xsl:use-attribute-sets="revhistory.title.properties"> 503 <xsl:call-template name="gentext"> 504 <xsl:with-param name="key" select="'RevHistory'"/> 505 </xsl:call-template> 564 <xsl:choose> 565 <xsl:when test="title|info/title"> 566 <xsl:apply-templates select="title|info/title" mode="titlepage.mode"/> 567 </xsl:when> 568 <xsl:otherwise> 569 <xsl:call-template name="gentext"> 570 <xsl:with-param name="key" select="'RevHistory'"/> 571 </xsl:call-template> 572 </xsl:otherwise> 573 </xsl:choose> 506 574 </fo:block> 507 575 </fo:table-cell> … … 510 578 </fo:table-body> 511 579 </fo:table> 580 </xsl:template> 581 582 <xsl:template match="revhistory/title"> 583 <!-- Handled in titlepage.mode --> 512 584 </xsl:template> 513 585 … … 583 655 <!-- ==================================================================== --> 584 656 585 <xsl:template match="ackno ">657 <xsl:template match="ackno|acknowledgements[parent::article]"> 586 658 <fo:block xsl:use-attribute-sets="normal.para.spacing"> 587 659 <xsl:call-template name="anchor"/>
Note:
See TracChangeset
for help on using the changeset viewer.