]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/approaching-deadlines.xsl
added some stylesheets for list of people and sorting
[helm.git] / helm / mowgli / home / xsl / approaching-deadlines.xsl
diff --git a/helm/mowgli/home/xsl/approaching-deadlines.xsl b/helm/mowgli/home/xsl/approaching-deadlines.xsl
new file mode 100644 (file)
index 0000000..bb1a41d
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="common.xsl"/>
+<xsl:import href="deadlines.xsl"/>
+
+<xsl:output method="html"/>
+
+<xsl:template match="/">
+  <xsl:variable name="deadlines" select="events/event[position() &lt; 4]/deadline"/>
+  <xsl:apply-templates select="$deadlines">
+    <xsl:sort select="date" data-type="number"/>
+  </xsl:apply-templates>
+</xsl:template>
+
+</xsl:stylesheet>
+