]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/news.xsl
- added common stylesheet
[helm.git] / helm / mowgli / home / xsl / news.xsl
diff --git a/helm/mowgli/home/xsl/news.xsl b/helm/mowgli/home/xsl/news.xsl
new file mode 100644 (file)
index 0000000..d14069f
--- /dev/null
@@ -0,0 +1,51 @@
+<?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="html"/>
+
+<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">
+ <dt>
+  <b><xsl:value-of select="date"/></b>
+  <xsl:if test="head">
+   <xsl:value-of select="' -- '"/>
+   <em>
+    <xsl:value-of select="head"/>
+   </em>
+  </xsl:if>
+ </dt>
+ <dd>
+  <xsl:value-of select="description"/>
+  <xsl:if test="who">
+   <br/><br/>
+   <div class="right">
+    <em><div class="small"><xsl:value-of select="who"/></div></em>
+   </div>
+  </xsl:if>
+ </dd>
+</xsl:template>
+
+</xsl:stylesheet>