]> matita.cs.unibo.it Git - helm.git/commitdiff
A new wonderful page that shows the deadlines ordered by date.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 15 Feb 2002 13:44:09 +0000 (13:44 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 15 Feb 2002 13:44:09 +0000 (13:44 +0000)
Moreover, I have added a new set of functions in commond.xsl
to pretty-print in English a date encoded as 20020218 (that is
easy to sort!).

helm/mowgli/home/html/.cvsignore
helm/mowgli/home/html/Makefile
helm/mowgli/home/xml/other-events.xml
helm/mowgli/home/xsl/common.xsl
helm/mowgli/home/xsl/deadlines.xsl [new file with mode: 0644]
helm/mowgli/home/xsl/events.xsl

index 828d45510bd14f24af32c547534f1ba8e31b8641..c9b0d1e2e352108ef40ff7dfbc64223a31e18777 100644 (file)
@@ -7,3 +7,4 @@ consortium.html
 project.html 
 news.html
 events.html
+deadlines.html
index 9d07d1f620b19475dfa201a4f03bd475d026e3d2..e9005bfa6e914a012a94af509e657268245adc4c 100644 (file)
@@ -16,6 +16,7 @@ DOCUMENTS = \
             project.html \
            news.html \
            events.html \
+           deadlines.html \
             deliverables/distribution/d5a.html \
             deliverables/distribution/d5b.html \
             deliverables/information-dissemination-and-exploitation/d7a.html \
@@ -143,6 +144,10 @@ events.html: $(XMLROOT)/other-events.xml \
           $(XSLROOT)/events.xsl
        xsltproc -o $@ $(XSLROOT)/events.xsl $<
 
+deadlines.html: $(XMLROOT)/other-events.xml \
+          $(XSLROOT)/deadlines.xsl
+       xsltproc -o $@ $(XSLROOT)/deadlines.xsl $<
+
 deliverables/%.html: $(XMLROOT)/deliverables/%.xml \
               $(XSLROOT)/deliverable.xsl
        xsltproc -o $@ $(XSLROOT)/deliverable.xsl $<
index bb169733277248b67a94f3945cba9689475b59d6..32562144a940b42160f72b05befc60e7545610b6 100644 (file)
  <event>
   <name>MKM 2001</name>
   <url>http://www.risc.uni-linz.ac.at/institute/conferences/MKM2001</url>
+  <description>Special Issue for Annalas of Mathematics and Artificial
+   Intelligence to appear in Fall 2002</description>
   <deadline>
    <description>Notification of acceptance for the special issue on
      Annals of Mathematics and Artificial Intelligence.</description>
-   <date>February 28th, 2002</date>
+   <date>20020228</date>
   </deadline>
   <deadline>
    <description>Final version of papers for the special issue.</description>
-   <date>May 31st, 2002</date>
-  </deadline>
-  <deadline>
-   <description>Special Issue to appear.</description>
-   <date>Fall 2002</date>
+   <date>20020531</date>
   </deadline>
  </event>
 
   <when>June 28-30, 2002</when>
   <deadline>
    <description>Abstracts for papers and panel proposals due</description>
-   <date>February 18th, 2002</date>
+   <date>20020218</date>
   </deadline>
   <deadline>
    <description>Notification of acceptance for papers and panels</description>
-   <date>March 11th, 2002</date>
+   <date>20020311</date>
   </deadline>
   <deadline>
    <description>Poster abstracts and demo proposals due</description>
-   <date>March 15th, 2002</date>
+   <date>20020315</date>
   </deadline>
   <deadline>
    <description>Notification of acceptance for posters and demos</description>
-   <date>March 29th, 2002</date>
+   <date>20020329</date>
   </deadline>
   <deadline>
    <description>Last day for early registration</description>
-   <date>May 17th, 2002</date>
+   <date>20020517</date>
   </deadline>
   <deadline>
    <description>Deadline for full papers for JSC special issue</description>
-   <date>July 26th, 2002</date>
+   <date>20020626</date>
   </deadline>
  </event>
 
   <when>November 6-9, 2002</when>
   <deadline>
    <description>Abstracts due</description>
-   <date>February 15th, 2002</date>
+   <date>20020215</date>
   </deadline>
   <deadline>
    <description>Full papers due</description>
-   <date>June 28th, 2002</date>
+   <date>20020228</date>
   </deadline>
  </event>
 
   <when>August 20-23, 2002</when>
   <deadline>
    <description>Category A papers due</description>
-   <date>February 22nd, 2002</date>
+   <date>20020222</date>
   </deadline>
   <deadline>
    <description>Category A notification of acceptance</description>
-   <date>April 22nd, 2002</date>
+   <date>20020422</date>
   </deadline>
   <deadline>
    <description>Category B papers due</description>
-   <date>May 17th, 2002</date>
+   <date>20020517</date>
   </deadline>
   <deadline>
    <description>Category A camera-ready copy due</description>
-   <date>May 24th, 2002</date>
+   <date>20020524</date>
   </deadline>
   <deadline>
    <description>Category B notification of acceptance</description>
-   <date>June 17nd, 2002</date>
+   <date>20020617</date>
   </deadline>
   <deadline>
    <description>Category B camera-ready copy due</description>
-   <date>July 5th, 2002</date>
+   <date>20020705</date>
   </deadline>
  </event>
  <event>
   <when>May 7th, 2002</when>
   <deadline>
    <description>Paper submission</description>
-   <date>March 1st, 2002</date>
+   <date>20020301</date>
   </deadline>
   <deadline>
    <description>Notification of acceptance</description>
-   <date>April 1st, 2002</date>
+   <date>20020401</date>
   </deadline>
   <deadline>
    <description>Deadline for final contributions</description>
-   <date>April 15th, 2002</date>
+   <date>20020415</date>
   </deadline>
  </event>
  <event>
   <when>August 6-9, 2002</when>
   <deadline>
    <description>Paper Submission</description>
-   <date>April 3rd, 2002</date>
+   <date>20020303</date>
   </deadline>
   <deadline>
    <description>Speakers Notified</description>
-   <date>May 13th, 2002</date>
+   <date>20020513</date>
   </deadline>
   <deadline>
    <description>Revised Papers Due</description>
-   <date>June 11th, 2002</date>
+   <date>20020611</date>
   </deadline>
  </event>
  <event>
   <when>April 10-13, 2002</when>
   <deadline>
    <description>Submission deadline of papers in special issue of an international journal.</description>
-   <date>May 10th, 2002</date>
+   <date>20020510</date>
   </deadline>
   <deadline>
    <description>Submission deadline of special edited book celebrating de Bruijn's 85th anniversary.</description>
-   <date>July 10th, 2002</date>
+   <date>20020710</date>
   </deadline>
  </event>
 </events>
index b124be0bb578ffc7d692ebbb0bd8e9f6ebc391ab..caa6cf85cd0b69c3fb7d19ff8331da625cff5917 100644 (file)
   <xsl:value-of select="$person/surname"/>
 </xsl:template>
 
-</xsl:stylesheet>
+<xsl:template name="print_date">
+ <xsl:param name="date"/>
+ <xsl:variable name="year" select="substring($date,1,4)"/>
+ <xsl:variable name="month" select="substring($date,5,2)"/>
+ <xsl:variable name="day" select="substring($date,7,2)"/>
+ <xsl:call-template name="print_month">
+  <xsl:with-param name="month" select="$month"/>
+ </xsl:call-template>
+ <xsl:text> </xsl:text>
+ <xsl:call-template name="print_day">
+  <xsl:with-param name="day" select="$day"/>
+ </xsl:call-template>
+ <xsl:text>, </xsl:text>
+ <xsl:value-of select="$year"/>
+</xsl:template>
+
+<xsl:template name="print_month">
+ <xsl:param name="month"/>
+ <xsl:choose>
+  <xsl:when test="$month = '01'">January</xsl:when>
+  <xsl:when test="$month = '02'">February</xsl:when>
+  <xsl:when test="$month = '03'">March</xsl:when>
+  <xsl:when test="$month = '04'">April</xsl:when>
+  <xsl:when test="$month = '05'">May</xsl:when>
+  <xsl:when test="$month = '06'">June</xsl:when>
+  <xsl:when test="$month = '07'">July</xsl:when>
+  <xsl:when test="$month = '08'">August</xsl:when>
+  <xsl:when test="$month = '09'">September</xsl:when>
+  <xsl:when test="$month = '10'">October</xsl:when>
+  <xsl:when test="$month = '11'">November</xsl:when>
+  <xsl:when test="$month = '12'">December</xsl:when>
+ </xsl:choose>
+</xsl:template>
 
+<xsl:template name="print_day">
+ <xsl:param name="day"/>
+ <xsl:choose>
+  <xsl:when test="$day = '01'">1st</xsl:when>
+  <xsl:when test="$day = '02'">2nd</xsl:when>
+  <xsl:when test="$day = '03'">3rd</xsl:when>
+  <xsl:when test="$day = '11'">11th</xsl:when>
+  <xsl:when test="$day = '11'">12th</xsl:when>
+  <xsl:when test="$day = '11'">13th</xsl:when>
+  <xsl:when test="substring($day,2,1) = '1'">
+   <xsl:value-of select="$day"/>
+   <xsl:text>st</xsl:text>
+  </xsl:when>
+  <xsl:when test="substring($day,2,1) = '2'">
+   <xsl:value-of select="$day"/>
+   <xsl:text>nd</xsl:text>
+  </xsl:when>
+  <xsl:when test="substring($day,2,1) = '3'">
+   <xsl:value-of select="$day"/>
+   <xsl:text>rd</xsl:text>
+  </xsl:when>
+  <xsl:otherwise>
+   <xsl:value-of select="$day"/>
+   <xsl:text>th</xsl:text>
+  </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>
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>
index 9a2b8473d69a7a12ae0c8686bec1a32826146280..b1a04d305cba6c17ee20f7d51bf354d0a749d040 100644 (file)
@@ -20,7 +20,8 @@
     </xsl:call-template>
     <h1>Mowgli Events</h1>
     <hr />
-    <h1>Events Related to Mowgli</h1>
+    <h1>Events Of Interest to MOWGLI ---
+        <a href="deadlines.html">Order by deadlines!</a></h1>
     <dl>
      <xsl:apply-templates/>
     </dl>
 
 <xsl:template match="deadline">
  <li>
-  <b><xsl:value-of select="date"/></b>
+  <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"/>
  </li>