From Tom Brezinski:
[obnox/wireshark/wip.git] / docbook / custom_layer_pdf.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 version="1.0">
4
5 <!-- $Id$ -->
6
7 <!-- import the main stylesheet -->
8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
9
10 <!-- create pdf bookmarks -->
11 <!-- Disable this since FOP 0.93 doesn't handle them, yet -->
12 <xsl:param name="fop1.extensions" select="1"/>
13
14 <!-- don't use the draft mode (no loading of image from the web) -->
15 <xsl:param name="draft.mode" select="no"/>
16
17 <!-- use graphics for admons (note, tip, ...) -->
18 <xsl:param name="admon.graphics" select="1"/>
19 <xsl:param name="admon.graphics.path">wsug_graphics/</xsl:param>
20 <xsl:param name="admon.graphics.extension" select="'.png'"/>
21
22 <!-- use numbering for sections (not only for chapters) -->
23 <xsl:param name="section.autolabel" select="1"/>
24 <xsl:param name="section.label.includes.component.label" select="1"/>
25
26 <!-- include a single TOC (use book style TOC, removes the list of figures etc.) -->
27 <xsl:param name="generate.toc" select="'book toc'"/>
28
29 <!-- include page numbers in cross references -->
30 <!-- <xsl:param name="insert.xref.page.number" select="1"/> -->
31
32 <!-- don't show URL's, but only the text of it -->
33 <xsl:param name="ulink.show" select="0"/>
34
35 <!-- hyphenate URL's after the slash -->
36 <!-- (http://docbook.sourceforge.net/release/xsl/current/doc/fo/ulink.hyphenate.html) -->
37 <xsl:param name="ulink.hyphenate.chars" select="'/:'"></xsl:param>
38 <xsl:param name="ulink.hyphenate" select="'&#x200B;'"></xsl:param>
39
40 <!-- don't allow section titles to be hyphenated -->
41 <xsl:attribute-set name="section.title.properties">
42   <xsl:attribute name="hyphenate">false</xsl:attribute>
43 </xsl:attribute-set>
44
45 <!-- put a page break after each section 
46 <xsl:attribute-set name="section.level1.properties">
47   <xsl:attribute name="break-after">page</xsl:attribute>
48 </xsl:attribute-set>
49 -->
50
51 <!-- set link style to blue and underlined -->
52 <xsl:attribute-set name="xref.properties">
53   <xsl:attribute name="color">blue</xsl:attribute>
54   <xsl:attribute name="text-decoration">underline</xsl:attribute>
55 </xsl:attribute-set>
56
57 <!-- reduce the size of programlisting to make them fit the page -->
58 <xsl:attribute-set name="monospace.verbatim.properties">
59   <xsl:attribute name="font-size">80%</xsl:attribute>
60 </xsl:attribute-set>
61
62 </xsl:stylesheet>