add a link to special documentation
[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 <xsl:param name="fop.extensions" select="1"/>
12
13 <!-- use graphics for admons (note, tip, ...) -->
14 <xsl:param name="admon.graphics" select="1"/>
15 <xsl:param name="admon.graphics.path">graphics/</xsl:param>
16
17 <!-- use numbering for sections (not only for chapters) -->
18 <xsl:param name="section.autolabel" select="1"/>
19 <xsl:param name="section.label.includes.component.label" select="1"/>
20
21 <!-- include a single TOC (use book style TOC, removes the list of figures etc.) -->
22 <xsl:param name="generate.toc" select="'book toc'"/>
23
24 <!-- include page numbers in cross references -->
25 <!-- <xsl:param name="insert.xref.page.number" select="1"/> -->
26
27 <!-- don't show URL's, but only the text of it -->
28 <xsl:param name="ulink.show" select="0"/>
29
30 <!-- hyphenate URL's after the slash -->
31 <!-- (http://docbook.sourceforge.net/release/xsl/current/doc/fo/ulink.hyphenate.html) -->
32 <xsl:param name="ulink.hyphenate" select="'&#x200b;'"></xsl:param>
33
34 <!-- don't allow section titles to be hyphenated -->
35 <xsl:attribute-set name="section.title.properties">
36   <xsl:attribute name="hyphenate">false</xsl:attribute>
37 </xsl:attribute-set>
38
39 <!-- put a page break after each section -->
40 <xsl:attribute-set name="section.level1.properties">
41   <xsl:attribute name="break-after">page</xsl:attribute>
42 </xsl:attribute-set>
43
44 <!-- set link style to blue and underlined -->
45 <xsl:attribute-set name="xref.properties">
46   <xsl:attribute name="color">blue</xsl:attribute>
47   <xsl:attribute name="text-decoration">underline</xsl:attribute>
48 </xsl:attribute-set>
49
50 </xsl:stylesheet>