diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-08-13 02:12:11 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-08-13 02:12:11 +0000 |
commit | 0d28f130ff423e1e7a300dc92bc88e4b88e8a0e1 (patch) | |
tree | bfbf86bc93df08f6fe4ecc85723dd5599a75c63d /docs/docbook/xslt | |
parent | 4e1bdbb757d2b23af46ebc92484e74db95fe3236 (diff) | |
download | samba-0d28f130ff423e1e7a300dc92bc88e4b88e8a0e1.tar.gz samba-0d28f130ff423e1e7a300dc92bc88e4b88e8a0e1.tar.bz2 samba-0d28f130ff423e1e7a300dc92bc88e4b88e8a0e1.zip |
Final update. Links work now as well
(This used to be commit 336483342c4b6a2ff2579e7b903362f408385b09)
Diffstat (limited to 'docs/docbook/xslt')
-rw-r--r-- | docs/docbook/xslt/generate-attributions.xsl | 39 | ||||
-rw-r--r-- | docs/docbook/xslt/html-common.xsl | 3 |
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> <</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> |