diff options
author | Michael Vogt <mvo@debian.org> | 2014-07-08 13:37:11 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-07-08 13:37:11 +0200 |
commit | 2830b8436ac8a6f2f3dac4ce2cd030c24eebce04 (patch) | |
tree | dcdaba1119e595edc8842c2e8746acdf25af6260 /doc/docbook-text-style.xsl | |
parent | bcc352afa890788825dfbd1454847456748f511f (diff) | |
parent | 521dd27dc33c8b2a6947a76872841f4254df4e58 (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-text-style.xsl')
-rw-r--r-- | doc/docbook-text-style.xsl | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/doc/docbook-text-style.xsl b/doc/docbook-text-style.xsl new file mode 100644 index 000000000..376dded52 --- /dev/null +++ b/doc/docbook-text-style.xsl @@ -0,0 +1,70 @@ +<?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>   </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> |