Stylesheet version number changed.
[exim.git] / doc / doc-docbook / MyStyle-filter-fo.xsl
CommitLineData
b56c5fc4 1<!-- $Cambridge: exim/doc/doc-docbook/MyStyle-filter-fo.xsl,v 1.2 2005/08/05 10:57:41 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,
6and then imports my common stylesheet that makes changes that are wanted for
7all forms of output. Then it imports my FO stylesheet that contains changes for
8all printed output. Finally, there are some changes that apply only when
9printing the filter 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
15<!-- For the filter document, we do not want a title page and verso, as it
16isn't really a "book", though we use the book XML style. It turns out that this
17can be fiddled simply by changing the text "Table of Contents" to the title of
18the document.
19
20However, it seems that we have to repeat here the language-specific changes
21that are also present in MyStyle.xsl, because this overrides rather than adds
22to the settings. -->
23
24<xsl:param name="local.l10n.xml" select="document('')"/>
25<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
26 <l:l10n language="en">
27
28 <l:gentext key="TableofContents" text="Exim&#x2019;s interfaces to mail filtering"/>
29
30 <!-- The default (as modified above) gives us "Chapter xxx" or "Section
31 xxx", with a capital letter at the start. So we have to make an more
32 complicated explicit change to give just the number. -->
33
34 <l:context name="xref-number">
35 <l:template name="chapter" text="%n"/>
36 <l:template name="sect1" text="%n"/>
37 <l:template name="sect2" text="%n"/>
38 <l:template name="section" text="%n"/>
39 </l:context>
40
41 <!-- I think that having a trailing dot after section numbers looks fussy,
42 whereas you need it after just the digits of a chapter number. In both
43 cases we want to get rid of the word "chapter" or "section". -->
44
45 <l:context name="title-numbered">
46 <l:template name="chapter" text="%n.&#160;%t"/>
47 <l:template name="sect1" text="%n&#160;%t"/>
48 <l:template name="sect2" text="%n&#160;%t"/>
49 <l:template name="section" text="%n&#160;%t"/>
50 </l:context>
51
52 </l:l10n>
53</l:i18n>
54
55</xsl:stylesheet>