+++ /dev/null
-<?xml version="1.0"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:import href="common.xsl"/>
-
-<xsl:output method="xml"/>
-
-<xsl:template match="publications">
- <html>
- <head>
- <title>List of Publications</title>
- </head>
- <body>
- <h1>Publications</h1>
- <h2>About MoWGLI</h2>
- <xsl:apply-templates select="project"/>
- <h2>Related Publications</h2>
- <a name="related"/>
- <xsl:apply-templates select="related"/>
- </body>
- </html>
-</xsl:template>
-
-<xsl:template match="project">
- <xsl:choose>
- <xsl:when test="entry">
- <ul>
- <xsl:apply-templates select="entry">
- <xsl:with-param name="section" select="'mowgli'"/>
- </xsl:apply-templates>
- </ul>
- </xsl:when>
- <xsl:otherwise>
- None.
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="related">
- <xsl:choose>
- <xsl:when test="entry">
- <ul>
- <xsl:apply-templates select="entry">
- <xsl:with-param name="section" select="'others'"/>
- </xsl:apply-templates>
- </ul>
- </xsl:when>
- <xsl:otherwise>
- None.
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
-
-<xsl:template match="entry">
- <xsl:param name="section" select="''"/>
- <xsl:variable name="file" select="document(concat('../xml/publications/',$section,'/',@file,'.xml'))/publication"/>
- <li>
- <xsl:apply-templates select="$file/author"/>,
- <a href="{$section}/{@file}.html">
- <xsl:text>``</xsl:text>
- <xsl:value-of select="$file/title"/>
- <xsl:text>''</xsl:text>
- </a>
- </li>
-</xsl:template>
-
-<xsl:template match="author">
- <xsl:choose>
- <xsl:when test="@file">
- <xsl:call-template name="person-name">
- <xsl:with-param name="file" select="@file"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="surname"/>, <xsl:value-of select="name"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="position() < last()">, </xsl:if>
-</xsl:template>
-
-</xsl:stylesheet>
-