diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-21 20:37:14 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-23 17:52:41 +0200 |
commit | 9fb81c6e54a2fe05c0ad0b877fd32f30358e3877 (patch) | |
tree | 8f3fd830f500b9103dfea2c63a044c5602ce9f70 /doc/docbook-html-style.xsl.cmake.in | |
parent | d651c4cd71a43c385c3d3bcd3a9f25bf0a67f8f2 (diff) |
CMake: Discover docbook stylesheet in other locations
Distributions seem to install this stuff all over the place, so
let's add a common list of paths we know about.
Diffstat (limited to 'doc/docbook-html-style.xsl.cmake.in')
-rw-r--r-- | doc/docbook-html-style.xsl.cmake.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/docbook-html-style.xsl.cmake.in b/doc/docbook-html-style.xsl.cmake.in new file mode 100644 index 000000000..9216d8e6e --- /dev/null +++ b/doc/docbook-html-style.xsl.cmake.in @@ -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="@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> |