summaryrefslogtreecommitdiff
path: root/docs/docbook/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docbook/xslt')
-rw-r--r--docs/docbook/xslt/generate-attributions.xsl39
-rw-r--r--docs/docbook/xslt/html-common.xsl3
2 files changed, 24 insertions, 18 deletions
diff --git a/docs/docbook/xslt/generate-attributions.xsl b/docs/docbook/xslt/generate-attributions.xsl
index c781a77cc4..29683b1921 100644
--- a/docs/docbook/xslt/generate-attributions.xsl
+++ b/docs/docbook/xslt/generate-attributions.xsl
@@ -12,38 +12,39 @@
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
-<xsl:template match="book">
- <xsl:element name="variablelist">
- <xsl:apply-templates/>
- </xsl:element>
-</xsl:template>
-
<xsl:template match="chapter">
- <xsl:element name="varlistentry">
- <xsl:element name="term">
- <xsl:element name="link">
- <xsl:attribute name="linkend"><xsl:value-of select="@id"/></xsl:attribute>
- <xsl:value-of select="title"/>
- </xsl:element>
- </xsl:element>
- <xsl:element name="listitem">
+ <xsl:choose>
+ <xsl:when test="chapterinfo/author != ''">
<xsl:element name="para">
+ <xsl:element name="link">
+ <xsl:attribute name="linkend"><xsl:value-of select="@id"/></xsl:attribute>
+ <xsl:value-of select="title"/>
+ </xsl:element>
<xsl:element name="itemizedlist">
- <xsl:apply-templates/>
+ <xsl:apply-templates/>
</xsl:element>
</xsl:element>
- </xsl:element>
- </xsl:element>
+ </xsl:when>
+ </xsl:choose>
</xsl:template>
<xsl:template match="author">
<xsl:element name="listitem">
<xsl:element name="para">
- <xsl:value-of select="firstname"/><xsl:text> </xsl:text><xsl:value-of select="surname"/>
+ <xsl:value-of select="firstname"/>
+ <xsl:if test="othername != ''">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="othername"/>
+ <xsl:text> </xsl:text>
+ </xsl:if>
+ <xsl:text> </xsl:text><xsl:value-of select="surname"/>
<xsl:choose>
<xsl:when test="affiliation/address/email != ''">
<xsl:text> &lt;</xsl:text>
<xsl:element name="ulink">
+ <xsl:attribute name="noescape">
+ <xsl:text>1</xsl:text>
+ </xsl:attribute>
<xsl:attribute name="url">
<xsl:text>mailto:</xsl:text>
<xsl:value-of select="affiliation/address/email"/>
@@ -62,6 +63,8 @@
</xsl:choose>
</xsl:element>
</xsl:element>
+ <xsl:text>
+ </xsl:text>
</xsl:template>
</xsl:stylesheet>
diff --git a/docs/docbook/xslt/html-common.xsl b/docs/docbook/xslt/html-common.xsl
index ecb8a08662..dce900ef67 100644
--- a/docs/docbook/xslt/html-common.xsl
+++ b/docs/docbook/xslt/html-common.xsl
@@ -19,4 +19,7 @@
<xsl:value-of select="refentrytitle"/><xsl:text>.</xsl:text><xsl:value-of select="manvolnum"/><xsl:text>.html</xsl:text>
</xsl:template>
+<xsl:template match="author">
+</xsl:template>
+
</xsl:stylesheet>