rev |
line source |
dongsheng@624
|
1 <?xml version="1.0"?>
|
dongsheng@624
|
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
|
dongsheng@624
|
3
|
dongsheng@624
|
4 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
|
dongsheng@624
|
5
|
dongsheng@624
|
6 <xsl:param name="draft.mode" select="no"/>
|
dongsheng@624
|
7
|
dongsheng@624
|
8 <!-- These extensions are required for table printing and other stuff -->
|
dongsheng@624
|
9 <xsl:param name="use.extensions">1</xsl:param>
|
dongsheng@624
|
10 <xsl:param name="callouts.extension">1</xsl:param>
|
dongsheng@624
|
11 <xsl:param name="linenumbering.extension">1</xsl:param>
|
dongsheng@624
|
12 <xsl:param name="tablecolumns.extension">1</xsl:param>
|
dongsheng@624
|
13 <xsl:param name="textinsert.extension">1</xsl:param>
|
dongsheng@624
|
14
|
dongsheng@624
|
15 <xsl:param name="admon.graphics" select="1" />
|
dongsheng@624
|
16 <xsl:param name="admon.graphics.extension">.png</xsl:param>
|
dongsheng@624
|
17 <xsl:param name="callout.graphics" select="1" />
|
dongsheng@624
|
18 <xsl:param name="callout.graphics.extension">.png</xsl:param>
|
dongsheng@624
|
19
|
dongsheng@624
|
20 <xsl:param name="section.autolabel" select="1" />
|
dongsheng@624
|
21 <xsl:param name="section.label.includes.component.label">1</xsl:param>
|
dongsheng@624
|
22
|
dongsheng@624
|
23 <xsl:param name="variablelist.as.blocks" select="1" /> <!-- fo only -->
|
dongsheng@624
|
24 <xsl:param name="hyphenate">false</xsl:param> <!-- fo only -->
|
dongsheng@624
|
25 <xsl:param name="paper.type" select="'A4'"></xsl:param> <!-- fo only -->
|
dongsheng@624
|
26
|
dongsheng@624
|
27 <!-- Default font settings -->
|
dongsheng@624
|
28 <!--
|
dongsheng@624
|
29 <xsl:param name="title.font.family">sans-serif</xsl:param>
|
dongsheng@624
|
30 <xsl:param name="body.font.family">serif</xsl:param>
|
dongsheng@624
|
31 <xsl:param name="sans.font.family">sans-serif</xsl:param>
|
dongsheng@624
|
32 <xsl:param name="dingbat.font.family">serif</xsl:param>
|
dongsheng@624
|
33 <xsl:param name="monospace.font.family">monospace</xsl:param>
|
dongsheng@624
|
34 <xsl:param name="symbol.font.family">Symbol,ZapfDingbats</xsl:param>
|
dongsheng@624
|
35 -->
|
dongsheng@624
|
36
|
dongsheng@624
|
37 <!-- Custom font settings - preferred truetype font -->
|
dongsheng@624
|
38 <xsl:param name="title.font.family">Calibri,sans-serif,SimHei</xsl:param>
|
dongsheng@624
|
39 <xsl:param name="body.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
|
dongsheng@624
|
40 <xsl:param name="sans.font.family">Calibri,sans-serif,SimHei</xsl:param>
|
dongsheng@624
|
41 <xsl:param name="dingbat.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
|
dongsheng@624
|
42 <xsl:param name="monospace.font.family">Courier New,monospace,FangSong</xsl:param>
|
dongsheng@624
|
43
|
dongsheng@624
|
44 <!-- Page related Settings -->
|
dongsheng@624
|
45 <xsl:param name="page.margin.inner">1.5cm</xsl:param>
|
dongsheng@624
|
46 <xsl:param name="page.margin.outer">1.5cm</xsl:param>
|
dongsheng@624
|
47 <xsl:param name="title.margin.left">0pt</xsl:param>
|
dongsheng@624
|
48 <xsl:param name="body.start.indent">24pt</xsl:param>
|
dongsheng@624
|
49 <xsl:param name="body.end.indent">0pt</xsl:param>
|
dongsheng@624
|
50
|
dongsheng@624
|
51 <!-- Breaking long lines -->
|
dongsheng@624
|
52 <xsl:param name="hyphenate.verbatim">1</xsl:param>
|
dongsheng@624
|
53 <xsl:attribute-set name="monospace.verbatim.properties"
|
dongsheng@624
|
54 use-attribute-sets="verbatim.properties monospace.properties">
|
dongsheng@624
|
55 <xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
dongsheng@624
|
56 <xsl:attribute name="hyphenation-character">►</xsl:attribute>
|
dongsheng@624
|
57 </xsl:attribute-set>
|
dongsheng@624
|
58
|
dongsheng@624
|
59 <!-- Prevent blank pages in output -->
|
dongsheng@624
|
60 <xsl:template name="book.titlepage.before.verso">
|
dongsheng@624
|
61 </xsl:template>
|
dongsheng@624
|
62 <xsl:template name="book.titlepage.verso">
|
dongsheng@624
|
63 </xsl:template>
|
dongsheng@624
|
64 <xsl:template name="book.titlepage.separator">
|
dongsheng@624
|
65 </xsl:template>
|
dongsheng@624
|
66
|
dongsheng@624
|
67 <!-- Colourize links in output -->
|
dongsheng@624
|
68 <xsl:attribute-set name="xref.properties">
|
dongsheng@624
|
69 <xsl:attribute name="color">
|
dongsheng@624
|
70 <xsl:choose>
|
dongsheng@624
|
71 <xsl:when test="self::ulink">blue</xsl:when>
|
dongsheng@624
|
72 <xsl:when test="self::xref">blue</xsl:when>
|
dongsheng@624
|
73 <xsl:when test="self::uri">blue</xsl:when>
|
dongsheng@624
|
74 <xsl:otherwise>red</xsl:otherwise>
|
dongsheng@624
|
75 </xsl:choose>
|
dongsheng@624
|
76 </xsl:attribute>
|
dongsheng@624
|
77 </xsl:attribute-set>
|
dongsheng@624
|
78
|
dongsheng@624
|
79 </xsl:stylesheet>
|