hgbook

annotate stylesheets/fo.xsl @ 983:5e1e70fcdfdb

Corrected some errors.
- Indentation problems
- Syntax errors (missing </para>,...)
- French mistakes
author Frédéric Bouquet <youshe.jaalon@gmail.com>
date Tue Sep 08 23:42:42 2009 +0200 (2009-09-08)
parents 4e8f302ae313
children 8a2b0994ccd9
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@656 17 <xsl:param name="admon.graphics.path">figs/</xsl:param>
dongsheng@624 18 <xsl:param name="callout.graphics" select="1" />
dongsheng@624 19 <xsl:param name="callout.graphics.extension">.png</xsl:param>
dongsheng@656 20 <xsl:param name="callout.graphics.path">images/callouts/</xsl:param>
dongsheng@624 21
dongsheng@624 22 <xsl:param name="section.autolabel" select="1" />
dongsheng@624 23 <xsl:param name="section.label.includes.component.label">1</xsl:param>
dongsheng@624 24
dongsheng@624 25 <xsl:param name="variablelist.as.blocks" select="1" /> <!-- fo only -->
dongsheng@624 26 <xsl:param name="hyphenate">false</xsl:param> <!-- fo only -->
dongsheng@624 27 <xsl:param name="paper.type" select="'A4'"></xsl:param> <!-- fo only -->
dongsheng@624 28
dongsheng@624 29 <!-- Default font settings -->
dongsheng@624 30 <!--
dongsheng@624 31 <xsl:param name="title.font.family">sans-serif</xsl:param>
dongsheng@624 32 <xsl:param name="body.font.family">serif</xsl:param>
dongsheng@624 33 <xsl:param name="sans.font.family">sans-serif</xsl:param>
dongsheng@624 34 <xsl:param name="dingbat.font.family">serif</xsl:param>
dongsheng@624 35 <xsl:param name="monospace.font.family">monospace</xsl:param>
dongsheng@624 36 <xsl:param name="symbol.font.family">Symbol,ZapfDingbats</xsl:param>
dongsheng@624 37 -->
dongsheng@624 38
dongsheng@624 39 <!-- Custom font settings - preferred truetype font -->
dongsheng@624 40 <xsl:param name="title.font.family">Calibri,sans-serif,SimHei</xsl:param>
dongsheng@624 41 <xsl:param name="body.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
dongsheng@624 42 <xsl:param name="sans.font.family">Calibri,sans-serif,SimHei</xsl:param>
dongsheng@624 43 <xsl:param name="dingbat.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param>
dongsheng@624 44 <xsl:param name="monospace.font.family">Courier New,monospace,FangSong</xsl:param>
dongsheng@624 45
dongsheng@624 46 <!-- Page related Settings -->
dongsheng@624 47 <xsl:param name="page.margin.inner">1.5cm</xsl:param>
dongsheng@624 48 <xsl:param name="page.margin.outer">1.5cm</xsl:param>
dongsheng@624 49 <xsl:param name="title.margin.left">0pt</xsl:param>
dongsheng@624 50 <xsl:param name="body.start.indent">24pt</xsl:param>
dongsheng@624 51 <xsl:param name="body.end.indent">0pt</xsl:param>
dongsheng@624 52
dongsheng@624 53 <!-- Breaking long lines -->
songdongsheng@669 54 <xsl:param name="hyphenate.verbatim">0</xsl:param>
dongsheng@624 55 <xsl:attribute-set name="monospace.verbatim.properties"
dongsheng@624 56 use-attribute-sets="verbatim.properties monospace.properties">
dongsheng@624 57 <xsl:attribute name="wrap-option">wrap</xsl:attribute>
dongsheng@624 58 <xsl:attribute name="hyphenation-character">&#x25BA;</xsl:attribute>
dongsheng@624 59 </xsl:attribute-set>
dongsheng@624 60
dongsheng@624 61 <!-- Prevent blank pages in output -->
dongsheng@624 62 <xsl:template name="book.titlepage.before.verso">
dongsheng@624 63 </xsl:template>
dongsheng@624 64 <xsl:template name="book.titlepage.verso">
dongsheng@624 65 </xsl:template>
dongsheng@624 66 <xsl:template name="book.titlepage.separator">
dongsheng@624 67 </xsl:template>
dongsheng@624 68
dongsheng@624 69 <!-- Colourize links in output -->
dongsheng@624 70 <xsl:attribute-set name="xref.properties">
dongsheng@624 71 <xsl:attribute name="color">
dongsheng@624 72 <xsl:choose>
dongsheng@624 73 <xsl:when test="self::ulink">blue</xsl:when>
dongsheng@624 74 <xsl:when test="self::xref">blue</xsl:when>
dongsheng@624 75 <xsl:when test="self::uri">blue</xsl:when>
dongsheng@624 76 <xsl:otherwise>red</xsl:otherwise>
dongsheng@624 77 </xsl:choose>
dongsheng@624 78 </xsl:attribute>
dongsheng@624 79 </xsl:attribute-set>
dongsheng@624 80
dongsheng@624 81 </xsl:stylesheet>