2 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
3 xmlns:
fo=
"http://www.w3.org/1999/XSL/Format"
6 <xsl:import href=
"./db_pdfdoc.xsl"/>
7 <xsl:import href=
"./defaults.xsl"/>
8 <xsl:import href=
"./tgit.xsl"/>
9 <xsl:param name=
"paper.type" select=
"'A4'"></xsl:param>
10 <xsl:param name=
"page.orientation">portrait
</xsl:param>
11 <xsl:param name=
"double.sided" select=
"0"></xsl:param>
12 <xsl:param name=
"variablelist.as.blocks" select=
"1"></xsl:param>
13 <xsl:param name=
"symbol.font.family" select=
"'Symbol,ZapfDingbats'"></xsl:param>
15 <xsl:param name=
"table.frame.border.thickness" select=
"'1pt'"></xsl:param>
16 <xsl:param name=
"table.frame.border.style" select=
"'solid'"></xsl:param>
17 <xsl:param name=
"table.frame.border.color" select=
"'#7099C5'"></xsl:param>
18 <xsl:param name=
"table.cell.border.thickness" select=
"'1pt'"></xsl:param>
19 <xsl:param name=
"table.cell.border.style" select=
"'solid'"></xsl:param>
20 <xsl:param name=
"table.cell.border.color" select=
"'#7099C5'"></xsl:param>
22 <xsl:attribute-set name=
"formal.object.properties">
23 <xsl:attribute name=
"keep-together.within-column">auto
</xsl:attribute>
27 <xsl:param name=
"formal.title.placement">
35 <xsl:template match=
"menuchoice">
36 <fo:inline font-family=
"Helvetica">
37 <xsl:call-template name=
"process.menuchoice"/>
41 <xsl:template match=
"guilabel">
42 <fo:inline font-family=
"Helvetica">
43 <xsl:call-template name=
"inline.charseq"/>
47 <xsl:template match=
"guibutton">
48 <fo:inline font-family=
"Helvetica">
49 <xsl:call-template name=
"inline.charseq"/>
53 <xsl:template match=
"keysym">
54 <fo:inline font-family=
"Symbol">
55 <xsl:call-template name=
"inline.charseq"/>
59 <xsl:template match=
"thead">
60 <xsl:variable name=
"tgroup" select=
"parent::*"/>
65 background-color=
"#7099C5">
66 <xsl:apply-templates select=
"row[1]">
67 <xsl:with-param name=
"spans">
68 <xsl:call-template name=
"blank.spans">
69 <xsl:with-param name=
"cols" select=
"../@cols"/>
72 </xsl:apply-templates>
76 <xsl:template match=
"tfoot">
77 <xsl:variable name=
"tgroup" select=
"parent::*"/>
80 background-color=
"#f0f0ff">
81 <xsl:apply-templates select=
"row[1]">
82 <xsl:with-param name=
"spans">
83 <xsl:call-template name=
"blank.spans">
84 <xsl:with-param name=
"cols" select=
"../@cols"/>
87 </xsl:apply-templates>
91 <xsl:template match=
"tbody">
92 <xsl:variable name=
"tgroup" select=
"parent::*"/>
95 background-color=
"#f0f0ff">
97 <!-- Use recursion if @morerows is used -->
98 <xsl:when test=
"row/entry/@morerows|row/entrytbl/@morerows">
99 <xsl:apply-templates select=
"row[1]">
100 <xsl:with-param name=
"spans">
101 <xsl:call-template name=
"blank.spans">
102 <xsl:with-param name=
"cols" select=
"../@cols"/>
105 <xsl:with-param name=
"browserows" select=
"'recurse'"/>
106 </xsl:apply-templates>
109 <xsl:apply-templates select=
"row">
110 <xsl:with-param name=
"spans">
111 <xsl:call-template name=
"blank.spans">
112 <xsl:with-param name=
"cols" select=
"../@cols"/>
115 <xsl:with-param name=
"browserows" select=
"'loop'" />
116 </xsl:apply-templates>
122 <xsl:attribute-set name=
"xref.properties">
123 <xsl:attribute name=
"color">
125 <xsl:when test=
"self::ulink">blue
</xsl:when>
126 <xsl:otherwise>red
</xsl:otherwise>
131 <xsl:attribute-set name=
"monospace.verbatim.properties">
132 <xsl:attribute name=
"wrap-option">wrap
</xsl:attribute>
133 <!-- TODO: set a hyphenation-character, currently unsupported by FOP; http://www.sagehill.net/docbookxsl/FittingText.html#BreakLongLines -->