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" />
|
2011-01-11 15:19:08 +00:00
|
|
|
|
2011-01-12 17:11:44 +00:00
|
|
|
<!--
|
|
|
|
For documentation on tagging (e.g. fetching news and events), take a
|
|
|
|
look at the documentation under
|
|
|
|
/tools/xsltsl/tagging-documentation.txt
|
|
|
|
-->
|
|
|
|
|
2011-01-11 15:19:08 +00:00
|
|
|
<!-- The top level element of the input file is "buildinfo" -->
|
|
|
|
<xsl:template match="buildinfo">
|
|
|
|
<xsl:apply-templates select="node()"/>
|
|
|
|
</xsl:template>
|
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>
|
2011-01-07 17:25:52 +00:00
|
|
|
<xsl:with-param name="nb-items" select="5" />
|
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">
|
|
|
|
|
2011-01-07 17:14:10 +00:00
|
|
|
<xsl:call-template name="fetch-newsletters">
|
2011-01-07 17:25:52 +00:00
|
|
|
<xsl:with-param name="nb-items" select="2" />
|
2011-01-07 17:14:10 +00:00
|
|
|
</xsl:call-template>
|
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>
|
2011-01-07 17:14:10 +00:00
|
|
|
<xsl:with-param name="display-details" select="'yes'" />
|
|
|
|
<xsl:with-param name="nb-items" select="3" />
|
2010-12-17 15:50:23 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
|
2003-02-01 10:01:49 +00:00
|
|
|
</xsl:template>
|
2011-01-11 15:19:08 +00:00
|
|
|
|
|
|
|
<!--display labels-->
|
|
|
|
|
|
|
|
<!--translated word "newsletter"-->
|
|
|
|
<xsl:template match="newsletter-label">
|
2011-01-11 16:57:55 +00:00
|
|
|
<xsl:apply-templates select="/html/textset-content/text[@id='newsletter']/node()"/>
|
2011-01-11 15:19:08 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-12 13:30:11 +00:00
|
|
|
<!--translated sentence "receive-newsletter"-->
|
|
|
|
<xsl:template match="receive-newsletter">
|
|
|
|
<xsl:apply-templates select="/html/textset-content/text[@id='receive-newsletter']/node()"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-11 15:19:08 +00:00
|
|
|
<!--translated word "news"-->
|
|
|
|
<xsl:template match="news-label">
|
2011-01-11 16:57:55 +00:00
|
|
|
<xsl:apply-templates select="/html/textset-content/text[@id='news']/node()"/>
|
2011-01-11 15:19:08 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-11 17:06:49 +00:00
|
|
|
<!--translated word "events"-->
|
2011-01-11 17:29:45 +00:00
|
|
|
<xsl:template match="events-label">
|
2011-01-11 17:06:49 +00:00
|
|
|
<xsl:apply-templates select="/html/textset-content/text[@id='events']/node()"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
2011-01-11 17:29:45 +00:00
|
|
|
<!--translated word "more"-->
|
2011-01-11 15:19:08 +00:00
|
|
|
<xsl:template match="more-label">
|
2011-01-11 16:57:55 +00:00
|
|
|
<xsl:apply-templates select="/html/textset-content/text[@id='more']/node()"/>
|
2011-01-11 15:19:08 +00:00
|
|
|
</xsl:template>
|
2011-01-11 16:57:55 +00:00
|
|
|
|
2011-01-13 10:33:48 +00:00
|
|
|
<!--translated word "donate"-->
|
|
|
|
<xsl:template match="donate-label">
|
|
|
|
<xsl:apply-templates select="/html/textset-content/text[@id='donate']/node()"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!--translated word "join"-->
|
|
|
|
<xsl:template match="join-label">
|
|
|
|
<xsl:apply-templates select="/html/textset-content/text[@id='join']/node()"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
2010-12-17 15:50:23 +00:00
|
|
|
<!-- Do not copy <set> to output at all -->
|
|
|
|
<xsl:template match="set"/>
|
2011-01-11 16:57:55 +00:00
|
|
|
<xsl:template match="textset-content"/>
|
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>
|