diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-04-04 14:03:49 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-04-04 14:03:49 +0000 |
commit | 4f5788623ab3e8456ad254883b6cc018079aab96 (patch) | |
tree | 7a0d0f19d4687941f80d25cab01e9c8ddb2fac25 /doc/doc-docbook/MyStyle-fo.xsl | |
parent | bd8aa2d172edfb841402caf8c2524628505df8ea (diff) |
Update documentation for 4.61 and some of the preparation tools.
Diffstat (limited to 'doc/doc-docbook/MyStyle-fo.xsl')
-rw-r--r-- | doc/doc-docbook/MyStyle-fo.xsl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/doc-docbook/MyStyle-fo.xsl b/doc/doc-docbook/MyStyle-fo.xsl index a23da6496..f6731d392 100644 --- a/doc/doc-docbook/MyStyle-fo.xsl +++ b/doc/doc-docbook/MyStyle-fo.xsl @@ -1,4 +1,4 @@ -<!-- $Cambridge: exim/doc/doc-docbook/MyStyle-fo.xsl,v 1.3 2006/02/01 11:01:01 ph10 Exp $ --> +<!-- $Cambridge: exim/doc/doc-docbook/MyStyle-fo.xsl,v 1.4 2006/04/04 14:03:49 ph10 Exp $ --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" @@ -25,6 +25,19 @@ specification. It is imported by MyStyle-filter-fo.xsl and MyStyle-spec-fo.xsl. <xsl:param name="fop.extensions" select="1"></xsl:param> +<!-- Arrange for the table of contents to be an even number of pages. The name +"lot" includes all pages that contain a "list of titles", which in our case is +only the TOC. --> + +<xsl:template name="force.page.count"> + <xsl:param name="element" select="local-name(.)"/> + <xsl:param name="master-reference" select="''"/> + <xsl:choose> + <xsl:when test="$master-reference = 'lot'">end-on-even</xsl:when> + <xsl:otherwise>no-force</xsl:otherwise> + </xsl:choose> +</xsl:template> + <!-- Allow for typed index entries. The "role" setting works with DocBook version 4.2 or earlier. Later versions (which we are not currently using) need "type". --> |