2 <!-- vim:set sts=2 shiftwidth=2 syntax=xml: -->
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 <!-- the @..@ is substituted by config.status to contain the XSL release selected
9 <xsl:import href="http://docbook.sourceforge.net/release/xsl/@XSLREL@/html/docbook.xsl"/>
11 <xsl:import href="settings.xsl"/>
13 <xsl:param name="citerefentry.link" select="'1'"/>
14 <xsl:param name="css.decoration" select="1"/>
15 <xsl:param name="html.stylesheet" select="'amanda.css'"/>
16 <xsl:param name="html.stylesheet.type">text/css</xsl:param>
17 <xsl:param name="html.cleanup" select="1"/>
18 <xsl:param name="use.extensions" select="'0'"/>
19 <xsl:param name="use.id.as.filename" select="'0'"/>
20 <xsl:param name="use.local.olink.style" select="1"/>
21 <xsl:param name="use.role.as.xrefstyle" select="1"/>
22 <xsl:param name="refentry.generate.title" select="1"/>
24 <xsl:output method="html"
28 <!-- generate correct links to other manpages -->
29 <xsl:template name="generate.citerefentry.link">
30 <xsl:value-of select="refentrytitle"/><xsl:text>.</xsl:text><xsl:value-of select="manvolnum"/><xsl:text>.html</xsl:text>
33 <!-- add missing AUTHOR(S) section -->
34 <!-- this section originated with fglrx_man:
35 http://vcs.wgdd.de/cvsweb/fglrx_man/fglrx_html.xsl?rev=1.5
36 License information from that file:
37 This file is free software. The copyright owner gives unlimited
38 permission to copy, distribute and modify it.
40 <xsl:template match="refentry">
41 <div class="refentry">
42 <xsl:apply-templates/>
44 <xsl:when test="refentryinfo//author">
45 <xsl:apply-templates select="refentryinfo" mode="authorsect"/>
51 <xsl:template match="refentryinfo" mode="authorsect">
52 <div class="refsect1">
54 <xsl:text>AUTHOR</xsl:text>
55 <xsl:if test="count(.//author)+count(.//othercredit)>1">
56 <xsl:text>S</xsl:text>
59 <xsl:text> </xsl:text>
60 <xsl:if test="count(.//author)>0">
62 <xsl:text>This manual page was written by </xsl:text>
63 <xsl:for-each select=".//author">
64 <xsl:if test="position() > 1">
66 <xsl:when test="position() = last()">
67 <xsl:text> and </xsl:text>
70 <xsl:text>, </xsl:text>
74 <xsl:apply-templates select="." mode="authorsect"/>
76 <xsl:text>.</xsl:text>
79 <xsl:if test="count(.//othercredit)>0">
81 <xsl:text>Contributions were derived from </xsl:text>
82 <xsl:for-each select=".//othercredit">
83 <xsl:if test="position() > 1">
85 <xsl:when test="position() = last()">
86 <xsl:text> and </xsl:text>
89 <xsl:text>, </xsl:text>
93 <xsl:apply-templates select="." mode="authorsect"/>
95 <xsl:text>.</xsl:text>
98 <xsl:if test="count(.//editor)>0">
100 <xsl:text disable-output-escaping="yes">Edited by </xsl:text>
101 <xsl:for-each select=".//editor">
102 <xsl:if test="position() > 1">
104 <xsl:when test="position() = last()">
105 <xsl:text> and </xsl:text>
108 <xsl:text>, </xsl:text>
112 <xsl:apply-templates select="." mode="authorsect"/>
114 <xsl:text>.</xsl:text>
120 <xsl:template match="affiliation" mode="authorsect">
122 <xsl:when test="./org/uri">
124 <xsl:attribute name="href">
125 <xsl:apply-templates select="./org/uri" />
127 <xsl:apply-templates select="./org/orgname" />
131 <xsl:apply-templates select="./org/orgname" />
136 <xsl:template match="author|editor|othercredit" mode="authorsect">
137 <span class="{name(.)}">
138 <xsl:call-template name="anchor"/>
139 <xsl:call-template name="person.name"/>
140 <xsl:if test=".//email">
141 <xsl:text> </xsl:text>
142 <xsl:apply-templates select=".//email"/>
144 <xsl:if test=".//affiliation">
145 <xsl:text> (</xsl:text>
146 <xsl:apply-templates mode="authorsect" select="./affiliation"/>
147 <xsl:text>)</xsl:text>
152 <xsl:template name="user.footer.content">
154 <center>Amanda-@VERSION@</center>