summaryrefslogtreecommitdiff
path: root/doc/manpage-style.xsl.cmake.in
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-21 20:37:14 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-23 17:52:41 +0200
commit9fb81c6e54a2fe05c0ad0b877fd32f30358e3877 (patch)
tree8f3fd830f500b9103dfea2c63a044c5602ce9f70 /doc/manpage-style.xsl.cmake.in
parentd651c4cd71a43c385c3d3bcd3a9f25bf0a67f8f2 (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/manpage-style.xsl.cmake.in')
-rw-r--r--doc/manpage-style.xsl.cmake.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/manpage-style.xsl.cmake.in b/doc/manpage-style.xsl.cmake.in
new file mode 100644
index 000000000..53d6780cb
--- /dev/null
+++ b/doc/manpage-style.xsl.cmake.in
@@ -0,0 +1,18 @@
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:import href="@DOCBOOK_XSL@/manpages/docbook.xsl" />
+
+<xsl:param name="man.output.encoding" select="'UTF-8'" />
+
+<xsl:template match="email">&lt;<xsl:apply-templates/>&gt;</xsl:template>
+
+<xsl:template match="date">
+ <xsl:call-template name="datetime.format">
+ <xsl:with-param name="date" select="."/>
+ <xsl:with-param name="format" select="'d B Y'"/>
+ </xsl:call-template>
+</xsl:template>
+
+</xsl:stylesheet>