3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:param name="current-date" select="'???'"/>
8 <xsl:template name="head">
9 <xsl:param name="path_to_top" select="'.'"/>
11 <table border="0" cellspacing="0" cellpadding="0" width="100%">
13 <td align="left" valign="bottom">
15 <a href="{$path_to_top}/home.html">MoWGLI: Mathematics on the Web: Get It by Logic and Interfaces</a>
18 <td align="right" valign="bottom">
20 <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="{$path_to_top}/../images/istbutton_small.gif"/></a>
28 <xsl:template name="foot">
29 <xsl:param name="path_to_top" select="'.'"/>
31 <table border="0" cellspacing="0" cellpadding="0" width="100%">
33 <td align="left" valign="top">
35 This page is hosted by the
36 <a href="http:/www.cs.unibo.it">Department of Computer Science</a>,
37 <a href="http://www.unibo.it">University of Bologna</a>.
39 Last updated <b><xsl:value-of select="$current-date"/></b>.
42 <td align="right" valign="top">
44 <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="{$path_to_top}/../images/istbutton_small.gif"/></a>
52 <xsl:template name="person-name">
53 <xsl:param name="file" select="''"/>
54 <xsl:param name="form" select="'full'"/>
55 <xsl:variable name="person" select="document(concat('../xml/people/',$file,'.xml'))/person"/>
56 <xsl:if test="$person/qualification and $form = 'full'">
57 <xsl:value-of select="$person/qualification"/>
58 <xsl:value-of select="' '"/>
61 <xsl:when test="$form = 'full'">
62 <xsl:value-of select="$person/name"/>
65 <!-- Bug: just the first name is abbreviated. The others are ignored. -->
66 <xsl:value-of select="substring($person/name,1,1)"/>
67 <xsl:text>.</xsl:text>
70 <xsl:value-of select="' '"/>
71 <xsl:value-of select="$person/surname"/>
74 <xsl:template name="print_date">
75 <xsl:param name="date"/>
76 <xsl:variable name="year" select="substring($date,1,4)"/>
77 <xsl:variable name="month" select="substring($date,5,2)"/>
78 <xsl:variable name="day" select="substring($date,7,2)"/>
79 <xsl:call-template name="print_month">
80 <xsl:with-param name="month" select="$month"/>
82 <xsl:text> </xsl:text>
83 <xsl:call-template name="print_day">
84 <xsl:with-param name="day" select="$day"/>
86 <xsl:text>, </xsl:text>
87 <xsl:value-of select="$year"/>
90 <xsl:template name="print_month">
91 <xsl:param name="month"/>
93 <xsl:when test="$month = '01'">January</xsl:when>
94 <xsl:when test="$month = '02'">February</xsl:when>
95 <xsl:when test="$month = '03'">March</xsl:when>
96 <xsl:when test="$month = '04'">April</xsl:when>
97 <xsl:when test="$month = '05'">May</xsl:when>
98 <xsl:when test="$month = '06'">June</xsl:when>
99 <xsl:when test="$month = '07'">July</xsl:when>
100 <xsl:when test="$month = '08'">August</xsl:when>
101 <xsl:when test="$month = '09'">September</xsl:when>
102 <xsl:when test="$month = '10'">October</xsl:when>
103 <xsl:when test="$month = '11'">November</xsl:when>
104 <xsl:when test="$month = '12'">December</xsl:when>
108 <xsl:template name="print_day">
109 <xsl:param name="day"/>
111 <xsl:when test="$day = '01'">1st</xsl:when>
112 <xsl:when test="$day = '02'">2nd</xsl:when>
113 <xsl:when test="$day = '03'">3rd</xsl:when>
114 <xsl:when test="$day = '11'">11th</xsl:when>
115 <xsl:when test="$day = '11'">12th</xsl:when>
116 <xsl:when test="$day = '11'">13th</xsl:when>
117 <xsl:when test="substring($day,2,1) = '1'">
118 <xsl:value-of select="$day"/>
119 <xsl:text>st</xsl:text>
121 <xsl:when test="substring($day,2,1) = '2'">
122 <xsl:value-of select="$day"/>
123 <xsl:text>nd</xsl:text>
125 <xsl:when test="substring($day,2,1) = '3'">
126 <xsl:value-of select="$day"/>
127 <xsl:text>rd</xsl:text>
130 <xsl:value-of select="$day"/>
131 <xsl:text>th</xsl:text>
136 <xsl:template name="print_interval">
137 <xsl:param name="begin"/>
138 <xsl:param name="end"/>
139 <xsl:variable name="byear" select="substring($begin,1,4)"/>
140 <xsl:variable name="bmonth" select="substring($begin,5,2)"/>
141 <xsl:variable name="bday" select="substring($begin,7,2)"/>
142 <xsl:variable name="eyear" select="substring($end,1,4)"/>
143 <xsl:variable name="emonth" select="substring($end,5,2)"/>
144 <xsl:variable name="eday" select="substring($end,7,2)"/>
146 <xsl:when test="$byear != $eyear">
147 <xsl:call-template name="print_date">
148 <xsl:with-param name="date" select="$begin"/>
150 <xsl:call-template name="print_date">
151 <xsl:text> - </xsl:text>
152 <xsl:with-param name="date" select="$end"/>
155 <xsl:when test="$bmonth != $emonth">
156 <xsl:call-template name="print_month">
157 <xsl:with-param name="month" select="$bmonth"/>
159 <xsl:text> </xsl:text>
160 <xsl:call-template name="print_day">
161 <xsl:with-param name="day" select="$bday"/>
163 <xsl:text> - </xsl:text>
164 <xsl:call-template name="print_month">
165 <xsl:with-param name="month" select="$emonth"/>
167 <xsl:text> </xsl:text>
168 <xsl:call-template name="print_day">
169 <xsl:with-param name="day" select="$eday"/>
171 <xsl:text>, </xsl:text>
172 <xsl:value-of select="$byear"/>
174 <xsl:when test="$bday != $eday">
175 <xsl:call-template name="print_month">
176 <xsl:with-param name="month" select="$bmonth"/>
178 <xsl:text> </xsl:text>
179 <xsl:call-template name="print_day">
180 <xsl:with-param name="day" select="$bday"/>
182 <xsl:text> - </xsl:text>
183 <xsl:call-template name="print_day">
184 <xsl:with-param name="day" select="$eday"/>
186 <xsl:text>, </xsl:text>
187 <xsl:value-of select="$byear"/>
190 <xsl:call-template name="print_date">
191 <xsl:with-param name="date" select="$begin"/>
197 <xsl:template name="color_of_deadline_kind">
198 <xsl:param name="kind"/>
200 <xsl:when test="$kind = 'submission'">
201 <xsl:text>red</xsl:text>
203 <xsl:when test="$kind = 'notification'">
204 <xsl:text>green</xsl:text>
206 <xsl:when test="$kind = 'registration'">
207 <xsl:text>blue</xsl:text>
209 <xsl:when test="$kind = 'camera-ready'">
210 <xsl:text>maroon</xsl:text>