summaryrefslogtreecommitdiff
path: root/doc/docbook-text-style.xsl
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/docbook-text-style.xsl
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/docbook-text-style.xsl')
-rw-r--r--doc/docbook-text-style.xsl70
1 files changed, 0 insertions, 70 deletions
diff --git a/doc/docbook-text-style.xsl b/doc/docbook-text-style.xsl
deleted file mode 100644
index 376dded52..000000000
--- a/doc/docbook-text-style.xsl
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
- <xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml-1_1/docbook.xsl" />
-
- <!-- Parameters for optimal text output. -->
- <xsl:param name="callout.graphics" select="0"/>
- <xsl:param name="callout.unicode" select="0"/>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
-
- <!-- Centering and aligning title elements. -->
- <xsl:template match="/*/title[position()=1]" mode="titlepage.mode">
- <br/>
- <center>
- <xsl:apply-imports/>
- </center>
- <br/>
- <hr/> <!-- No underline, but at least something. -->
- </xsl:template>
- <xsl:template match="author|editor" mode="titlepage.mode">
- <center>
- <xsl:apply-imports/>
- </center>
- </xsl:template>
-
- <xsl:template match="releaseinfo" mode="titlepage.mode">
- <center>
- <xsl:apply-imports/>
- </center>
- <hr/>
- </xsl:template>
-
- <!-- Dirty hack to get a left margin for paragraphs etc. -->
- <xsl:template match="legalnotice/*
- |chapter/*[not(name(.)='section') and not(name(.)='title')]
- |section/*[not(name(.)='section') and not(name(.)='title')]
- |appendix/*[not(name(.)='section') and not(name(.)='title')]
- |footnote/*">
- <xsl:copy><table><tr><td>&#xa0;&#xa0;&#xa0;</td><td>
- <xsl:apply-imports/>
- </td></tr></table></xsl:copy>
- </xsl:template>
-
- <!-- Skip URLs if it has something to print. -->
- <xsl:template match="ulink[.!='']">
- <xsl:copy-of select="."/>
- </xsl:template>
- <!-- Print URLs if nothing to print. -->
- <xsl:template match="ulink[.='']">
- <xsl:value-of select="@url"/>
- </xsl:template>
-
- <!-- Make clear where notes etc. begin and end. -->
- <xsl:template match="caution|important|note|tip|warning">
- <table width="80%" border="1">
- <colgroup>
- <col align="justify"/>
- </colgroup>
- <tbody>
- <tr>
- <td align="justify">
- <xsl:apply-imports/>
- </td>
- </tr>
- </tbody>
- </table>
- </xsl:template>
-
-</xsl:stylesheet>