fsfe-website/events/events.xsl

52 lines
2.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../tools/xsltsl/tagging.xsl" />
<xsl:import href="../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<!--
For documentation on tagging (e.g. fetching news and events), take a
look at the documentation under
/tools/xsltsl/tagging-documentation.txt
-->
<!-- In /html/body node, append dynamic content -->
<xsl:template match="/buildinfo/document/body/include-events">
<!-- First, include what's in the source file -->
<xsl:apply-templates />
<!-- Current events -->
<xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'present'" />
<xsl:with-param name="header" select="'current'" />
<xsl:with-param name="display-details" select="'yes'" />
<xsl:with-param name="display-year" select="'yes'" />
<xsl:with-param name="display-tags" select="'yes'" />
</xsl:call-template>
<!-- Future events -->
<xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'future'" />
<xsl:with-param name="header" select="'future'" />
<xsl:with-param name="display-details" select="'yes'" />
<xsl:with-param name="display-year" select="'yes'" />
<xsl:with-param name="display-tags" select="'yes'" />
</xsl:call-template>
<!-- Past events -->
<xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'past'" />
<xsl:with-param name="header" select="'past'" />
<xsl:with-param name="display-details" select="'yes'" />
<xsl:with-param name="display-year" select="'yes'" />
<xsl:with-param name="display-tags" select="'yes'" />
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>