1 <!-- This custom XSL tweaks the DocBook XML -> HTML settings to produce
2 an OK-looking manual. -->
3 <!DOCTYPE xsl:stylesheet [
4 <!ENTITY css SYSTEM "style.css">
6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
10 <!-- Embed our stylesheet as the user-provided <head> content. -->
11 <xsl:template name="user.head.content"><style>&css;</style></xsl:template>
13 <!-- Remove the body.attributes block, which specifies a bunch of
14 useless bgcolor etc. attrs on the <body> tag. -->
15 <xsl:template name="body.attributes"></xsl:template>
17 <!-- Specify that in "book" form (which we're using), we only want a
18 single table of contents at the beginning of the document. -->
19 <xsl:param name="generate.toc">book toc</xsl:param>
21 <!-- Don't put the "Chapter 1." prefix on the "chapters". -->
22 <xsl:param name="chapter.autolabel">0</xsl:param>
24 <!-- Use <ul> for the table of contents. By default DocBook uses a
25 <dl>, which makes no semantic sense. I imagine they just did
26 it because it looks nice? -->
27 <xsl:param name="toc.list.type">ul</xsl:param>
29 <xsl:output method="html" encoding="utf-8" indent="no"