optical cleanup
[TortoiseGit.git] / doc / xsl / pdfdoc.xsl
blob1dc66dde10a6bdec1c27b7dbc6eaf51a3bd3145a
1 <xsl:stylesheet
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:fo="http://www.w3.org/1999/XSL/Format"
4 version="1.0">
6 <xsl:import href="./db_pdfdoc.xsl"/>
7 <xsl:import href="./defaults.xsl"/>
8 <xsl:param name="paper.type" select="'A4'"></xsl:param>
9 <xsl:param name="page.orientation">portrait</xsl:param>
10 <xsl:param name="double.sided" select="0"></xsl:param>
11 <xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
12 <xsl:param name="symbol.font.family" select="'Symbol,ZapfDingbats'"></xsl:param>
14 <xsl:param name="table.frame.border.thickness" select="'1pt'"></xsl:param>
15 <xsl:param name="table.frame.border.style" select="'solid'"></xsl:param>
16 <xsl:param name="table.frame.border.color" select="'#7099C5'"></xsl:param>
17 <xsl:param name="table.cell.border.thickness" select="'1pt'"></xsl:param>
18 <xsl:param name="table.cell.border.style" select="'solid'"></xsl:param>
19 <xsl:param name="table.cell.border.color" select="'#7099C5'"></xsl:param>
21 <xsl:attribute-set name="formal.object.properties">
22 <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
23 </xsl:attribute-set>
26 <xsl:param name="formal.title.placement">
27 figure after
28 example after
29 equation after
30 table after
31 procedure after
32 </xsl:param>
34 <xsl:template match="menuchoice">
35 <fo:inline font-family="Helvetica">
36 <xsl:call-template name="process.menuchoice"/>
37 </fo:inline>
38 </xsl:template>
40 <xsl:template match="guilabel">
41 <fo:inline font-family="Helvetica">
42 <xsl:call-template name="inline.charseq"/>
43 </fo:inline>
44 </xsl:template>
46 <xsl:template match="guibutton">
47 <fo:inline font-family="Helvetica">
48 <xsl:call-template name="inline.charseq"/>
49 </fo:inline>
50 </xsl:template>
52 <xsl:template match="keysym">
53 <fo:inline font-family="Symbol">
54 <xsl:call-template name="inline.charseq"/>
55 </fo:inline>
56 </xsl:template>
58 <xsl:template match="thead">
59 <xsl:variable name="tgroup" select="parent::*"/>
61 <fo:table-header
62 font-weight="bold"
63 color="#ffffff"
64 background-color="#7099C5">
65 <xsl:apply-templates select="row[1]">
66 <xsl:with-param name="spans">
67 <xsl:call-template name="blank.spans">
68 <xsl:with-param name="cols" select="../@cols"/>
69 </xsl:call-template>
70 </xsl:with-param>
71 </xsl:apply-templates>
72 </fo:table-header>
73 </xsl:template>
75 <xsl:template match="tfoot">
76 <xsl:variable name="tgroup" select="parent::*"/>
78 <fo:table-footer
79 background-color="#f0f0ff">
80 <xsl:apply-templates select="row[1]">
81 <xsl:with-param name="spans">
82 <xsl:call-template name="blank.spans">
83 <xsl:with-param name="cols" select="../@cols"/>
84 </xsl:call-template>
85 </xsl:with-param>
86 </xsl:apply-templates>
87 </fo:table-footer>
88 </xsl:template>
90 <xsl:template match="tbody">
91 <xsl:variable name="tgroup" select="parent::*"/>
93 <fo:table-body
94 background-color="#f0f0ff">
95 <xsl:apply-templates select="row[1]">
96 <xsl:with-param name="spans">
97 <xsl:call-template name="blank.spans">
98 <xsl:with-param name="cols" select="../@cols"/>
99 </xsl:call-template>
100 </xsl:with-param>
101 </xsl:apply-templates>
102 </fo:table-body>
103 </xsl:template>
105 <xsl:attribute-set name="xref.properties">
106 <xsl:attribute name="color">
107 <xsl:choose>
108 <xsl:when test="self::ulink">blue</xsl:when>
109 <xsl:otherwise>red</xsl:otherwise>
110 </xsl:choose>
111 </xsl:attribute>
112 </xsl:attribute-set>
114 </xsl:stylesheet>