summaryrefslogtreecommitdiff
path: root/man/custom-html.xsl
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-07-17 23:04:48 +0200
committerKay Sievers <kay@vrfy.org>2012-07-17 23:04:48 +0200
commitecca17f6eec83b58f39ff5dc7894044c524ddf41 (patch)
tree9599a855a655e7c773c85ab8d4f68ebffa16d514 /man/custom-html.xsl
parente4d9640961362dae47dd8a4d97dfe7e9436395cd (diff)
man: html - cross-ref man page references and add Index link
Diffstat (limited to 'man/custom-html.xsl')
-rw-r--r--man/custom-html.xsl21
1 files changed, 21 insertions, 0 deletions
diff --git a/man/custom-html.xsl b/man/custom-html.xsl
index df16d08718..906ddc5572 100644
--- a/man/custom-html.xsl
+++ b/man/custom-html.xsl
@@ -23,6 +23,27 @@
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
+<!-- translate man page references to links to html pages -->
+<xsl:template match="citerefentry">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="refentrytitle"/><xsl:text>.html</xsl:text>
+ </xsl:attribute>
+ <xsl:call-template name="inline.charseq"/>
+ </a>
+</xsl:template>
+
+<!-- add Index link at top of page -->
+<xsl:template name="user.header.content">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:text>index.html</xsl:text>
+ </xsl:attribute>
+ <xsl:text>Index </xsl:text>
+ </a>
+ <hr/>
+</xsl:template>
+
<!-- Switch things to UTF-8, ISO-8859-1 is soo yesteryear -->
<xsl:output method="html" encoding="UTF-8" indent="no"/>