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"/>
16 <xsl:include href="titlepage.templates.xsl"/>
19 <!-- Reference Pages HTML/FO Parameters -->
22 <xsl:param name="function.parens" select="1"/>
24 <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
25 <xsl:param name="funcsynopsis.style" select="ansi"/>
27 <!-- Linking HTML/FO Parameters -->
29 <!-- open new PDF documents in new tab, don't replace doc in current window -->
30 <xsl:attribute-set name="olink.properties">
31 <xsl:attribute name="show-destination">new</xsl:attribute>
34 <!-- Miscellaneous HTML/FO Parameters-->
36 <!-- SVG will be considered an acceptable image format -->
37 <xsl:param name="use.svg" select="1"/>
39 <!-- ToC/LoT/Index Generation -->
40 <!-- put page breaks before and after the Table of Contents,
41 so that the ToC is on a page by itself
42 Reference: http://www.sagehill.net/docbookxsl/PrintToc.html
44 <xsl:attribute-set name="toc.margin.properties">
45 <xsl:attribute name="break-before">page</xsl:attribute>
46 <xsl:attribute name="break-after">page</xsl:attribute>
49 <!-- Pagination and General Styles FO Parameters -->
51 Speed up ps & pdf creation by not creating pages with "draft" image,
52 thus not needing to wait for http fetch of draft.png from docbook website.
54 <xsl:param name="draft.mode" select="no"/>
56 <!-- Processor Extensions FO Parameters-->
58 <!-- PDF bookmarks extensions for FOP version 0.90 and later will be used. -->
59 <xsl:param name="fop.extensions" select="0"></xsl:param>
60 <xsl:param name="fop1.extensions" select="1"></xsl:param>
62 <!-- Cross Refrences FO Parameters-->
64 <!-- Make links in pdf output blue so it's easier to tell they're internal
67 <xsl:attribute-set name="xref.properties">
68 <xsl:attribute name="color">blue</xsl:attribute>
71 <!-- Make links in pdf output green so it's easier to tell they're external
74 <xsl:attribute-set name="olink.properties">
75 <xsl:attribute name="color">green</xsl:attribute>
78 <!-- Linking to a target inside a pdf document.
79 This feature is only available as of docbook-xsl-1.76.1.
80 When set to zero, the link will point to the document -->
81 <xsl:param name="insert.olink.pdf.frag" select="0"></xsl:param>
84 <!-- Font Families FO Parameters -->
87 Since a number of documents, especially the credits section in the
88 ReleaseNotes, use characters not found in the fop default base-14
89 PostScript fonts, set the fonts for the fop generated documents to
90 use the free DejaVu and GNU Unifont fonts which cover a much wider
93 DejaVu is available from http://dejavu-fonts.org/
94 GNU Unifont is available from http://unifoundry.com/unifont.html
96 To set fop font paths to find them after installing, see
97 http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
99 <xsl:param name="body.font.family">DejaVu Serif</xsl:param>
100 <xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>
102 <!-- Paragraph template bits -->
104 <!-- make it possible to turn off hyphenation when it's giving us probs -->
105 <xsl:template match="para[@hyphenate='false']">
106 <fo:block hyphenate="false" xsl:use-attribute-sets="normal.para.spacing">
107 <xsl:call-template name="anchor"/>
108 <xsl:apply-templates/>
112 <!-- force line break -->
113 <xsl:template match="processing-instruction('linebreak')">
117 <xsl:attribute-set name="informalfigure.properties">
118 <xsl:attribute name="text-align">center</xsl:attribute>