1<?xml version='1.0'?>
2
3<!-- This file wraps around the DocBook HTML XSL stylesheet to customise
4   - some parameters; add the CSS stylesheet, etc.
5 -->
6
7<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8                version='1.0'
9                xmlns="http://www.w3.org/TR/xhtml1/transitional"
10                exclude-result-prefixes="#default">
11
12<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
13
14<xsl:variable name="html.stylesheet">../manual.css</xsl:variable>
15
16<!-- for sections with id attributes, use the id in the filename.
17  This produces meaningful (and persistent) URLs for the sections. -->
18<xsl:variable name="use.id.as.filename" select="1"/>
19
20<!-- enable the shaded verbatim (programlisting etc) blocks. -->
21<!-- <xsl:variable name="shade.verbatim" select="1"/> -->
22
23<!-- add class="programlisting" attribute on the <pre>s from
24  <programlisting>s so that the CSS can style them nicely. -->
25<xsl:attribute-set name="shade.verbatim.style">
26  <xsl:attribute name="class">programlisting</xsl:attribute>
27</xsl:attribute-set>
28
29<!-- use sane ANSI C function prototypes -->
30<xsl:variable name="funcsynopsis.style" select="'ansi'"/>
31
32<!-- split each sect1 into a separate chunk -->
33<xsl:variable name="chunk.first.sections" select="1"/>
34
35<!-- don't generate table of contents within each chapter chunk. -->
36<xsl:variable name="generate.chapter.toc" select="0"/>
37
38<xsl:variable name="generate.appendix.toc" select="0"/>
39
40<!-- don't include manual page numbers in refentry cross-references, they
41  look weird -->
42<xsl:variable name="refentry.xref.manvolnum" select="0"/>
43
44<!-- do generate variablelist's as tables -->
45<xsl:variable name="variablelist.as.table" select="1"/>
46
47<!-- and css'ize the tables so they can look pretty -->
48<xsl:variable name="table.borders.with.css" select="1"/>
49
50<!-- disable ugly tabular output -->
51<xsl:variable name="funcsynopsis.tabular.threshold" select="99999"/>
52
53<!-- change some presentation choices --> 
54<xsl:template match="type">
55  <xsl:call-template name="inline.italicseq"/>
56</xsl:template>
57
58<xsl:template match="parameter">
59  <xsl:call-template name="inline.monoseq"/>
60</xsl:template>
61
62<!-- enclose the whole funcprototype in <code> -->
63<xsl:template match="funcprototype" mode="ansi-nontabular">
64  <div class="funcprototype"><code>
65     <xsl:apply-templates mode="ansi-nontabular"/>
66  </code></div>
67</xsl:template>
68
69</xsl:stylesheet>
70
71