1 <!-- $Cambridge: exim/doc/doc-docbook/MyStyle-spec-fo.xsl,v 1.3 2006/02/01 11:01:01 ph10 Exp $ -->
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
5 <!-- This stylesheet driver imports the DocBook XML stylesheet for FO output,
6 and then imports my common stylesheet that makes changes that are wanted for
7 all forms of output. Then it imports my FO stylesheet that contains changes for
8 all printed output. Finally, there are some changes that apply only when
9 printing the Exim specification document. -->
11 <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.68.1/fo/docbook.xsl"/>
12 <xsl:import href="MyStyle.xsl"/>
13 <xsl:import href="MyStyle-fo.xsl"/>
15 <!-- Special for the spec document -->
17 <!-- Arrange for the table of contents to be an even number of pages. The name
18 "lot" includes all pages that contain a "list of titles", which in our case is
21 <xsl:template name="force.page.count">
22 <xsl:param name="element" select="local-name(.)"/>
23 <xsl:param name="master-reference" select="''"/>
25 <xsl:when test="$master-reference = 'lot'">end-on-even</xsl:when>
26 <xsl:otherwise>no-force</xsl:otherwise>