Merge "Imported Upstream version 1.9.0" into tizen
[platform/upstream/ninja.git] / doc / docbook.xsl
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   <!-- 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>
28
29   <xsl:output method="html" encoding="utf-8" indent="no"
30               doctype-public=""/>
31 </xsl:stylesheet>