3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:import href="common.xsl"/>
8 <xsl:output method="xml"/>
10 <xsl:template match="publications">
13 <title>List of Publications</title>
18 <xsl:apply-templates select="project"/>
19 <h2>Related Publications</h2>
21 <xsl:apply-templates select="related"/>
26 <xsl:template match="project">
28 <xsl:when test="entry">
30 <xsl:apply-templates select="entry">
31 <xsl:with-param name="section" select="'mowgli'"/>
32 </xsl:apply-templates>
41 <xsl:template match="related">
43 <xsl:when test="entry">
45 <xsl:apply-templates select="entry">
46 <xsl:with-param name="section" select="'others'"/>
47 </xsl:apply-templates>
56 <xsl:template match="entry">
57 <xsl:param name="section" select="''"/>
58 <xsl:variable name="file" select="document(concat('../xml/publications/',$section,'/',@file,'.xml'))/publication"/>
60 <xsl:apply-templates select="$file/author"/>,
61 <a href="{$section}/{@file}.html">
62 <xsl:text>``</xsl:text>
63 <xsl:value-of select="$file/title"/>
64 <xsl:text>''</xsl:text>
69 <xsl:template match="author">
71 <xsl:when test="@file">
72 <xsl:call-template name="person-name">
73 <xsl:with-param name="file" select="@file"/>
77 <xsl:value-of select="surname"/>, <xsl:value-of select="name"/>
80 <xsl:if test="position() < last()">, </xsl:if>