26728d5046d95c5057d5ffe777933cfd0045b93d
[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 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
11 <xsl:import href="file:///usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl"/>
12
13
14                         <!-- Reference Pages HTML/FO Parameters -->
15
16   <!-- The formatting of a function element will include generated parentheses -->
17   <xsl:param name="function.parens" select="1"/>
18
19   <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
20   <xsl:param name="funcsynopsis.style" select="ansi"/>
21
22                         <!-- Linking HTML/FO Parameters -->
23
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>
27   </xsl:attribute-set>
28
29                         <!-- Miscellaneous HTML/FO Parameters-->
30
31   <!-- SVG will be considered an acceptable image format -->
32   <xsl:param name="use.svg" select="1"/>
33
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
38   -->
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>
42   </xsl:attribute-set>
43
44                         <!-- Pagination and General Styles FO Parameters -->
45   <!--
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.
48     -->
49   <xsl:param name="draft.mode" select="no"/>
50
51                         <!-- Processor Extensions FO Parameters-->
52
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>
56
57                         <!-- Cross Refrences FO Parameters-->
58
59   <!-- Make links in pdf output blue so it's easier to tell they're internal
60        links
61    -->
62   <xsl:attribute-set name="xref.properties">
63     <xsl:attribute name="color">blue</xsl:attribute>
64   </xsl:attribute-set>
65
66   <!-- Make links in pdf output green so it's easier to tell they're external
67        links
68   -->
69   <xsl:attribute-set name="olink.properties">
70     <xsl:attribute name="color">green</xsl:attribute>
71   </xsl:attribute-set>
72
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>
77
78
79                         <!-- Font Families FO Parameters -->
80
81   <!--
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
86      range of characters.
87
88      DejaVu is available from http://dejavu-fonts.org/
89      GNU Unifont is available from http://unifoundry.com/unifont.html
90
91      To set fop font paths to find them after installing, see
92      http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
93     -->
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>
96
97 </xsl:stylesheet>