]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/news.xsl
- renamed some files
[helm.git] / helm / mowgli / home / xsl / news.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet version="1.0"
4                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6 <xsl:import href="common.xsl"/>
7
8 <xsl:output method="html"/>
9
10 <xsl:template match="/">
11  <html>
12   <head>
13    <title>News Archive</title>
14    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
16   </head>
17   <body>
18     <xsl:call-template name="head">
19      <xsl:with-param name="path_to_top" select="'.'"/>
20     </xsl:call-template>
21     <h1>News Archive</h1>
22     <dl>
23      <xsl:apply-templates/>
24     </dl>
25     <xsl:call-template name="foot">
26      <xsl:with-param name="path_to_top" select="'.'"/>
27     </xsl:call-template>
28   </body>
29  </html>
30 </xsl:template>
31
32 <xsl:template match="event">
33  <xsl:param name="small" select="false()"/>
34  <dt>
35   <b><xsl:value-of select="date"/></b>
36   <xsl:if test="header">
37    <xsl:value-of select="' -- '"/>
38    <em>
39     <xsl:value-of select="header"/>
40    </em>
41   </xsl:if>
42  </dt>
43  <dd>
44   <xsl:value-of select="description"/>
45   <xsl:if test="not($small) and who">
46    <br/><br/>
47    <div class="right">
48     <xsl:variable name="who" select="document(concat('../xml/people/',who/@file,'.xml'))/person"/>
49     <em>
50      <a href="people/{who/@file}.html">
51       <div class="small">
52        <xsl:call-template name="person-name">
53         <xsl:with-param name="file" select="who/@file"/>
54        </xsl:call-template>
55       </div>
56      </a>
57     </em>
58    </div>
59   </xsl:if>
60  </dd>
61 </xsl:template>
62
63 </xsl:stylesheet>