2010-01-03 01:31:55 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2003-02-01 10:01:49 +00:00
|
|
|
|
2010-01-03 01:31:55 +00:00
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
2010-01-03 01:41:27 +00:00
|
|
|
xmlns:dt="http://xsltsl.org/date-time">
|
2010-02-11 14:40:11 +00:00
|
|
|
|
2010-01-03 01:31:55 +00:00
|
|
|
<xsl:import href="tools/xsltsl/date-time.xsl" />
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:import href="tools/xsltsl/tagging.xsl" />
|
2010-01-03 01:31:55 +00:00
|
|
|
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
|
2003-02-01 10:01:49 +00:00
|
|
|
|
2010-12-17 15:50:23 +00:00
|
|
|
|
2010-12-21 12:36:41 +00:00
|
|
|
<!--display dynamic list of news items-->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:template match="all-news">
|
|
|
|
|
|
|
|
|
|
<xsl:call-template name="fetch-news">
|
2011-01-07 13:45:55 +00:00
|
|
|
<xsl:with-param name="tag">front-page</xsl:with-param>
|
2010-12-17 15:50:23 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
2010-12-21 12:36:41 +00:00
|
|
|
<!--display dynamic list of newsletters items-->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:template match="all-newsletters">
|
|
|
|
|
|
2010-12-21 12:36:41 +00:00
|
|
|
<xsl:call-template name="fetch-newsletters" />
|
2010-12-17 15:50:23 +00:00
|
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
2010-12-21 12:36:41 +00:00
|
|
|
<!--display dynamic list of event items-->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:template match="all-events">
|
|
|
|
|
|
2010-12-21 14:32:59 +00:00
|
|
|
<!-- Current events -->
|
2010-12-17 15:50:23 +00:00
|
|
|
<xsl:call-template name="fetch-events">
|
2010-12-21 14:32:59 +00:00
|
|
|
<xsl:with-param name="wanted-time" select="'present'" />
|
2011-01-07 13:45:55 +00:00
|
|
|
<xsl:with-param name="tag">front-page</xsl:with-param>
|
2010-12-21 14:32:59 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
|
|
|
|
|
|
<!-- Future events -->
|
|
|
|
|
<xsl:call-template name="fetch-events">
|
|
|
|
|
<xsl:with-param name="wanted-time" select="'future'" />
|
2011-01-07 13:45:55 +00:00
|
|
|
<xsl:with-param name="tag">front-page</xsl:with-param>
|
2010-12-21 14:32:59 +00:00
|
|
|
<xsl:with-param name="nb-events" select="3" />
|
2010-12-17 15:50:23 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
|
|
2003-02-01 10:01:49 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
2010-12-17 15:50:23 +00:00
|
|
|
<!-- Do not copy <set> to output at all -->
|
|
|
|
|
<xsl:template match="set"/>
|
2004-06-30 08:44:38 +00:00
|
|
|
|
|
|
|
|
<!-- For all other nodes, copy verbatim -->
|
2003-02-01 10:01:49 +00:00
|
|
|
<xsl:template match="@*|node()" priority="-1">
|
|
|
|
|
<xsl:copy>
|
|
|
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
|
|
|
</xsl:copy>
|
|
|
|
|
</xsl:template>
|
2010-12-17 15:50:23 +00:00
|
|
|
|
2010-11-24 17:00:57 +00:00
|
|
|
</xsl:stylesheet>
|