]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/deadlines.xsl
A new wonderful page that shows the deadlines ordered by date.
[helm.git] / helm / mowgli / home / xsl / deadlines.xsl
diff --git a/helm/mowgli/home/xsl/deadlines.xsl b/helm/mowgli/home/xsl/deadlines.xsl
new file mode 100644 (file)
index 0000000..3c38cda
--- /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>Events Ordered by Deadlines</title>
+   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+   <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
+  </head>
+  <body>
+    <xsl:call-template name="head">
+     <xsl:with-param name="path_to_top" select="'.'"/>
+    </xsl:call-template>
+    <h1>Mowgli Events Ordered by Deadlines</h1>
+    <hr />
+    <h1>Events Of Interest to MOWGLI Ordered by Deadlines ---
+        <a href="events.html">Order by events!</a></h1>
+    <ul>
+     <xsl:apply-templates select="events/event/deadline">
+      <xsl:sort select="date" data-type="number"/>
+     </xsl:apply-templates>
+    </ul>
+    <xsl:call-template name="foot">
+     <xsl:with-param name="path_to_top" select="'.'"/>
+    </xsl:call-template>
+  </body>
+ </html>
+</xsl:template>
+
+<xsl:template match="deadline">
+ <li>
+  <b>
+   <xsl:call-template name="print_date">
+    <xsl:with-param name="date" select="date/text()"/>
+   </xsl:call-template>
+  </b>
+  <xsl:text> </xsl:text>
+  <xsl:value-of select="description"/>
+  <xsl:text> </xsl:text>
+  <a href="{../url}"><xsl:value-of select="../name"/></a>
+ </li>
+</xsl:template>
+
+</xsl:stylesheet>