doc: Add title page image to altusmetrum.pdf
[fw/altos] / doc / xorg-fo.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4                         X.Org DocBook/XML customization
5
6         DocBook XSL Stylesheets FO Parameters
7         http://docbook.sourceforge.net/release/xsl/current/doc/fo/
8 -->
9
10 <xsl:stylesheet
11     version='1.0'
12     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
13     xmlns:fo="http://www.w3.org/1999/XSL/Format" 
14     >
15 <xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl"/>
16 <xsl:include href="titlepage.templates.xsl"/>
17
18
19                         <!-- Reference Pages HTML/FO Parameters -->
20
21
22   <xsl:param name="function.parens" select="1"/>
23
24   <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
25   <xsl:param name="funcsynopsis.style" select="ansi"/>
26
27                         <!-- Linking HTML/FO Parameters -->
28
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>
32   </xsl:attribute-set>
33
34                         <!-- Miscellaneous HTML/FO Parameters-->
35
36   <!-- SVG will be considered an acceptable image format -->
37   <xsl:param name="use.svg" select="1"/>
38
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
43   -->
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>
47   </xsl:attribute-set>
48
49                         <!-- Pagination and General Styles FO Parameters -->
50   <!--
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.
53     -->
54   <xsl:param name="draft.mode" select="no"/>
55
56                         <!-- Processor Extensions FO Parameters-->
57
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>
61
62                         <!-- Cross Refrences FO Parameters-->
63
64   <!-- Make links in pdf output blue so it's easier to tell they're internal
65        links
66    -->
67   <xsl:attribute-set name="xref.properties">
68     <xsl:attribute name="color">blue</xsl:attribute>
69   </xsl:attribute-set>
70
71   <!-- Make links in pdf output green so it's easier to tell they're external
72        links
73   -->
74   <xsl:attribute-set name="olink.properties">
75     <xsl:attribute name="color">green</xsl:attribute>
76   </xsl:attribute-set>
77
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>
82
83
84                         <!-- Font Families FO Parameters -->
85
86   <!--
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
91      range of characters.
92
93      DejaVu is available from http://dejavu-fonts.org/
94      GNU Unifont is available from http://unifoundry.com/unifont.html
95
96      To set fop font paths to find them after installing, see
97      http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
98     -->
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>
101
102                         <!-- Paragraph template bits -->
103
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/>
109     </fo:block>
110   </xsl:template>
111
112   <!-- force line break -->
113   <xsl:template match="processing-instruction('linebreak')">
114     <fo:block/>
115   </xsl:template>
116
117   <xsl:attribute-set name="informalfigure.properties">
118     <xsl:attribute name="text-align">center</xsl:attribute>
119   </xsl:attribute-set>
120
121 </xsl:stylesheet>