]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/approaching-deadlines.xsl
foo main program that instantiate a client GUI, for debugging purposes
[helm.git] / helm / mowgli / home / xsl / approaching-deadlines.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 <xsl:import href="deadlines.xsl"/>
8
9 <xsl:output method="xml"/>
10
11 <xsl:param name="today"/>
12
13 <xsl:template match="/">
14  <html-fragment>
15   <h3>Approaching Deadlines:</h3>
16   <xsl:for-each select="events/event/deadline[date &gt;= $today]">
17    <xsl:sort select="date" data-type="number"/>
18    <xsl:if test="position() &lt; 4">
19     <xsl:apply-templates select="."/>
20    </xsl:if>
21   </xsl:for-each>
22  </html-fragment>
23 </xsl:template>
24
25 </xsl:stylesheet>