]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/news.xsl
Fixed broken links to IST images.
[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    <blockquote>
19     <xsl:call-template name="head">
20      <xsl:with-param name="path_to_top" select="'.'"/>
21     </xsl:call-template>
22     <h1>News Archive</h1>
23     <dl>
24      <xsl:apply-templates/>
25     </dl>
26     <xsl:call-template name="foot">
27      <xsl:with-param name="path_to_top" select="'.'"/>
28     </xsl:call-template>
29    </blockquote>
30   </body>
31  </html>
32 </xsl:template>
33
34 <xsl:template match="event">
35  <dt>
36   <b><xsl:value-of select="date"/></b>
37   <xsl:if test="head">
38    <xsl:value-of select="' -- '"/>
39    <em>
40     <xsl:value-of select="head"/>
41    </em>
42   </xsl:if>
43  </dt>
44  <dd>
45   <xsl:value-of select="description"/>
46   <xsl:if test="who">
47    <br/><br/>
48    <div class="right">
49     <xsl:variable name="who" select="document(concat('../xml/people/',who/@file,'.xml'))/person"/>
50     <em>
51      <a href="people/{who/@file}.html">
52       <div class="small">
53        <xsl:call-template name="person-name">
54         <xsl:with-param name="file" select="who/@file"/>
55        </xsl:call-template>
56       </div>
57      </a>
58     </em>
59    </div>
60   </xsl:if>
61  </dd>
62 </xsl:template>
63
64 </xsl:stylesheet>