<xsl:import href="common.xsl"/>
-<xsl:output method="html"/>
+<xsl:output method="xml"/>
<xsl:template match="/">
<html>
<head>
<title>News Archive</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
- <xsl:call-template name="head"/>
<h1>News Archive</h1>
<dl>
<xsl:apply-templates/>
</dl>
- <xsl:call-template name="foot"/>
- </blockquote>
</body>
</html>
</xsl:template>
<xsl:template match="event">
+ <xsl:param name="small" select="false()"/>
<dt>
- <b><xsl:value-of select="date"/></b>
- <xsl:if test="head">
+ <b>
+ <xsl:call-template name="print_date">
+ <xsl:with-param name="date" select="date"/>
+ </xsl:call-template>
+ </b>
+ <xsl:if test="header">
<xsl:value-of select="' -- '"/>
<em>
- <xsl:value-of select="head"/>
+ <xsl:value-of select="header"/>
</em>
</xsl:if>
</dt>
<dd>
- <xsl:value-of select="description"/>
- <xsl:if test="who">
+ <xsl:copy-of select="description/*|description/text()"/>
+ <xsl:if test="not($small) and who">
<br/><br/>
<div class="right">
- <em><div class="small"><xsl:value-of select="who"/></div></em>
+ <xsl:variable name="who" select="document(concat('../xml/people/',who/@file,'.xml'))/person"/>
+ <em>
+ <a href="people/{who/@file}.html">
+ <div class="small">
+ <xsl:call-template name="person-name">
+ <xsl:with-param name="file" select="who/@file"/>
+ </xsl:call-template>
+ </div>
+ </a>
+ </em>
</div>
</xsl:if>
</dd>