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>
25 <xsl:apply-templates select="related"/>
26 <xsl:call-template name="foot">
27 <xsl:with-param name="path_to_top" select="'..'"/>
33 <xsl:template match="project">
35 <xsl:when test="entry">
37 <xsl:apply-templates select="entry">
38 <xsl:with-param name="section" select="'mowgli'"/>
39 </xsl:apply-templates>
48 <xsl:template match="related">
50 <xsl:when test="entry">
52 <xsl:apply-templates select="entry">
53 <xsl:with-param name="section" select="'others'"/>
54 </xsl:apply-templates>
63 <xsl:template match="entry">
64 <xsl:param name="section" select="''"/>
65 <xsl:variable name="file" select="document(concat('../xml/publications/',$section,'/',@file,'.xml'))/publication"/>
67 <xsl:apply-templates select="$file/author"/>,
68 <a href="{$section}/{@file}.html">
69 <xsl:text>``</xsl:text>
70 <xsl:value-of select="$file/title"/>
71 <xsl:text>''</xsl:text>
76 <xsl:template match="author">
78 <xsl:when test="@file">
79 <xsl:call-template name="person-name">
80 <xsl:with-param name="file" select="@file"/>
84 <xsl:value-of select="surname"/>, <xsl:value-of select="name"/>
87 <xsl:if test="position() < last()">, </xsl:if>