source: trunk/lib/docbook/custom-styles/docbook/plain/xsl/customized.pdf-fop.xsl @ 3317

Last change on this file since 3317 was 3317, checked in by Martin Svensson, 14 years ago

Made the guilabels and guibuttons bold in the pdf output

  • Property svn:eol-style set to native
File size: 2.4 KB
Line 
1<?xml version='1.0'?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                xmlns:fo="http://www.w3.org/1999/XSL/Format"
4                version='1.0'>
5
6
7<xsl:import href="../../../lib/docbook/docbook/xsl/fo/docbook.xsl" />
8<xsl:import href="../../../lib/docbook/custom-styles/docbook/plain/xsl/customized.fo-base.xsl" />
9
10<xsl:param name="fop.extensions" select="1" />
11<!-- should be 200a, but fop does not support it. -->
12<xsl:param name="ulink.hyphenate">&#x200b;</xsl:param>
13
14<!-- Base specific templates -->
15<xsl:param name="paper.type" select="'A4'" />
16
17<xsl:param name="section.autolabel.max.depth" select="2" />
18
19<xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
20
21<xsl:param name="body.start.indent">0pt</xsl:param>
22<xsl:param name="page.margin.inner">0.79in</xsl:param>
23<xsl:param name="page.margin.outer">0.79in</xsl:param>
24
25<!-- doc.revision, base.version and doc.last.modified -->
26<xsl:param name="doc.revision">@doc.revision@</xsl:param>
27<xsl:param name="doc.last.modified">@doc.last.modified@</xsl:param>
28<xsl:param name="base.version">@base.version@</xsl:param>
29
30<xsl:template match="helptext">
31  <xsl:choose>
32    <xsl:when test="@webonly = '0'"> 
33      <xsl:apply-templates />
34    </xsl:when>
35  </xsl:choose>
36</xsl:template>
37
38<xsl:template match="seeother|other">
39</xsl:template>
40
41<xsl:template match="nohelp">
42  <xsl:apply-templates />
43</xsl:template>
44
45<xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode">
46  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
47    xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
48    <xsl:apply-templates select="." mode="book.titlepage.verso.mode" />
49    <xsl:value-of select="$doc.last.modified" />
50  </fo:block>
51</xsl:template>
52
53<xsl:template match="releaseinfo" mode="book.titlepage.verso.auto.mode">
54  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
55    xsl:use-attribute-sets="book.titlepage.verso.style" space-before="0.5em">
56    <xsl:apply-templates select="." mode="book.titlepage.verso.mode" />
57    <xsl:text>Version:&#10;</xsl:text>
58  </fo:block>
59  <fo:block>
60    <xsl:value-of select="$base.version" />
61    <xsl:text> (build #</xsl:text>
62    <xsl:value-of select="$doc.revision" />
63    <xsl:text>)</xsl:text>
64  </fo:block>
65</xsl:template>
66
67<xsl:template match="guilabel">
68  <xsl:call-template name="inline.boldseq"/>
69</xsl:template>
70
71<xsl:template match="guibutton">
72  <xsl:call-template name="inline.boldseq"/>
73</xsl:template>
74
75</xsl:stylesheet>
76
Note: See TracBrowser for help on using the repository browser.