2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 <!-- import the main stylesheet -->
6 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
8 <!-- create pdf bookmarks -->
9 <!-- Disable this since FOP 0.93 doesn't handle them, yet -->
10 <xsl:param name="fop1.extensions" select="1"/>
12 <!-- don't use the draft mode (no loading of image from the web) -->
13 <xsl:param name="draft.mode" select="no"/>
15 <!-- use graphics for admons (note, tip, ...) -->
16 <xsl:param name="admon.graphics" select="1"/>
17 <xsl:param name="admon.graphics.path">common_graphics/</xsl:param>
18 <xsl:param name="admon.graphics.extension" select="'.svg'"/>
20 <!-- use numbering for sections (not only for chapters) -->
21 <xsl:param name="section.autolabel" select="1"/>
22 <xsl:param name="section.label.includes.component.label" select="1"/>
24 <!-- include a single TOC (use book style TOC, removes the list of figures etc.) -->
25 <xsl:param name="generate.toc" select="'book toc'"/>
27 <!-- include page numbers in cross references -->
28 <!-- <xsl:param name="insert.xref.page.number" select="1"/> -->
30 <!-- don't show URL's, but only the text of it -->
31 <xsl:param name="ulink.show" select="0"/>
33 <!-- hyphenate URL's after the slash -->
34 <!-- (http://docbook.sourceforge.net/release/xsl/current/doc/fo/ulink.hyphenate.html) -->
35 <xsl:param name="ulink.hyphenate.chars" select="'/:'"></xsl:param>
36 <xsl:param name="ulink.hyphenate" select="'​'"></xsl:param>
38 <!-- don't allow section titles to be hyphenated -->
39 <xsl:attribute-set name="section.title.properties">
40 <xsl:attribute name="hyphenate">false</xsl:attribute>
43 <!-- put a page break after each section
44 <xsl:attribute-set name="section.level1.properties">
45 <xsl:attribute name="break-after">page</xsl:attribute>
49 <!-- set link style to blue and underlined -->
50 <xsl:attribute-set name="xref.properties">
51 <xsl:attribute name="color">blue</xsl:attribute>
52 <xsl:attribute name="text-decoration">underline</xsl:attribute>
55 <!-- reduce the size of programlisting to make them fit the page -->
56 <xsl:attribute-set name="monospace.verbatim.properties">
57 <xsl:attribute name="font-size">80%</xsl:attribute>