1 <?xml version="1.0" encoding="UTF-8"?>
4 X.Org DocBook/XML customization
6 DocBook XSL Stylesheets FO Parameters
7 http://docbook.sourceforge.net/release/xsl/current/doc/fo/
12 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
13 xmlns:fo="http://www.w3.org/1999/XSL/Format"
15 <xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl"/>
18 <!-- Reference Pages HTML/FO Parameters -->
21 <xsl:param name="function.parens" select="1"/>
23 <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
24 <xsl:param name="funcsynopsis.style" select="ansi"/>
26 <!-- Linking HTML/FO Parameters -->
28 <!-- open new PDF documents in new tab, don't replace doc in current window -->
29 <xsl:attribute-set name="olink.properties">
30 <xsl:attribute name="show-destination">new</xsl:attribute>
33 <!-- Miscellaneous HTML/FO Parameters-->
35 <!-- SVG will be considered an acceptable image format -->
36 <xsl:param name="use.svg" select="1"/>
38 <!-- ToC/LoT/Index Generation -->
39 <!-- put page breaks before and after the Table of Contents,
40 so that the ToC is on a page by itself
41 Reference: http://www.sagehill.net/docbookxsl/PrintToc.html
43 <xsl:attribute-set name="toc.margin.properties">
44 <xsl:attribute name="break-before">page</xsl:attribute>
45 <xsl:attribute name="break-after">page</xsl:attribute>
48 <!-- Pagination and General Styles FO Parameters -->
50 Speed up ps & pdf creation by not creating pages with "draft" image,
51 thus not needing to wait for http fetch of draft.png from docbook website.
53 <xsl:param name="draft.mode" select="no"/>
55 <!-- Processor Extensions FO Parameters-->
57 <!-- PDF bookmarks extensions for FOP version 0.90 and later will be used. -->
58 <xsl:param name="fop.extensions" select="0"></xsl:param>
59 <xsl:param name="fop1.extensions" select="1"></xsl:param>
61 <!-- Cross Refrences FO Parameters-->
63 <!-- Make links in pdf output blue so it's easier to tell they're internal
66 <xsl:attribute-set name="xref.properties">
67 <xsl:attribute name="color">blue</xsl:attribute>
70 <!-- Make links in pdf output green so it's easier to tell they're external
73 <xsl:attribute-set name="olink.properties">
74 <xsl:attribute name="color">green</xsl:attribute>
77 <!-- Linking to a target inside a pdf document.
78 This feature is only available as of docbook-xsl-1.76.1.
79 When set to zero, the link will point to the document -->
80 <xsl:param name="insert.olink.pdf.frag" select="0"></xsl:param>
83 <!-- Font Families FO Parameters -->
86 Since a number of documents, especially the credits section in the
87 ReleaseNotes, use characters not found in the fop default base-14
88 PostScript fonts, set the fonts for the fop generated documents to
89 use the free DejaVu and GNU Unifont fonts which cover a much wider
92 DejaVu is available from http://dejavu-fonts.org/
93 GNU Unifont is available from http://unifoundry.com/unifont.html
95 To set fop font paths to find them after installing, see
96 http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
98 <xsl:param name="body.font.family">DejaVu Serif</xsl:param>
99 <xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>
101 <!-- Paragraph template bits -->
103 <!-- make it possible to turn off hyphenation when it's giving us probs -->
104 <xsl:template match="para[@hyphenate='false']">
105 <fo:block hyphenate="false" xsl:use-attribute-sets="normal.para.spacing">
106 <xsl:call-template name="anchor"/>
107 <xsl:apply-templates/>
111 <!-- force line break -->
112 <xsl:template match="processing-instruction('linebreak')">