2010-01-03 01:31:55 +00:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2003-02-01 10:01:49 +00:00
|
|
|
|
|
2013-01-17 23:13:14 +00:00
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
2020-04-18 19:30:56 +00:00
|
|
|
|
<xsl:import href="fsfe.xsl"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
|
<!-- Dynamic list of news items -->
|
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
|
|
|
|
|
|
<xsl:template match="dynamic-content-news">
|
|
|
|
|
<xsl:for-each select="/buildinfo/document/set/news[
|
2020-04-27 11:00:44 +00:00
|
|
|
|
translate(@date, '-', '') <= translate(/buildinfo/@date, '-', '')
|
2020-04-18 19:30:56 +00:00
|
|
|
|
]">
|
|
|
|
|
<xsl:sort select="@date" order="descending"/>
|
|
|
|
|
<xsl:if test="position() <= 3">
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">column</xsl:attribute>
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">row</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<!-- Image (with or without link) -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">image</xsl:attribute>
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="link != ''">
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:value-of select="link"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="src">
|
|
|
|
|
<xsl:value-of select="image"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="alt"/>
|
|
|
|
|
</xsl:element><!-- img -->
|
|
|
|
|
</xsl:element><!-- a -->
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="src">
|
|
|
|
|
<xsl:value-of select="image"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="alt"/>
|
|
|
|
|
</xsl:element><!-- img -->
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:element><!-- div/image -->
|
|
|
|
|
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">text</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<!-- Title (with or without link) -->
|
|
|
|
|
<xsl:element name="h3">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="link != ''">
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:value-of select="link"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
|
</xsl:element><!-- a -->
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:element><!-- h3 -->
|
|
|
|
|
|
|
|
|
|
<!-- Date -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">date</xsl:attribute>
|
|
|
|
|
<xsl:value-of select="@date"/>
|
|
|
|
|
</xsl:element><!-- p/date -->
|
|
|
|
|
|
|
|
|
|
<!-- Teaser -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">teaser</xsl:attribute>
|
|
|
|
|
<xsl:apply-templates select="body/node()"/>
|
|
|
|
|
<xsl:if test="link != ''">
|
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="class">learn-more</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:value-of select="link"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element><!-- a/learn-more -->
|
|
|
|
|
</xsl:if>
|
|
|
|
|
</xsl:element><!-- p/teaser -->
|
|
|
|
|
|
|
|
|
|
</xsl:element><!-- div/text -->
|
|
|
|
|
|
|
|
|
|
</xsl:element><!-- div/row -->
|
|
|
|
|
</xsl:element><!-- div/column -->
|
2018-08-10 05:38:22 +00:00
|
|
|
|
</xsl:if>
|
2020-04-18 19:30:56 +00:00
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
|
<!-- Dynamic list of testimonial quotes -->
|
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
|
|
|
|
|
|
<xsl:template match="dynamic-content-testimonials">
|
|
|
|
|
<xsl:for-each select="/buildinfo/document/set/quote[@frontpage]">
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">column</xsl:attribute>
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">row</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<!-- Image with link -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">image</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:text>/about/people/testimonials.html#</xsl:text>
|
|
|
|
|
<xsl:value-of select="@id"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="class">img-circle</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src">
|
|
|
|
|
<xsl:value-of select="@image"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="alt">
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/text[@id='photograph']"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element><!-- img -->
|
|
|
|
|
</xsl:element><!-- a -->
|
|
|
|
|
</xsl:element><!-- div/image -->
|
|
|
|
|
|
|
|
|
|
<!-- Text and source -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">text</xsl:attribute>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:apply-templates select="text/node()"/>
|
|
|
|
|
</xsl:element><!-- p -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">source</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:text>/about/people/testimonials.html#</xsl:text>
|
|
|
|
|
<xsl:value-of select="@id"/>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
<xsl:apply-templates select="name/node()"/>
|
|
|
|
|
</xsl:element><!-- a -->
|
|
|
|
|
</xsl:element><!-- p/source -->
|
|
|
|
|
</xsl:element><!-- div/text -->
|
|
|
|
|
|
|
|
|
|
</xsl:element><!-- div/row -->
|
|
|
|
|
</xsl:element><!-- div/column -->
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
|
<!-- Dynamic list of events -->
|
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
|
|
|
|
|
|
<xsl:template match="dynamic-content-events">
|
2020-04-26 11:32:25 +00:00
|
|
|
|
<xsl:for-each select="/buildinfo/document/set/event[
|
2020-04-27 11:00:44 +00:00
|
|
|
|
translate (@end, '-', '') >= translate (/buildinfo/@date, '-', '')
|
2020-04-18 19:30:56 +00:00
|
|
|
|
]">
|
|
|
|
|
<xsl:sort select="@start"/>
|
|
|
|
|
<xsl:if test="position() <= 3">
|
|
|
|
|
|
|
|
|
|
<!-- Date -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">date</xsl:attribute>
|
|
|
|
|
<xsl:value-of select="@start"/>
|
|
|
|
|
<xsl:if test="@start != @end">
|
|
|
|
|
<xsl:text> – </xsl:text>
|
|
|
|
|
<xsl:value-of select="@end"/>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
</xsl:element><!-- p/date -->
|
|
|
|
|
|
|
|
|
|
<!-- Description -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:value-of select="title"/>
|
|
|
|
|
</xsl:element><!-- p -->
|
2019-05-25 10:31:33 +00:00
|
|
|
|
|
2015-07-14 09:26:34 +00:00
|
|
|
|
</xsl:if>
|
2020-04-18 19:30:56 +00:00
|
|
|
|
</xsl:for-each>
|
2011-01-13 14:29:42 +00:00
|
|
|
|
</xsl:template>
|
2019-05-25 10:31:33 +00:00
|
|
|
|
|
2010-11-24 17:00:57 +00:00
|
|
|
|
</xsl:stylesheet>
|