$(XMLROOT)/other-events.xml \
$(XMLROOT)/mowgli-events.xml \
$(XSLROOT)/latest-news.xsl \
- $(XSLROOT)/sort-events-by-beginning.xsl \
$(XSLROOT)/approaching-deadlines.xsl
cat $(TEMPLATESROOT)/home.html.top >$@
$(XSLTP) $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml >>$@
-# cat $(TEMPLATESROOT)/home.html.mid >>$@
-# $(XSLTP) $(XSLROOT)/sort-events-by-beginning.xsl $(XMLROOT)/other-events.xml | $(XSLTP) $(XSLROOT)/approaching-deadlines.xsl - >>$@
-# cat $(TEMPLATESROOT)/home.html.bot >>$@
+ echo "</dl>" >> $@
+ $(XSLTP) --param today `date +%Y%m%d` $(XSLROOT)/approaching-deadlines.xsl $(XMLROOT)/other-events.xml >>$@
sed s/\@DATE\@/"`date`"/ $(TEMPLATESROOT)/home.html.bot >>$@
index.html: $(TEMPLATESROOT)/index.html
$(XSLTP) -o $@ $(XSLROOT)/news.xsl $<
other-events.html: $(XMLROOT)/other-events.xml \
- $(XSLROOT)/sort-events-by-beginning.xsl \
$(XSLROOT)/events.xsl
- $(XSLTP) $(XSLROOT)/sort-events-by-beginning.xsl $< | $(XSLTP) --param events-class "'Other'" -o $@ $(XSLROOT)/events.xsl -
+ $(XSLTP) --param today `date +%Y%m%d` --param events-class "'Other'" -o $@ $(XSLROOT)/events.xsl $<
mowgli-events.html: $(XMLROOT)/mowgli-events.xml \
- $(XSLROOT)/sort-events-by-beginning.xsl \
$(XSLROOT)/events.xsl
- $(XSLTP) $(XSLROOT)/sort-events-by-beginning.xsl $< | $(XSLTP) --param events-class "'MOWGLI'" -o $@ $(XSLROOT)/events.xsl -
+ $(XSLTP) --param today `date +%Y%m%d` --param events-class "'MOWGLI'" -o $@ $(XSLROOT)/events.xsl $<
deadlines.html: $(XMLROOT)/other-events.xml \
$(XSLROOT)/deadlines.xsl
- $(XSLTP) --param events-class "'Other'" -o $@ $(XSLROOT)/deadlines.xsl $<
+ $(XSLTP) --param today `date +%Y%m%d` --param events-class "'Other'" -o $@ $(XSLROOT)/deadlines.xsl $<
deliverables/%.html: $(XMLROOT)/deliverables/%.xml \
$(XSLROOT)/deliverable.xsl
- <!-- </ul> -->
-
</div>
</td>
</td>
- <!--
- <br /><br />
- <hr width="100%"/>
- -->
-
<td>
</td>
<!DOCTYPE events [
<!ELEMENT events (event*)>
- <!ELEMENT event (name,url,description?,where?,when?,deadline*)>
+ <!ELEMENT event (name,url,description?,where?,when,deadline*)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT url (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<events>
<event>
<name>MKM 2001</name>
+ <where>RISC, A-4232 Schloss Hagenberg</where>
+ <when>
+ <begin>20010924</begin>
+ <end>20010926</end>
+ </when>
<url>http://www.risc.uni-linz.ac.at/institute/conferences/MKM2001</url>
- <description>Special Issue for Annals of Mathematics and Artificial
+ <description>First International Workshop on Mathematical Knowledge
+ Management. Special Issue for Annals of Mathematics and Artificial
Intelligence to appear in Fall 2002</description>
<deadline kind="notification">
<description>Notification of acceptance for the special issue on
<xsl:output method="html"/>
+<xsl:param name="today"/>
+
<xsl:template match="/">
- <xsl:variable name="deadlines" select="events/event[position() < 4]/deadline"/>
- <xsl:apply-templates select="$deadlines">
- <xsl:sort select="date" data-type="number"/>
- </xsl:apply-templates>
+ <h3>Approaching Deadlines:</h3>
+ <xsl:for-each select="events/event/deadline[date >= $today]">
+ <xsl:sort select="date" data-type="number"/>
+ <xsl:if test="position() < 4">
+ <xsl:apply-templates select="."/>
+ </xsl:if>
+ </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
-
<xsl:output method="html"/>
<xsl:param name="events-class" select="''"/>
+<xsl:param name="today" select="''"/>
<xsl:template match="/">
<html>
<br /><br />
<hr />
<ul>
- <xsl:apply-templates select="events/event/deadline">
+ <xsl:apply-templates select="events/event/deadline[date >= $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 < $today]">
+ <xsl:sort select="date" data-type="number" order="descending"/>
+ </xsl:apply-templates>
+ </ul>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'.'"/>
</xsl:call-template>
<xsl:output method="html"/>
<xsl:param name="events-class" select="''"/>
+<xsl:param name="today"/>
<xsl:template match="/">
<html>
<hr />
</xsl:if>
<dl>
- <xsl:apply-templates select="events/event"/>
+ <xsl:apply-templates select="events/event[when/begin >= $today]">
+ <xsl:sort select="when/begin" data-type="number"/>
+ </xsl:apply-templates>
+ </dl>
+ <hr />
+ <h1>Past Events</h1>
+ <dl>
+ <xsl:apply-templates select="events/event[when/begin < $today]">
+ <xsl:sort select="when/begin" data-type="number"/>
+ </xsl:apply-templates>
</dl>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'.'"/>
+++ /dev/null
-<?xml version="1.0"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:output method="xml"/>
-
-<xsl:template match="events">
- <events>
- <xsl:apply-templates select="event">
- <xsl:sort select="when/begin" data-type="number"/>
- </xsl:apply-templates>
- </events>
-</xsl:template>
-
-<xsl:template match="event">
- <xsl:copy-of select="."/>
-</xsl:template>
-
-</xsl:stylesheet>
+++ /dev/null
-<?xml version="1.0"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<xsl:output method="xml"/>
-
-<xsl:template match="events">
- <events>
- <xsl:apply-templates select="event">
- <xsl:sort select="deadline/date" data-type="number"/>
- </xsl:apply-templates>
- </events>
-</xsl:template>
-
-<xsl:template match="event">
- <xsl:copy-of select="."/>
-</xsl:template>
-
-</xsl:stylesheet>
-