Commit | Line | Data |
---|---|---|
9b371988 | 1 | <!-- $Cambridge: exim/doc/doc-docbook/MyStyle-spec-fo.xsl,v 1.3 2006/02/01 11:01:01 ph10 Exp $ --> |
168e428f PH |
2 | |
3 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> | |
4 | ||
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. --> | |
10 | ||
b56c5fc4 | 11 | <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.68.1/fo/docbook.xsl"/> |
168e428f PH |
12 | <xsl:import href="MyStyle.xsl"/> |
13 | <xsl:import href="MyStyle-fo.xsl"/> | |
14 | ||
9b371988 PH |
15 | <!-- Special for the spec document --> |
16 | ||
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 | |
19 | only the TOC. --> | |
20 | ||
21 | <xsl:template name="force.page.count"> | |
22 | <xsl:param name="element" select="local-name(.)"/> | |
23 | <xsl:param name="master-reference" select="''"/> | |
24 | <xsl:choose> | |
25 | <xsl:when test="$master-reference = 'lot'">end-on-even</xsl:when> | |
26 | <xsl:otherwise>no-force</xsl:otherwise> | |
27 | </xsl:choose> | |
28 | </xsl:template> | |
168e428f PH |
29 | |
30 | </xsl:stylesheet> |