]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/deadlines.xsl
This commit was manufactured by cvs2svn to create branch 'init'.
[helm.git] / helm / mowgli / home / xsl / deadlines.xsl
diff --git a/helm/mowgli/home/xsl/deadlines.xsl b/helm/mowgli/home/xsl/deadlines.xsl
deleted file mode 100644 (file)
index a71a04f..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<?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="xml"/>
-
-<xsl:param name="events-class" select="''"/>
-<xsl:param name="today" select="''"/>
-
-<xsl:template match="/">
- <html>
-  <head>
-   <title>
-    <xsl:value-of select="$events-class"/>
-    <xsl:text> Events Sorted by Deadlines</xsl:text>
-   </title>
-  </head>
-  <body>
-    <h1>
-     <xsl:value-of select="$events-class"/>
-     <xsl:text> Events</xsl:text>
-    </h1>
-    <xsl:variable name="url">
-     <xsl:choose>
-      <xsl:when test="$events-class='Other'">other-events.html</xsl:when>
-      <xsl:otherwise>mowgli-events.html</xsl:otherwise>
-     </xsl:choose>
-    </xsl:variable>
-    [<a href="{$url}">Sorted by event date</a>] [Sorted by deadline]
-    <br /><br />
-    <hr />
-    <ul>
-     <xsl:apply-templates select="events/event/deadline[date &gt;= $today]">
-      <xsl:sort select="date" data-type="number"/>
-     </xsl:apply-templates>
-    </ul>
-    <hr />
-    <h1>Past Events</h1>
-    <ul>
-     <xsl:apply-templates select="events/event/deadline[date &lt; $today]">
-      <xsl:sort select="date" data-type="number" order="descending"/>
-     </xsl:apply-templates>
-    </ul>
-  </body>
- </html>
-</xsl:template>
-
-<xsl:template match="deadline">
- <li>
-  <b>
-   <xsl:variable name="kind">
-    <xsl:call-template name="color_of_deadline_kind">
-     <xsl:with-param name="kind" select="@kind"/>
-    </xsl:call-template>
-   </xsl:variable>
-   <span style="color: {$kind}">
-    <xsl:call-template name="print_date">
-     <xsl:with-param name="date" select="date/text()"/>
-    </xsl:call-template>
-   </span>
-  </b>
-  <xsl:text> </xsl:text>
-  <xsl:value-of select="description"/>
-  <xsl:text> </xsl:text>
-  <a href="{../url}" target="_top"><xsl:value-of select="../name"/></a>
- </li>
-</xsl:template>
-
-</xsl:stylesheet>
-