summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/asciidoc/docbook-xsl/epub.xsl
blob: b15748d36eea6f25ec56f25eacb32a502715bf24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!--
  Generates EPUB XHTML documents from DocBook XML source using DocBook XSL
  stylesheets.

  NOTE: The URL reference to the current DocBook XSL stylesheets is
  rewritten to point to the copy on the local disk drive by the XML catalog
  rewrite directives so it doesn't need to go out to the Internet for the
  stylesheets. This means you don't need to edit the <xsl:import> elements on
  a machine by machine basis.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl"/>
<xsl:import href="common.xsl"/>

<!--
DocBook XSL 1.75.2: Nav headers are invalid XHTML (table width element).
Suppressed by default in Docbook XSL 1.76.1 epub.xsl.
-->
<xsl:param name="suppress.navigation" select="1"/>

<!--
DocBook XLS 1.75.2 doesn't handle TOCs
-->
<xsl:param name="generate.toc">
  <xsl:choose>
    <xsl:when test="/article">
/article  nop
    </xsl:when>
    <xsl:when test="/book">
/book  nop
    </xsl:when>
  </xsl:choose>
</xsl:param>

</xsl:stylesheet>