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="html"/>
10 <xsl:template match="publications">
13 <title>List of Publications</title>
14 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15 <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
18 <xsl:call-template name="head">
19 <xsl:with-param name="path_to_top" select="'..'"/>
23 <xsl:apply-templates select="project"/>
24 <h2>Related Publications</h2>
26 <xsl:apply-templates select="related"/>
27 <xsl:call-template name="foot">
28 <xsl:with-param name="path_to_top" select="'..'"/>
34 <xsl:template match="project">
36 <xsl:when test="entry">
38 <xsl:apply-templates select="entry">
39 <xsl:with-param name="section" select="'mowgli'"/>
40 </xsl:apply-templates>
49 <xsl:template match="related">
51 <xsl:when test="entry">
53 <xsl:apply-templates select="entry">
54 <xsl:with-param name="section" select="'others'"/>
55 </xsl:apply-templates>
64 <xsl:template match="entry">
65 <xsl:param name="section" select="''"/>
66 <xsl:variable name="file" select="document(concat('../xml/publications/',$section,'/',@file,'.xml'))/publication"/>
68 <xsl:apply-templates select="$file/author"/>,
69 <a href="{$section}/{@file}.html">
70 <xsl:text>``</xsl:text>
71 <xsl:value-of select="$file/title"/>
72 <xsl:text>''</xsl:text>
77 <xsl:template match="author">
79 <xsl:when test="@file">
80 <xsl:call-template name="person-name">
81 <xsl:with-param name="file" select="@file"/>
85 <xsl:value-of select="surname"/>, <xsl:value-of select="name"/>
88 <xsl:if test="position() < last()">, </xsl:if>