summaryrefslogtreecommitdiff
path: root/xorg-fo.xsl
blob: 22db24d19f61b402d19fd24e49fbb5b537d83297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?xml version="1.0" encoding="UTF-8"?>

<!--
			X.Org DocBook/XML customization

	DocBook XSL Stylesheets FO Parameters
	http://docbook.sourceforge.net/release/xsl/current/doc/fo/
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>


			<!-- Reference Pages HTML/FO Parameters -->

  <!-- The formatting of a function element will include generated parentheses -->
  <xsl:param name="function.parens" select="1"/>

  <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
  <xsl:param name="funcsynopsis.style">kr</xsl:param>

			<!-- Linking HTML/FO Parameters -->

  <!-- open new PDF documents in new tab, don't replace doc in current window -->
  <xsl:attribute-set name="olink.properties">
    <xsl:attribute name="show-destination">new</xsl:attribute>
  </xsl:attribute-set>

			<!-- Miscellaneous HTML/FO Parameters-->

  <!-- SVG will be considered an acceptable image format -->
  <xsl:param name="use.svg" select="1"/>

			<!-- Pagination and General Styles FO Parameters -->
  <!--
     Speed up ps & pdf creation by not creating pages with "draft" image,
     thus not needing to wait for http fetch of draft.png from docbook website.
    -->
  <xsl:param name="draft.mode" select="no"/>

			<!-- Processor Extensions FO Parameters-->

  <!-- PDF bookmarks extensions for FOP version 0.90 and later will be used. -->
  <xsl:param name="fop.extensions" select="0"></xsl:param>
  <xsl:param name="fop1.extensions" select="1"></xsl:param>

			<!-- Cross Refrences FO Parameters-->

  <!-- Make links in pdf output blue so it's easier to tell they're internal
       links
   -->
  <xsl:attribute-set name="xref.properties">
    <xsl:attribute name="color">blue</xsl:attribute>
  </xsl:attribute-set>

  <!-- Make links in pdf output green so it's easier to tell they're external
       links
  -->
  <xsl:attribute-set name="olink.properties">
    <xsl:attribute name="color">green</xsl:attribute>
  </xsl:attribute-set>

  <!-- Linking to a target inside a pdf document.
       This feature is only available as of docbook-xsl-1.76.1.
       When set to zero, the link will point to the document -->
  <xsl:param name="insert.olink.pdf.frag" select="0"></xsl:param>
  <xsl:param name="funcsynopsis-style" select="kr"></xsl:param>


			<!-- Font Families FO Parameters -->

  <!--
     Since a number of documents, especially the credits section in the
     ReleaseNotes, use characters not found in the fop default base-14
     PostScript fonts, set the fonts for the fop generated documents to
     use the free DejaVu and GNU Unifont fonts which cover a much wider
     range of characters.

     DejaVu is available from http://dejavu-fonts.org/
     GNU Unifont is available from http://unifoundry.com/unifont.html

     To set fop font paths to find them after installing, see
     http://xmlgraphics.apache.org/fop/1.0/fonts.html#basics
    -->
  <!-- <xsl:param name="body.font.family">DejaVu Serif</xsl:param> -->
  <!-- <xsl:param name="body.font.family">Times New Roman</xsl:param>-->
  <xsl:param name="body.font.family">Times Roman, Times-Bold, Times-Italic, Times-Roman</xsl:param>
  <xsl:param name="symbol.font.family">serif</xsl:param>
<!--
  <xsl:param name="symbol.font.family">serif,Symbol,AR PL UMing CN,AR PL ShanHeiSun Uni,GNU Unifont</xsl:param>
-->
<xsl:param name="body.font.size">10.5pt</xsl:param>
<xsl:param name="body.start.indent">0pt</xsl:param>
<xsl:param name="alignment">left</xsl:param>

<xsl:param name="chapter.autolabel">1</xsl:param>
<xsl:param name="section.autolabel">1</xsl:param>
<xsl:param name="section.label.includes.component.label">1</xsl:param>


<xsl:attribute-set name="sidebar.properties" 
        use-attribute-sets="formal.object.properties">
  <xsl:attribute name="border-style">none</xsl:attribute>
  <xsl:attribute name="background-color">#FFFFFF</xsl:attribute>
  <xsl:attribute name="margin-left">30pt</xsl:attribute>


  <xsl:attribute name="margin-top">0pt</xsl:attribute>
  <xsl:attribute name="margin-bottom">0pt</xsl:attribute> 
  <xsl:attribute name="padding-top">0pt</xsl:attribute>
  <xsl:attribute name="padding-bottom">0pt</xsl:attribute>


</xsl:attribute-set>

<!-- Styling for refentry in PDF output -->
<xsl:template match="refentry">
 <fo:block background-color="#F8F8F8" margin-left="2em" margin-right="2em">
  <xsl:apply-imports/>
 </fo:block>
</xsl:template>



</xsl:stylesheet>