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/
10 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
11 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
14 <!-- Reference Pages HTML/FO Parameters -->
16 <!-- The formatting of a function element will include generated parentheses -->
17 <xsl:param name="function.parens" select="1"/>
19 <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
20 <xsl:param name="funcsynopsis.style" select="ansi"/>
22 <!-- Linking HTML/FO Parameters -->
24 <!-- open new PDF documents in new tab, don't replace doc in current window -->
25 <xsl:attribute-set name="olink.properties">
26 <xsl:attribute name="show-destination">new</xsl:attribute>
29 <!-- Miscellaneous HTML/FO Parameters-->
31 <!-- SVG will be considered an acceptable image format -->
32 <xsl:param name="use.svg" select="1"/>
34 <!-- ToC/LoT/Index Generation -->
35 <!-- put page breaks before and after the Table of Contents,
36 so that the ToC is on a page by itself
37 Reference: http://www.sagehill.net/docbookxsl/PrintToc.html
39 <xsl:attribute-set name="toc.margin.properties">
40 <xsl:attribute name="break-before">page</xsl:attribute>
41 <xsl:attribute name="break-after">page</xsl:attribute>
44 <!-- Pagination and General Styles FO Parameters -->
46 Speed up ps & pdf creation by not creating pages with "draft" image,
47 thus not needing to wait for http fetch of draft.png from docbook website.
49 <xsl:param name="draft.mode" select="no"/>
51 <!-- Processor Extensions FO Parameters-->
53 <!-- PDF bookmarks extensions for FOP version 0.90 and later will be used. -->
54 <xsl:param name="fop.extensions" select="0"></xsl:param>
55 <xsl:param name="fop1.extensions" select="1"></xsl:param>
57 <!-- Cross Refrences FO Parameters-->
59 <!-- Make links in pdf output blue so it's easier to tell they're internal
62 <xsl:attribute-set name="xref.properties">
63 <xsl:attribute name="color">blue</xsl:attribute>
66 <!-- Make links in pdf output green so it's easier to tell they're external
69 <xsl:attribute-set name="olink.properties">
70 <xsl:attribute name="color">green</xsl:attribute>
73 <!-- Linking to a target inside a pdf document.
74 This feature is only available as of docbook-xsl-1.76.1.
75 When set to zero, the link will point to the document -->
76 <xsl:param name="insert.olink.pdf.frag" select="0"></xsl:param>
79 <!-- Font Families FO Parameters -->
82 Since a number of documents, especially the credits section in the
83 ReleaseNotes, use characters not found in the fop default base-14
84 PostScript fonts, set the fonts for the fop generated documents to
85 use the free DejaVu and GNU Unifont fonts which cover a much wider
88 DejaVu is available from http://dejavu-fonts.org/
89 GNU Unifont is available from http://unifoundry.com/unifont.html
91 To set fop font paths to find them after installing, see
92 http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
94 <xsl:param name="body.font.family">DejaVu Serif</xsl:param>
95 <xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>