summaryrefslogtreecommitdiff
path: root/doc/docbook-html-style.xsl
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-07-08 13:37:11 +0200
committerMichael Vogt <mvo@debian.org>2014-07-08 13:37:11 +0200
commit2830b8436ac8a6f2f3dac4ce2cd030c24eebce04 (patch)
treedcdaba1119e595edc8842c2e8746acdf25af6260 /doc/docbook-html-style.xsl
parentbcc352afa890788825dfbd1454847456748f511f (diff)
parent521dd27dc33c8b2a6947a76872841f4254df4e58 (diff)
Merge branch 'debian/sid' into debian/experimental
Conflicts: apt-pkg/deb/deblistparser.cc doc/po/apt-doc.pot doc/po/de.po doc/po/es.po doc/po/fr.po doc/po/it.po doc/po/ja.po doc/po/pl.po doc/po/pt.po doc/po/pt_BR.po po/da.po po/mr.po po/vi.po
Diffstat (limited to 'doc/docbook-html-style.xsl')
-rw-r--r--doc/docbook-html-style.xsl40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/docbook-html-style.xsl b/doc/docbook-html-style.xsl
new file mode 100644
index 000000000..e4af9f557
--- /dev/null
+++ b/doc/docbook-html-style.xsl
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <!-- Import our base stylesheet -->
+ <xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml-1_1/chunk.xsl" />
+
+ <!-- Since we use xsltproc (not saxon), add a workaround to ensure UTF-8 -->
+ <xsl:template xmlns="http://www.w3.org/1999/xhtml" name="head.content.generator">
+ <xsl:param name="node" select="."/>
+ <meta name="generator" content="DocBook {$DistroTitle} V{$VERSION}"/>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ </xsl:template>
+
+ <xsl:template name="generate.html.title"/>
+
+ <xsl:template match="releaseinfo" mode="titlepage.mode">
+ <xsl:apply-imports/>
+ <hr/>
+ </xsl:template>
+
+ <xsl:param name="root.filename">index</xsl:param>
+
+ <!-- We do not want a title in HTML. -->
+ <xsl:param name="generate.meta.abstract" select="0"/>
+
+ <!-- We do not want the first subsection on the same page as content. -->
+ <xsl:param name="chunk.first.sections" select="0"/>
+ <xsl:param name="chunk.section.depth" select="0"/>
+ <xsl:param name="chunker.output.indent" select="'yes'"/>
+
+ <xsl:param name="use.id.as.filename" select="1"/>
+
+ <xsl:param name="toc.section.depth" select="1"/>
+ <xsl:param name="generate.section.toc.level" select="0"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
+ <xsl:param name="section.autolabel" select="1"/>
+
+ <xsl:param name="generate.css.header" select="1"/>
+
+</xsl:stylesheet>