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