include pdclib in wrong place
[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
17
18                         <!-- Reference Pages HTML/FO Parameters -->
19
20
21   <xsl:param name="function.parens" select="1"/>
22
23   <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
24   <xsl:param name="funcsynopsis.style" select="ansi"/>
25
26                         <!-- Linking HTML/FO Parameters -->
27
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>
31   </xsl:attribute-set>
32
33                         <!-- Miscellaneous HTML/FO Parameters-->
34
35   <!-- SVG will be considered an acceptable image format -->
36   <xsl:param name="use.svg" select="1"/>
37
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
42   -->
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>
46   </xsl:attribute-set>
47
48                         <!-- Pagination and General Styles FO Parameters -->
49   <!--
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.
52     -->
53   <xsl:param name="draft.mode" select="no"/>
54
55                         <!-- Processor Extensions FO Parameters-->
56
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>
60
61                         <!-- Cross Refrences FO Parameters-->
62
63   <!-- Make links in pdf output blue so it's easier to tell they're internal
64        links
65    -->
66   <xsl:attribute-set name="xref.properties">
67     <xsl:attribute name="color">blue</xsl:attribute>
68   </xsl:attribute-set>
69
70   <!-- Make links in pdf output green so it's easier to tell they're external
71        links
72   -->
73   <xsl:attribute-set name="olink.properties">
74     <xsl:attribute name="color">green</xsl:attribute>
75   </xsl:attribute-set>
76
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>
81
82
83                         <!-- Font Families FO Parameters -->
84
85   <!--
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
90      range of characters.
91
92      DejaVu is available from http://dejavu-fonts.org/
93      GNU Unifont is available from http://unifoundry.com/unifont.html
94
95      To set fop font paths to find them after installing, see
96      http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
97     -->
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>
100
101                         <!-- Paragraph template bits -->
102
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/>
108     </fo:block>
109   </xsl:template>
110
111   <!-- force line break -->
112   <xsl:template match="processing-instruction('linebreak')">
113     <fo:block/>
114   </xsl:template>
115
116   <xsl:attribute-set name="informalfigure.properties">
117     <xsl:attribute name="text-align">center</xsl:attribute>
118   </xsl:attribute-set>
119
120 </xsl:stylesheet>