]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/news.xsl
- main page now generated automatically
[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  <dt>
34   <b><xsl:value-of select="date"/></b>
35   <xsl:if test="header">
36    <xsl:value-of select="' -- '"/>
37    <em>
38     <xsl:value-of select="header"/>
39    </em>
40   </xsl:if>
41  </dt>
42  <dd>
43   <xsl:value-of select="description"/>
44   <xsl:if test="who">
45    <br/><br/>
46    <div class="right">
47     <xsl:variable name="who" select="document(concat('../xml/people/',who/@file,'.xml'))/person"/>
48     <em>
49      <a href="people/{who/@file}.html">
50       <div class="small">
51        <xsl:call-template name="person-name">
52         <xsl:with-param name="file" select="who/@file"/>
53        </xsl:call-template>
54       </div>
55      </a>
56     </em>
57    </div>
58   </xsl:if>
59  </dd>
60 </xsl:template>
61
62 </xsl:stylesheet>