diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-06-16 10:32:31 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-06-16 10:32:31 +0000 |
commit | 168e428fc4dfcf7f4d377d137743d8332784fa35 (patch) | |
tree | afdd32a3a7f9f28dfce516421077baf3383c87d0 /doc/doc-docbook/MyStyle-filter-fo.xsl | |
parent | 612ba564e598548543eb4d3e2313d7be687beb9b (diff) |
Install all the files that comprise the new DocBook way of making the
documentation.
Diffstat (limited to 'doc/doc-docbook/MyStyle-filter-fo.xsl')
-rw-r--r-- | doc/doc-docbook/MyStyle-filter-fo.xsl | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/doc/doc-docbook/MyStyle-filter-fo.xsl b/doc/doc-docbook/MyStyle-filter-fo.xsl new file mode 100644 index 000000000..33a67336b --- /dev/null +++ b/doc/doc-docbook/MyStyle-filter-fo.xsl @@ -0,0 +1,55 @@ +<!-- $Cambridge: exim/doc/doc-docbook/MyStyle-filter-fo.xsl,v 1.1 2005/06/16 10:32:31 ph10 Exp $ --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> + +<!-- This stylesheet driver imports the DocBook XML stylesheet for FO output, +and then imports my common stylesheet that makes changes that are wanted for +all forms of output. Then it imports my FO stylesheet that contains changes for +all printed output. Finally, there are some changes that apply only when +printing the filter document. --> + +<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.66.1/fo/docbook.xsl"/> +<xsl:import href="MyStyle.xsl"/> +<xsl:import href="MyStyle-fo.xsl"/> + +<!-- For the filter document, we do not want a title page and verso, as it +isn't really a "book", though we use the book XML style. It turns out that this +can be fiddled simply by changing the text "Table of Contents" to the title of +the document. + +However, it seems that we have to repeat here the language-specific changes +that are also present in MyStyle.xsl, because this overrides rather than adds +to the settings. --> + +<xsl:param name="local.l10n.xml" select="document('')"/> +<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> + <l:l10n language="en"> + + <l:gentext key="TableofContents" text="Exim’s interfaces to mail filtering"/> + + <!-- The default (as modified above) gives us "Chapter xxx" or "Section + xxx", with a capital letter at the start. So we have to make an more + complicated explicit change to give just the number. --> + + <l:context name="xref-number"> + <l:template name="chapter" text="%n"/> + <l:template name="sect1" text="%n"/> + <l:template name="sect2" text="%n"/> + <l:template name="section" text="%n"/> + </l:context> + + <!-- I think that having a trailing dot after section numbers looks fussy, + whereas you need it after just the digits of a chapter number. In both + cases we want to get rid of the word "chapter" or "section". --> + + <l:context name="title-numbered"> + <l:template name="chapter" text="%n. %t"/> + <l:template name="sect1" text="%n %t"/> + <l:template name="sect2" text="%n %t"/> + <l:template name="section" text="%n %t"/> + </l:context> + + </l:l10n> +</l:i18n> + +</xsl:stylesheet> |