2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
3 xmlns:
exsl=
"http://exslt.org/common"
4 xmlns:
samba=
"http://samba.org/common"
6 extension-element-prefixes=
"exsl">
8 <xsl:output method=
"xml" omit-xml-declaration=
"yes"/>
10 <!-- Remove all character data -->
11 <xsl:template match=
"@*|node()">
12 <xsl:apply-templates select=
"@*|node()"/>
15 <xsl:template match=
"chapter">
17 <xsl:when test=
"chapterinfo/author != ''">
18 <xsl:element name=
"para">
19 <xsl:element name=
"link">
20 <xsl:attribute name=
"linkend"><xsl:value-of select=
"@id"/></xsl:attribute>
21 <xsl:value-of select=
"title"/>
23 <xsl:element name=
"itemizedlist">
24 <xsl:apply-templates/>
31 <xsl:template match=
"author">
32 <xsl:element name=
"listitem">
33 <xsl:element name=
"para">
34 <xsl:value-of select=
"firstname"/>
35 <xsl:if test=
"othername != ''">
36 <xsl:text> </xsl:text>
37 <xsl:value-of select=
"othername"/>
38 <xsl:text> </xsl:text>
40 <xsl:text> </xsl:text><xsl:value-of select=
"surname"/>
42 <xsl:when test=
"affiliation/address/email != ''">
43 <xsl:text> <</xsl:text>
44 <xsl:element name=
"ulink">
45 <xsl:attribute name=
"noescape">
46 <xsl:text>1</xsl:text>
48 <xsl:attribute name=
"url">
49 <xsl:text>mailto:
</xsl:text>
50 <xsl:value-of select=
"affiliation/address/email"/>
52 <xsl:value-of select=
"affiliation/address/email"/>
54 <xsl:text>></xsl:text>
58 <xsl:when test=
"contrib != ''">
59 <xsl:text> (
</xsl:text>
60 <xsl:value-of select=
"contrib"/>
61 <xsl:text>)
</xsl:text>