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"> 5]> 6<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 7 version='1.0'> 8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> 9 10 <!-- Embed our stylesheet as the user-provided <head> content. --> 11 <xsl:template name="user.head.content"><style>&css;</style></xsl:template> 12 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> 16 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> 20 21 <!-- Don't put the "Chapter 1." prefix on the "chapters". --> 22 <xsl:param name="chapter.autolabel">0</xsl:param> 23 24 <!-- Make builds reproducible by generating the same IDs from the same inputs --> 25 <xsl:param name="generate.consistent.ids">1</xsl:param> 26 27 <!-- Use <ul> for the table of contents. By default DocBook uses a 28 <dl>, which makes no semantic sense. I imagine they just did 29 it because it looks nice? --> 30 <xsl:param name="toc.list.type">ul</xsl:param> 31 32 <xsl:output method="html" encoding="utf-8" indent="no" 33 doctype-public=""/> 34</xsl:stylesheet> 35