Clean up formatting of XSL files, no code change

This commit is contained in:
Reinhard Müller 2020-04-27 21:53:42 +02:00
parent e30539a6bd
commit 377fcde82e
124 changed files with 560 additions and 726 deletions

View File

@ -1,14 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../build/xslt/people.xsl" />
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
<xsl:import href="../build/xslt/people.xsl" />
<xsl:template match="care-team-list"> <xsl:template match="care-team-list">
<xsl:copy-of select="document('codeofconduct-careteam.en.xml')"/> <xsl:copy-of select="document('codeofconduct-careteam.en.xml')"/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
@ -26,7 +26,7 @@
<xsl:attribute name="src"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_medium.png</xsl:attribute> <xsl:attribute name="src"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_medium.png</xsl:attribute>
</xsl:element> </xsl:element>
<!-- white background --> <!-- white background -->
<xsl:element name="p"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'background/white'" /></xsl:call-template>: <xsl:element name="p"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'background/white'" /></xsl:call-template>:
<xsl:text>[</xsl:text> <xsl:text>[</xsl:text>
<xsl:element name="a"> <xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_huge.png</xsl:attribute> <xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_huge.png</xsl:attribute>
@ -53,7 +53,7 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
<!-- transparent background --> <!-- transparent background -->
<xsl:element name="p"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'background/transparent'" /></xsl:call-template>: <xsl:element name="p"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'background/transparent'" /></xsl:call-template>:
<xsl:text>[</xsl:text> <xsl:text>[</xsl:text>
<xsl:element name="a"> <xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_t_huge.png</xsl:attribute> <xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_t_huge.png</xsl:attribute>

View File

@ -1,15 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../build/xslt/people.xsl" />
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
<xsl:import href="../build/xslt/people.xsl" />
<!--
For documentation on tagging (e.g. display a people list), take a
look at the documentation under
/tools/xsltsl/documentation-tagging.txt
-->
<!-- Fill dynamic content --> <!-- Fill dynamic content -->

View File

@ -1,17 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../build/xslt/people.xsl" />
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
<xsl:import href="../build/xslt/people.xsl" />
<!--
For documentation on tagging (e.g. display a people list), take a
look at the documentation under
/tools/xsltsl/documentation-tagging.txt
-->
<!-- Fill dynamic content --> <!-- Fill dynamic content -->
<!-- All people with council tag --> <!-- All people with council tag -->
<xsl:template match="council-members"> <xsl:template match="council-members">
<xsl:call-template name="country-people-list"> <xsl:call-template name="country-people-list">

View File

@ -1,25 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<!--define dynamic list of country news items--> <!--define dynamic list of country news items-->
<xsl:template match="country-news"> <xsl:template match="country-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="3" /> <xsl:with-param name="nb-items" select="3" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define dynamic list of country event items--> <!--define dynamic list of country event items-->
<xsl:template match="country-events"> <xsl:template match="country-events">
<!-- Current events --> <!-- Current events -->
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'present'" /> <xsl:with-param name="wanted-time" select="'present'" />
</xsl:call-template> </xsl:call-template>
<!-- Future events --> <!-- Future events -->
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'future'" /> <xsl:with-param name="wanted-time" select="'future'" />

View File

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../tags/default.xsl" />
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:import href="../../tags/default.xsl" />
<!-- In /html/body node, append dynamic content -->
<xsl:template match="tagged-docs"> <xsl:template match="tagged-docs">
<xsl:call-template name="tagged-news" /> <xsl:call-template name="tagged-news" />
</xsl:template> </xsl:template>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="15"/> <xsl:with-param name="nb-items" select="15"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
<xsl:with-param name="sidebar" select="'yes'"/> <xsl:with-param name="sidebar" select="'yes'"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -6,5 +6,5 @@
<xsl:template match="sigtable"> <xsl:template match="sigtable">
<xsl:copy-of select="document('sigtable.en.xml')"/> <xsl:copy-of select="document('sigtable.en.xml')"/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="15"/> <xsl:with-param name="nb-items" select="15"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="signatories"> <xsl:template match="signatories">

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
<xsl:template match="associates"> <xsl:template match="associates">
@ -17,6 +15,6 @@
<xsl:apply-templates select="description/node()" /> <xsl:apply-templates select="description/node()" />
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,23 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../build/xslt/people.xsl" />
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
<xsl:import href="../build/xslt/people.xsl" />
<!-- To localise this page to a new country, copy this file and change the following:
# <xsl:variable name="country-code">de</xsl:variable> -> change xx to your country code
For more information, take a look at the documentation at
http://fsfe.org/contribute/web/tagging.html
-->
<xsl:variable name="country-code">at</xsl:variable> <xsl:variable name="country-code">at</xsl:variable>
<!--display labels--> <!--display labels-->
<!--translated word "news"--> <!--translated word "news"-->
@ -54,14 +42,14 @@
<xsl:with-param name="id" select="'team'" /> <xsl:with-param name="id" select="'team'" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define contact information--> <!--define contact information-->
<xsl:template match="contact-details"> <xsl:template match="contact-details">
<xsl:for-each select="/buildinfo/document/set/contact"> <xsl:for-each select="/buildinfo/document/set/contact">
<xsl:if test="@id = 'DE'"> <xsl:if test="@id = 'DE'">
<!-- Email --> <!-- Email -->
<xsl:if test="email != ''"> <xsl:if test="email != ''">
<xsl:element name="p"> <xsl:element name="p">
@ -76,12 +64,12 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<!-- Address --> <!-- Address -->
<xsl:if test="address != ''"> <xsl:if test="address != ''">
<xsl:apply-templates select="address"/> <xsl:apply-templates select="address"/>
</xsl:if> </xsl:if>
<!-- Phone --> <!-- Phone -->
<xsl:if test="phone != ''"> <xsl:if test="phone != ''">
<xsl:element name="p"> <xsl:element name="p">
@ -102,28 +90,28 @@
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<!--define dynamic list of country news items--> <!--define dynamic list of country news items-->
<xsl:template match="country-news"> <xsl:template match="country-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="3" /> <xsl:with-param name="nb-items" select="3" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define dynamic list of country event items--> <!--define dynamic list of country event items-->
<xsl:template match="country-events"> <xsl:template match="country-events">
<!-- Current events --> <!-- Current events -->
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'present'" /> <xsl:with-param name="wanted-time" select="'present'" />
</xsl:call-template> </xsl:call-template>
<!-- Future events --> <!-- Future events -->
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'future'" /> <xsl:with-param name="wanted-time" select="'future'" />
<xsl:with-param name="nb-items" select="3" /> <xsl:with-param name="nb-items" select="3" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define dynamic list of country team members--> <!--define dynamic list of country team members-->
<xsl:template match="country-team-list"> <xsl:template match="country-team-list">
<xsl:call-template name="country-people-list"> <xsl:call-template name="country-people-list">

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- showing a dropdown select menu with all countries in /tools/countries.**.xml --> <!-- showing a dropdown select menu with all countries in /tools/countries.**.xml -->
@ -8,13 +9,13 @@
<xsl:element name="select"> <xsl:element name="select">
<xsl:attribute name="id">country</xsl:attribute> <xsl:attribute name="id">country</xsl:attribute>
<xsl:attribute name="name">country</xsl:attribute> <xsl:attribute name="name">country</xsl:attribute>
<!-- if called with a "class" value, set it as the CSS class --> <!-- if called with a "class" value, set it as the CSS class -->
<xsl:choose> <xsl:choose>
<xsl:when test="$class != ''"> <xsl:when test="$class != ''">
<xsl:attribute name="class"><xsl:value-of select="$class" /></xsl:attribute> <xsl:attribute name="class"><xsl:value-of select="$class" /></xsl:attribute>
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
<!-- when called with the required="yes" param, add the attribute <!-- when called with the required="yes" param, add the attribute
and an empty option --> and an empty option -->
<xsl:choose> <xsl:choose>
<xsl:when test="$required = 'yes'"> <xsl:when test="$required = 'yes'">
@ -35,6 +36,6 @@
</xsl:for-each> </xsl:for-each>
</xsl:element> <!-- /select --> </xsl:element> <!-- /select -->
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time" xmlns:dt="http://xsltsl.org/date-time"
@ -6,12 +7,12 @@
<xsl:import href="gettext.xsl" /> <xsl:import href="gettext.xsl" />
<xsl:import href="../../tools/xsltsl/date-time.xsl" /> <xsl:import href="../../tools/xsltsl/date-time.xsl" />
<!-- define content type templates--> <!-- define content type templates-->
<xsl:template name="news"> <xsl:template name="news">
<xsl:param name="sidebar" select="'no'" /> <xsl:param name="sidebar" select="'no'" />
<xsl:variable name="title"> <xsl:variable name="title">
<xsl:choose><xsl:when test="link != ''"> <xsl:choose><xsl:when test="link != ''">
<a href="{link}"><xsl:value-of select="title" /></a> <a href="{link}"><xsl:value-of select="title" /></a>
@ -19,7 +20,7 @@
<xsl:value-of select="title" /> <xsl:value-of select="title" />
</xsl:otherwise></xsl:choose> </xsl:otherwise></xsl:choose>
</xsl:variable> </xsl:variable>
<xsl:variable name="date"> <xsl:variable name="date">
<xsl:value-of select="substring(@date,9,2)" /> <xsl:value-of select="substring(@date,9,2)" />
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
@ -29,7 +30,7 @@
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
<xsl:value-of select="substring(@date,1,4)" /> <xsl:value-of select="substring(@date,1,4)" />
</xsl:variable> </xsl:variable>
<xsl:choose> <xsl:choose>
<xsl:when test="$sidebar = 'yes'"> <xsl:when test="$sidebar = 'yes'">
<li> <li>
@ -38,7 +39,7 @@
<xsl:with-param name="title" select="title" /> <xsl:with-param name="title" select="title" />
</xsl:call-template> </xsl:call-template>
<xsl:copy-of select="$title" /> <xsl:copy-of select="$title" />
<!-- news date --> <!-- news date -->
<xsl:text> (</xsl:text> <xsl:text> (</xsl:text>
<xsl:copy-of select="$date" /> <xsl:copy-of select="$date" />
@ -55,61 +56,61 @@
</xsl:call-template> </xsl:call-template>
<xsl:copy-of select="$title" /> <xsl:copy-of select="$title" />
</h3> </h3>
<!-- news date --> <!-- news date -->
<p class="date"><xsl:copy-of select="$date" /></p> <p class="date"><xsl:copy-of select="$date" /></p>
<!-- news text --> <!-- news text -->
<div class="text"><xsl:apply-templates select="body/node()" /></div> <div class="text"><xsl:apply-templates select="body/node()" /></div>
</div> </div>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<!-- Show a single event --> <!-- Show a single event -->
<xsl:template name="event"> <xsl:template name="event">
<xsl:param name="header" select="''" /> <xsl:param name="header" select="''" />
<xsl:param name="display-tags" select="'no'" /> <xsl:param name="display-tags" select="'no'" />
<!-- Create variables --> <!-- Create variables -->
<xsl:variable name="start"> <xsl:variable name="start">
<xsl:value-of select="@start" /> <xsl:value-of select="@start" />
</xsl:variable> </xsl:variable>
<xsl:variable name="start_day"> <xsl:variable name="start_day">
<xsl:value-of select="substring($start,9,2)" /> <xsl:value-of select="substring($start,9,2)" />
</xsl:variable> </xsl:variable>
<xsl:variable name="start_month"> <xsl:variable name="start_month">
<xsl:call-template name="dt:get-month-name"> <xsl:call-template name="dt:get-month-name">
<xsl:with-param name="month" <xsl:with-param name="month"
select="substring($start,6,2)" /> select="substring($start,6,2)" />
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="end"> <xsl:variable name="end">
<xsl:value-of select="@end" /> <xsl:value-of select="@end" />
</xsl:variable> </xsl:variable>
<xsl:variable name="end_day"> <xsl:variable name="end_day">
<xsl:value-of select="substring($end,9,2)" /> <xsl:value-of select="substring($end,9,2)" />
</xsl:variable> </xsl:variable>
<xsl:variable name="end_month"> <xsl:variable name="end_month">
<xsl:call-template name="dt:get-month-name"> <xsl:call-template name="dt:get-month-name">
<xsl:with-param name="month" <xsl:with-param name="month"
select="substring($end,6,2)" /> select="substring($end,6,2)" />
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="end_year"> <xsl:variable name="end_year">
<xsl:value-of select="substring($end,1,4)" /> <xsl:value-of select="substring($end,1,4)" />
</xsl:variable> </xsl:variable>
<xsl:variable name="link"> <xsl:variable name="link">
<xsl:value-of select="link" /> <xsl:value-of select="link" />
</xsl:variable> </xsl:variable>
<xsl:variable name="page"> <xsl:variable name="page">
<xsl:value-of select="page" /> <xsl:value-of select="page" />
</xsl:variable> </xsl:variable>
@ -128,15 +129,15 @@
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
</xsl:if> </xsl:if>
<!-- Now, the event block --> <!-- Now, the event block -->
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="class">entry</xsl:attribute> <xsl:attribute name="class">entry</xsl:attribute>
<xsl:attribute name="id"> <xsl:attribute name="id">
<xsl:value-of select="@filename" /> <xsl:value-of select="@filename" />
</xsl:attribute> </xsl:attribute>
<!-- event title with or without link --> <!-- event title with or without link -->
<h3> <h3>
<xsl:call-template name="generate-id-attribute"> <xsl:call-template name="generate-id-attribute">
@ -158,7 +159,7 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</h3> </h3>
<!-- event date --> <!-- event date -->
<xsl:choose> <xsl:choose>
<xsl:when test="$start != $end"> <xsl:when test="$start != $end">
@ -168,7 +169,7 @@
<xsl:if test="$start_month != $end_month"> <xsl:if test="$start_month != $end_month">
<xsl:value-of select="$start_month" /> <xsl:value-of select="$start_month" />
</xsl:if> </xsl:if>
<xsl:text> to </xsl:text> <xsl:text> to </xsl:text>
<xsl:value-of select="$end_day" /> <xsl:value-of select="$end_day" />
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
<xsl:value-of select="$end_month" /> <xsl:value-of select="$end_month" />
@ -186,12 +187,12 @@
</p> </p>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<!-- details about the event --> <!-- details about the event -->
<div class="details"> <div class="details">
<xsl:apply-templates select="body/node()" /> <xsl:apply-templates select="body/node()" />
</div> </div>
<!-- tags --> <!-- tags -->
<xsl:if test="$display-tags = 'yes'"> <xsl:if test="$display-tags = 'yes'">
<ul class="archivetaglist"> <ul class="archivetaglist">
@ -202,7 +203,7 @@
</xsl:if> </xsl:if>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="footer_legal"> <xsl:template name="footer_legal">
<xsl:element name="section"> <xsl:element name="section">
<xsl:attribute name="id">legal-info</xsl:attribute> <xsl:attribute name="id">legal-info</xsl:attribute>
<p>Copyright © 2001-2020 <xsl:element name="a"> <p>Copyright © 2001-2020 <xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/</xsl:attribute> <xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfeurope'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfeurope'" /></xsl:call-template>

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="footer_sitenav"> <xsl:template name="footer_sitenav">
<xsl:element name="nav"> <xsl:element name="nav">
<xsl:attribute name="id">full-menu</xsl:attribute> <xsl:attribute name="id">full-menu</xsl:attribute>
<xsl:element name="a"> <xsl:element name="a">
<xsl:attribute name="href">#top</xsl:attribute> <xsl:attribute name="href">#top</xsl:attribute>
<xsl:attribute name="id">direct-to-top</xsl:attribute> <xsl:attribute name="id">direct-to-top</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'go-top'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'go-top'" /></xsl:call-template>
<!--FIXME translate that--> <!--FIXME translate that-->
</xsl:element> </xsl:element>
<xsl:element name="ul"> <xsl:element name="ul">
<xsl:attribute name="id">full-menu-list</xsl:attribute> <xsl:attribute name="id">full-menu-list</xsl:attribute>
<!-- FSFE portal menu --> <!-- FSFE portal menu -->
@ -22,7 +22,7 @@
<xsl:attribute name="href">/</xsl:attribute> <xsl:attribute name="href">/</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfeurope'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfeurope'" /></xsl:call-template>
</xsl:element> </xsl:element>
<xsl:element name="ul"> <xsl:element name="ul">
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable> <xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
<xsl:for-each select="/buildinfo/menuset/menu[@parent='fsfe']"> <xsl:for-each select="/buildinfo/menuset/menu[@parent='fsfe']">
@ -53,7 +53,7 @@
<!--/ul--> <!--/ul-->
</xsl:element> </xsl:element>
<!--/li--> <!--/li-->
<!-- Support portal menu item --> <!-- Support portal menu item -->
<xsl:element name="li"> <xsl:element name="li">
<xsl:attribute name="class">support</xsl:attribute> <xsl:attribute name="class">support</xsl:attribute>
@ -61,7 +61,7 @@
<xsl:attribute name="href">https://my.fsfe.org/support</xsl:attribute> <xsl:attribute name="href">https://my.fsfe.org/support</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'support/support'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'support/support'" /></xsl:call-template>
</xsl:element> </xsl:element>
<xsl:element name="ul"> <xsl:element name="ul">
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable> <xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
<xsl:for-each select="/buildinfo/menuset/menu[@parent='support']"> <xsl:for-each select="/buildinfo/menuset/menu[@parent='support']">
@ -92,7 +92,7 @@
<!--/ul--> <!--/ul-->
</xsl:element> <!-- /li --> </xsl:element> <!-- /li -->
<!-- Planet portal menu --> <!-- Planet portal menu -->
<xsl:element name="li"> <xsl:element name="li">
<xsl:attribute name="class">planet</xsl:attribute> <xsl:attribute name="class">planet</xsl:attribute>
@ -103,7 +103,7 @@
<!-- causes validation errors, needs li to pass validator? <!-- causes validation errors, needs li to pass validator?
<xsl:element name="ul"> <xsl:element name="ul">
</xsl:element>--> </xsl:element>-->
<xsl:element name="ul"> <xsl:element name="ul">
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable> <xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
<xsl:for-each select="/buildinfo/menuset/menu[@parent='news']"> <xsl:for-each select="/buildinfo/menuset/menu[@parent='news']">
@ -133,7 +133,7 @@
</xsl:element> </xsl:element>
<!--/ul--> <!--/ul-->
</xsl:element> </xsl:element>
<!-- Legal team portal menu --> <!-- Legal team portal menu -->
<xsl:element name="li"> <xsl:element name="li">
<xsl:attribute name="class">ftf</xsl:attribute> <xsl:attribute name="class">ftf</xsl:attribute>
@ -144,7 +144,7 @@
<!-- causes validation errors, needs li to pass validator? <!-- causes validation errors, needs li to pass validator?
<xsl:element name="ul"> <xsl:element name="ul">
</xsl:element>--> </xsl:element>-->
<xsl:element name="ul"> <xsl:element name="ul">
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable> <xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
<xsl:for-each select="/buildinfo/menuset/menu[@parent='ftf']"> <xsl:for-each select="/buildinfo/menuset/menu[@parent='ftf']">
@ -174,7 +174,7 @@
</xsl:element> </xsl:element>
<!--/ul--> <!--/ul-->
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
<!--/ul#menu-list--> <!--/ul#menu-list-->
</xsl:element> </xsl:element>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="footer_sourcelink"> <xsl:template name="footer_sourcelink">
<xsl:element name="section"> <xsl:element name="section">
<xsl:attribute name="id">source</xsl:attribute> <xsl:attribute name="id">source</xsl:attribute>
<!-- "Last changed" magic --> <!-- "Last changed" magic -->
<p> <p>
<xsl:variable name="timestamp"> <xsl:variable name="timestamp">
@ -25,7 +25,7 @@
(<xsl:value-of select="$Author"/>) (<xsl:value-of select="$Author"/>)
</xsl:if> </xsl:if>
</p> </p>
<ul><li> <ul><li>
<!-- Link to the XHTML source --> <!-- Link to the XHTML source -->
<xsl:element name="a"> <xsl:element name="a">
@ -46,7 +46,7 @@
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'contribute-web'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'contribute-web'" /></xsl:call-template>
</xsl:element> </xsl:element>
</li></ul> </li></ul>
<p> <p>
<xsl:element name="a"> <xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/contribute/translators/</xsl:attribute> <xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/contribute/translators/</xsl:attribute>
@ -77,7 +77,7 @@
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator3c'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator3c'" /></xsl:call-template>
</xsl:if> </xsl:if>
</p> </p>
</xsl:element> </xsl:element>
<!--/section#source--> <!--/section#source-->
</xsl:template> </xsl:template>

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="fsfe_pageclass.xsl" /> <xsl:include href="fsfe_pageclass.xsl" />
<xsl:include href="translation_list.xsl" /> <xsl:include href="translation_list.xsl" />
<xsl:include href="fsfe_pageheader.xsl" /> <xsl:include href="fsfe_pageheader.xsl" />
@ -22,7 +21,7 @@
<!-- First of all, a comment to make clear this is generated --> <!-- First of all, a comment to make clear this is generated -->
<xsl:comment>This file was generated by an XSLT script. Please do not edit.</xsl:comment> <xsl:comment>This file was generated by an XSLT script. Please do not edit.</xsl:comment>
<xsl:call-template name="translation_list" /> <xsl:call-template name="translation_list" />
<xsl:call-template name="fsfe_pageheader" /> <xsl:call-template name="fsfe_pageheader" />
<xsl:call-template name="notifications" /> <xsl:call-template name="notifications" />
@ -46,7 +45,7 @@
</xsl:element> </xsl:element>
<!--/footer#bottom--> <!--/footer#bottom-->
<xsl:call-template name="body_scripts" /> <xsl:call-template name="body_scripts" />
</xsl:element> </xsl:element>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
@ -23,7 +23,7 @@
<xsl:if test="/buildinfo/@language = 'ar' or /buildinfo/@language = 'fa' or /buildinfo/@language = 'he'"> <xsl:if test="/buildinfo/@language = 'ar' or /buildinfo/@language = 'fa' or /buildinfo/@language = 'he'">
<xsl:attribute name="dir">rtl</xsl:attribute> <xsl:attribute name="dir">rtl</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:call-template name="page-head" /> <xsl:call-template name="page-head" />
<xsl:call-template name="page-body" /> <xsl:call-template name="page-body" />
</xsl:element> </xsl:element>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

View File

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Modify H1 --> <!-- Modify H1 -->
<xsl:template match="h1"> <xsl:template match="h1">
<!-- Apply news page PRE-rules --> <!-- Apply news page PRE-rules -->
<xsl:if test="string(/buildinfo/document/@newsdate) and <xsl:if test="string(/buildinfo/document/@newsdate) and
(not(string(/buildinfo/document/@type)) or (not(string(/buildinfo/document/@type)) or
/buildinfo/document/@type != 'newsletter' and /buildinfo/document/@type != 'newsletter' and
/buildinfo/document/@type != 'podcast')"> /buildinfo/document/@type != 'podcast')">
<!-- add link to press/press.xx.html --> <!-- add link to press/press.xx.html -->
<xsl:element name="p"> <xsl:element name="p">
<xsl:attribute name="id">category</xsl:attribute> <xsl:attribute name="id">category</xsl:attribute>
@ -20,7 +20,7 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<!-- Apply newsletter page PRE-rules --> <!-- Apply newsletter page PRE-rules -->
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'"> <xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'">
<xsl:element name="p"> <xsl:element name="p">
@ -31,7 +31,7 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<!-- Apply podcast page PRE-rules --> <!-- Apply podcast page PRE-rules -->
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'podcast'"> <xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'podcast'">
<xsl:element name="p"> <xsl:element name="p">
@ -45,7 +45,7 @@
<!-- auto generate ID for headings if it doesn't already exist --> <!-- auto generate ID for headings if it doesn't already exist -->
<xsl:call-template name="generate-id" /> <xsl:call-template name="generate-id" />
<!-- Apply news page rules --> <!-- Apply news page rules -->
<xsl:if test="string(/buildinfo/document/@newsdate) and <xsl:if test="string(/buildinfo/document/@newsdate) and
(not(string(/buildinfo/document/@type)) or (not(string(/buildinfo/document/@type)) or
@ -60,7 +60,7 @@
<xsl:value-of select="/buildinfo/document/@newsdate" /> <xsl:value-of select="/buildinfo/document/@newsdate" />
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<!-- End apply news page rules --> <!-- End apply news page rules -->
@ -76,59 +76,59 @@
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-1']/@content)"> <xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-1']/@content)">
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="id">article-metadata</xsl:attribute> <xsl:attribute name="id">article-metadata</xsl:attribute>
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-1']/@content)"> <xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-1']/@content)">
<span class="written-by"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'author'" /></xsl:call-template>: </span> <span class="written-by"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'author'" /></xsl:call-template>: </span>
<xsl:choose> <xsl:choose>
<xsl:when test="/buildinfo/document/head/meta[@name='author-link-1']"> <xsl:when test="/buildinfo/document/head/meta[@name='author-link-1']">
<xsl:variable name="author-link-1" select="/buildinfo/document/head/meta[@name='author-link-1']/@content" /> <xsl:variable name="author-link-1" select="/buildinfo/document/head/meta[@name='author-link-1']/@content" />
<a class="p-author" rel='author' href='{$author-link-1}'> <a class="p-author" rel='author' href='{$author-link-1}'>
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-1']/@content" /> </a> <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-1']/@content" /> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-1']/@content" /> <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-1']/@content" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:if> </xsl:if>
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-2']/@content)"> <xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-2']/@content)">
<xsl:choose> <xsl:choose>
<xsl:when test="/buildinfo/document/head/meta[@name='author-link-2']"> <xsl:when test="/buildinfo/document/head/meta[@name='author-link-2']">
<xsl:variable name="author-link-2" select="/buildinfo/document/head/meta[@name='author-link-2']/@content" /> <xsl:variable name="author-link-2" select="/buildinfo/document/head/meta[@name='author-link-2']/@content" />
, <a class="p-author" rel='author' href='{$author-link-2}'> , <a class="p-author" rel='author' href='{$author-link-2}'>
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-2']/@content" /> </a> <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-2']/@content" /> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
, <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-2']/@content" /> , <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-2']/@content" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:if> </xsl:if>
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-3']/@content)"> <xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-3']/@content)">
<xsl:choose> <xsl:choose>
<xsl:when test="/buildinfo/document/head/meta[@name='author-link-3']"> <xsl:when test="/buildinfo/document/head/meta[@name='author-link-3']">
<xsl:variable name="author-link-3" select="/buildinfo/document/head/meta[@name='author-link-3']/@content" /> <xsl:variable name="author-link-3" select="/buildinfo/document/head/meta[@name='author-link-3']/@content" />
, <a class="p-author" rel='author' href='{$author-link-3}'> , <a class="p-author" rel='author' href='{$author-link-3}'>
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-3']/@content" /> </a> <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-3']/@content" /> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
, <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-3']/@content" /> , <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-3']/@content" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:if> </xsl:if>
<span class="published-on">&#160;<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>: </span> <span class="published-on">&#160;<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>: </span>
<xsl:element name="time"> <xsl:element name="time">
<xsl:attribute name="class">dt-published</xsl:attribute> <xsl:attribute name="class">dt-published</xsl:attribute>
<xsl:value-of select="/buildinfo/document/head/meta[@name='publication-date']/@content" /> <xsl:value-of select="/buildinfo/document/head/meta[@name='publication-date']/@content" />
</xsl:element> </xsl:element>
<xsl:if test = "string(/buildinfo/document/head/meta[@name='pdf-link']/@content)"> <xsl:if test = "string(/buildinfo/document/head/meta[@name='pdf-link']/@content)">
<span class="pdf-download">&#160;PDF: </span> <span class="pdf-download">&#160;PDF: </span>
<xsl:variable name="pdf-link" select="/buildinfo/document/head/meta[@name='pdf-link']/@content" /> <xsl:variable name="pdf-link" select="/buildinfo/document/head/meta[@name='pdf-link']/@content" />
<a href='{$pdf-link}'>download</a> <a href='{$pdf-link}'>download</a>
</xsl:if> </xsl:if>
</xsl:element> <!-- </div> --> </xsl:element> <!-- </div> -->
</xsl:if> </xsl:if>
<!-- End Apply article rules --> <!-- End Apply article rules -->
@ -140,15 +140,15 @@
<xsl:if test="/buildinfo/document/author"> <xsl:if test="/buildinfo/document/author">
<span class="written-by"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'writtenby'" /></xsl:call-template>&#160;</span> <span class="written-by"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'writtenby'" /></xsl:call-template>&#160;</span>
<xsl:for-each select="/buildinfo/document/author"> <xsl:for-each select="/buildinfo/document/author">
<xsl:variable name="id"> <xsl:variable name="id">
<xsl:value-of select="@id" /> <xsl:value-of select="@id" />
</xsl:variable> </xsl:variable>
<xsl:choose> <xsl:choose>
<xsl:when test="@id and document('../../about/people/people.en.xml')/personset/person[@id=$id]"> <xsl:when test="@id and document('../../about/people/people.en.xml')/personset/person[@id=$id]">
<!-- if the author is in fsfe's people.xml then we take information from there --> <!-- if the author is in fsfe's people.xml then we take information from there -->
<xsl:choose> <xsl:choose>
<!-- person has a link --> <!-- person has a link -->
<xsl:when test="document('../../about/people/people.en.xml')/personset/person[@id=$id]/link"> <xsl:when test="document('../../about/people/people.en.xml')/personset/person[@id=$id]/link">
@ -212,7 +212,7 @@
</xsl:choose> </xsl:choose>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<!-- choose whether to put a comma or an "and" between authors --> <!-- choose whether to put a comma or an "and" between authors -->
<xsl:choose> <xsl:choose>
<!-- second-last author and not first author --> <!-- second-last author and not first author -->
@ -232,20 +232,20 @@
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
<!-- only show date if <date> exists (not news entries for example) --> <!-- only show date if <date> exists (not news entries for example) -->
<xsl:if test="/buildinfo/document/date"> <xsl:if test="/buildinfo/document/date">
<span class="published-on"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>&#160;</span> <span class="published-on"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>&#160;</span>
<xsl:element name="time"> <xsl:element name="time">
<xsl:attribute name="class">dt-published</xsl:attribute> <xsl:attribute name="class">dt-published</xsl:attribute>
<xsl:value-of select="/buildinfo/document/date/original/@content" /> <xsl:value-of select="/buildinfo/document/date/original/@content" />
</xsl:element>&#160; </xsl:element>&#160;
<xsl:if test="/buildinfo/document/date/revision"> <xsl:if test="/buildinfo/document/date/revision">
(<span class="revision-on"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'revision'" /></xsl:call-template></span> (<span class="revision-on"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'revision'" /></xsl:call-template></span>
<xsl:for-each select="/buildinfo/document/date/revision"> <xsl:for-each select="/buildinfo/document/date/revision">
&#160;<xsl:element name="time"> &#160;<xsl:element name="time">
<xsl:attribute name="class">dt-updated</xsl:attribute> <xsl:attribute name="class">dt-updated</xsl:attribute>
<xsl:value-of select="@content" /> <xsl:value-of select="@content" />
@ -253,7 +253,7 @@
</xsl:for-each>)&#160; </xsl:for-each>)&#160;
</xsl:if> </xsl:if>
</xsl:if> </xsl:if>
<xsl:if test="/buildinfo/document/download"> <xsl:if test="/buildinfo/document/download">
<xsl:element name="br" /> <xsl:element name="br" />
<span class="download"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'download'" /></xsl:call-template>:&#160;</span> <span class="download"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'download'" /></xsl:call-template>:&#160;</span>
@ -262,44 +262,44 @@
<xsl:value-of select="/buildinfo/document/download/@type" /> <xsl:value-of select="/buildinfo/document/download/@type" />
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<!--End Article authors, date--> <!--End Article authors, date-->
</xsl:template> </xsl:template>
<!-- End modifications to H1 --> <!-- End modifications to H1 -->
<!-- Modify H2 --> <!-- Modify H2 -->
<xsl:template match="h2"> <xsl:template match="h2">
<!-- auto generate ID for headings if it doesn't already exist --> <!-- auto generate ID for headings if it doesn't already exist -->
<xsl:call-template name="generate-id" /> <xsl:call-template name="generate-id" />
</xsl:template> </xsl:template>
<!-- Modify H3 --> <!-- Modify H3 -->
<xsl:template match="h3"> <xsl:template match="h3">
<!-- auto generate ID for headings if it doesn't already exist --> <!-- auto generate ID for headings if it doesn't already exist -->
<xsl:call-template name="generate-id" /> <xsl:call-template name="generate-id" />
</xsl:template> </xsl:template>
<!-- Modify H4 --> <!-- Modify H4 -->
<xsl:template match="h4"> <xsl:template match="h4">
<!-- auto generate ID for headings if it doesn't already exist --> <!-- auto generate ID for headings if it doesn't already exist -->
<xsl:call-template name="generate-id" /> <xsl:call-template name="generate-id" />
</xsl:template> </xsl:template>
<!-- Modify H4 --> <!-- Modify H4 -->
<xsl:template match="h4"> <xsl:template match="h4">
<!-- auto generate ID for headings if it doesn't already exist --> <!-- auto generate ID for headings if it doesn't already exist -->
<xsl:call-template name="generate-id" /> <xsl:call-template name="generate-id" />
</xsl:template> </xsl:template>
<!-- Modify H5 --> <!-- Modify H5 -->
<xsl:template match="h5"> <xsl:template match="h5">
<!-- auto generate ID for headings if it doesn't already exist --> <!-- auto generate ID for headings if it doesn't already exist -->
<xsl:call-template name="generate-id" /> <xsl:call-template name="generate-id" />
</xsl:template> </xsl:template>
<!-- Modify H6 --> <!-- Modify H6 -->
<xsl:template match="h6"> <xsl:template match="h6">
<!-- auto generate ID for headings if it doesn't already exist --> <!-- auto generate ID for headings if it doesn't already exist -->

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="sharebuttons.xsl" /> <xsl:include href="sharebuttons.xsl" />

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:dt="http://xsltsl.org/date-time"
exclude-result-prefixes="dt">
<!-- Do not copy non-HTML elements to output --> <!-- Do not copy non-HTML elements to output -->
<xsl:template match="timestamp| <xsl:template match="timestamp|

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
@ -21,4 +21,5 @@
<xsl:value-of select="/buildinfo/document/body/@class" /> newsletter article</xsl:attribute> <xsl:value-of select="/buildinfo/document/body/@class" /> newsletter article</xsl:attribute>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="sidebar"> <xsl:template name="sidebar">
<aside id="sidebar"> <aside id="sidebar">
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'"> <xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'">
@ -32,7 +32,7 @@
</xsl:call-template></a></li> </xsl:call-template></a></li>
</ul> </ul>
</xsl:if> </xsl:if>
<xsl:if test="string(/buildinfo/document/@newsdate) and count(/buildinfo/document/@type) = 0"> <xsl:if test="string(/buildinfo/document/@newsdate) and count(/buildinfo/document/@type) = 0">
<h3><xsl:call-template name="fsfe-gettext"> <h3><xsl:call-template name="fsfe-gettext">
<xsl:with-param name="id" select="'fsfe/press'" /> <xsl:with-param name="id" select="'fsfe/press'" />
@ -52,9 +52,9 @@
</xsl:call-template></a></li> </xsl:call-template></a></li>
</ul> </ul>
</xsl:if> </xsl:if>
<xsl:apply-templates select="/buildinfo/document/sidebar/node()" /> <xsl:apply-templates select="/buildinfo/document/sidebar/node()" />
<xsl:if test="string(/buildinfo/document/@newsdate)"> <xsl:if test="string(/buildinfo/document/@newsdate)">
<a href="https://my.fsfe.org/support" class="small-donate"> <a href="https://my.fsfe.org/support" class="small-donate">
<xsl:call-template name="fsfe-gettext"> <xsl:call-template name="fsfe-gettext">

View File

@ -13,7 +13,7 @@
<xsl:template match="localmenu"> <xsl:template match="localmenu">
<xsl:value-of select="@dir"/> <xsl:value-of select="@dir"/>
</xsl:template> </xsl:template>
<!-- Suppress output of text nodes, which would be the default --> <!-- Suppress output of text nodes, which would be the default -->
<xsl:template match="text()"/> <xsl:template match="text()"/>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -29,7 +29,7 @@
<xsl:value-of select="normalize-space(node())"/> <xsl:value-of select="normalize-space(node())"/>
<xsl:text>&lt;/localmenuitem&gt;</xsl:text> <xsl:text>&lt;/localmenuitem&gt;</xsl:text>
</xsl:template> </xsl:template>
<!-- Suppress output of text nodes, which would be the default --> <!-- Suppress output of text nodes, which would be the default -->
<xsl:template match="text()"/> <xsl:template match="text()"/>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -21,7 +21,7 @@
<!-- Append a newline --> <!-- Append a newline -->
<xsl:text>&#xa;</xsl:text> <xsl:text>&#xa;</xsl:text>
</xsl:template> </xsl:template>
<!-- Suppress output of text nodes, which would be the default --> <!-- Suppress output of text nodes, which would be the default -->
<xsl:template match="text()"/> <xsl:template match="text()"/>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -13,7 +13,7 @@
<xsl:template match="version"> <xsl:template match="version">
<xsl:value-of select="."/> <xsl:value-of select="."/>
</xsl:template> </xsl:template>
<!-- Suppress output of text nodes, which would be the default --> <!-- Suppress output of text nodes, which would be the default -->
<xsl:template match="text()"/> <xsl:template match="text()"/>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- this template is to be called to get texts contained in "tools/texts-xx.xml" files --> <!-- this template is to be called to get texts contained in "tools/texts-xx.xml" files -->
<xsl:template name="fsfe-gettext"> <xsl:template name="fsfe-gettext">
<xsl:param name="id" /> <xsl:param name="id" />
<xsl:choose> <xsl:choose>
<xsl:when test="/buildinfo/textset/text[@id=$id]"> <xsl:when test="/buildinfo/textset/text[@id=$id]">
<xsl:apply-templates select="/buildinfo/textset/text[@id=$id]/node()" /> <xsl:apply-templates select="/buildinfo/textset/text[@id=$id]/node()" />
@ -14,9 +14,9 @@
<xsl:apply-templates select="/buildinfo/textsetbackup/text[@id=$id]/node()" /> <xsl:apply-templates select="/buildinfo/textsetbackup/text[@id=$id]/node()" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<!-- this template is to be called to get texts contained in "tools/texts-content-xx.xml" files --> <!-- this template is to be called to get texts contained in "tools/texts-content-xx.xml" files -->
<xsl:template name="gettext"> <xsl:template name="gettext">
<xsl:param name="id" /> <xsl:param name="id" />

View File

@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="notifications"> <xsl:template name="notifications">
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="id">notifications</xsl:attribute> <xsl:attribute name="id">notifications</xsl:attribute>
<!-- Service notice (for downtime, upgrades, etc. enable this) <!-- Service notice (for downtime, upgrades, etc. enable this)
<div id="service-notice"> <div id="service-notice">
<div class="close"> <div class="close">
<a title="dismiss this notification">×</a> <a title="dismiss this notification">×</a>
</div> </div>
<div class="text"> <div class="text">
<h1>Site currently under development</h1> <h1>Site currently under development</h1>
<p> <p>
If you want to help out, <a If you want to help out, <a
href="/contribute/web/web.en.html">consider joining the href="/contribute/web/web.en.html">consider joining the
@ -22,7 +22,7 @@
</p> </p>
</div> </div>
</div> --> </div> -->
<!-- Outdated note --> <!-- Outdated note -->
<xsl:if test="/buildinfo/@outdated='yes'"> <xsl:if test="/buildinfo/@outdated='yes'">
<xsl:element name="div"> <xsl:element name="div">
@ -48,7 +48,7 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> <!-- End Outdated note --> </xsl:if> <!-- End Outdated note -->
<!-- Missing translation note --> <!-- Missing translation note -->
<xsl:if test="/buildinfo/@language!=/buildinfo/document/@language"> <xsl:if test="/buildinfo/@language!=/buildinfo/document/@language">
<xsl:element name="div"> <xsl:element name="div">
@ -65,7 +65,7 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> <!-- End Missing translation note --> </xsl:if> <!-- End Missing translation note -->
<!-- Info box --> <!-- Info box -->
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="id">infobox</xsl:attribute> <xsl:attribute name="id">infobox</xsl:attribute>
@ -107,7 +107,7 @@
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
</xsl:element><!-- End Info Box --> </xsl:element><!-- End Info Box -->
<!-- Fundraising box <!-- Fundraising box
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="id">fundraising</xsl:attribute> <xsl:attribute name="id">fundraising</xsl:attribute>

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- displays list of people for a given country (or a given team, i.e. "main") --> <!-- displays list of people for a given country (or a given team, i.e. "main") -->

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet <xsl:stylesheet
version="1.0" version="1.0"

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@ -9,7 +9,7 @@
xmlns:str='http://xsltsl.org/string' xmlns:str='http://xsltsl.org/string'
exclude-result-prefixes="dt weekdays months nl str"> exclude-result-prefixes="dt weekdays months nl str">
<xsl:import href="../../tools/xsltsl/string.xsl" /> <xsl:import href="../../tools/xsltsl/string.xsl" />
<nl:langs> <nl:langs>
<nl:lang value="en">English</nl:lang> <nl:lang value="en">English</nl:lang>
<nl:lang value="el">Ελληνικά</nl:lang> <nl:lang value="el">Ελληνικά</nl:lang>
@ -65,27 +65,27 @@
<input id="submit" type="submit" value="{$submit}"/> <input id="submit" type="submit" value="{$submit}"/>
</form> </form>
</xsl:template> </xsl:template>
<!-- auto generate ID for headings if doesn't already exist --> <!-- auto generate ID for headings if doesn't already exist -->
<xsl:template name="generate-id"> <xsl:template name="generate-id">
<xsl:copy> <xsl:copy>
<xsl:call-template name="generate-id-attribute" /> <xsl:call-template name="generate-id-attribute" />
<xsl:if test="@class"> <xsl:if test="@class">
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:value-of select="@class" /> <xsl:value-of select="@class" />
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
<xsl:apply-templates select="node()"/> <xsl:apply-templates select="node()"/>
</xsl:copy> </xsl:copy>
</xsl:template> </xsl:template>
<xsl:template name="generate-id-attribute"> <xsl:template name="generate-id-attribute">
<xsl:param name="title" select="''" /> <xsl:param name="title" select="''" />
<xsl:variable name="title2"> <xsl:variable name="title2">
<xsl:choose> <xsl:choose>
<xsl:when test="normalize-space($title)=''"> <xsl:when test="normalize-space($title)=''">
@ -96,22 +96,22 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<xsl:choose> <xsl:choose>
<xsl:when test="not(@id) or normalize-space($title)!=''"> <xsl:when test="not(@id) or normalize-space($title)!=''">
<!-- replace spaces with dashes --> <!-- replace spaces with dashes -->
<xsl:variable name="punctuation">.,:;!?&#160;&quot;'()[]&lt;&gt;>{}</xsl:variable> <xsl:variable name="punctuation">.,:;!?&#160;&quot;'()[]&lt;&gt;>{}</xsl:variable>
<xsl:variable name="formattedTitle1" select="translate(normalize-space(translate($title2,$punctuation,' ')),' ','-')"/> <xsl:variable name="formattedTitle1" select="translate(normalize-space(translate($title2,$punctuation,' ')),' ','-')"/>
<xsl:variable name="accents">áàâäãéèêëíìîïóòôöõúùûüçğ</xsl:variable> <xsl:variable name="accents">áàâäãéèêëíìîïóòôöõúùûüçğ</xsl:variable>
<xsl:variable name="noaccents">aaaaaeeeeiiiiooooouuuucg</xsl:variable> <xsl:variable name="noaccents">aaaaaeeeeiiiiooooouuuucg</xsl:variable>
<xsl:variable name="formattedTitle2"> <xsl:variable name="formattedTitle2">
<xsl:call-template name="str:to-lower"> <xsl:call-template name="str:to-lower">
<xsl:with-param name="text" select="$formattedTitle1" /> <xsl:with-param name="text" select="$formattedTitle1" />
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:attribute name="id"> <xsl:attribute name="id">
<xsl:value-of select="concat('id-',translate($formattedTitle2,$accents,$noaccents))" /> <xsl:value-of select="concat('id-',translate($formattedTitle2,$accents,$noaccents))" />
</xsl:attribute> </xsl:attribute>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?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:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="feeds.xsl" /> <xsl:import href="feeds.xsl" />
<!--display dynamic list of tagged news items--> <!--display dynamic list of tagged news items-->

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
@ -11,11 +10,11 @@
</xsl:template> </xsl:template>
<!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) --> <!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) -->
<xsl:template match="picture-box"> <xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called --> <!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable> <xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable> <xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures --> <div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote"> <div id="picture-box-inner" class="logo-list quote">
<a href="http://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg"> <a href="http://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@ -29,7 +28,7 @@
</a> </a>
</div> <!-- /picture-box-inner --> </div> <!-- /picture-box-inner -->
</div> <!-- /picture-box --> </div> <!-- /picture-box -->
<script type="text/javascript"> <script type="text/javascript">
/* &lt;![CDATA[ */ /* &lt;![CDATA[ */
var quotes = [ var quotes = [
@ -40,7 +39,7 @@
</xsl:call-template> </xsl:call-template>
<!-- and here again the one-time content --> <!-- and here again the one-time content -->
]; ];
<![CDATA[ <![CDATA[
var index = Math.floor(Math.random()*quotes.length); var index = Math.floor(Math.random()*quotes.length);
function changeImage() { function changeImage() {
@ -53,12 +52,12 @@
index = (index+1)%quotes.length; index = (index+1)%quotes.length;
setTimeout("changeImage();",5000); setTimeout("changeImage();",5000);
} }
changeImage(); changeImage();
]]> ]]>
/* ]]&gt; */ /* ]]&gt; */
</script> </script>
</xsl:template> </xsl:template>
@ -79,5 +78,5 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<!-- / picture-box --> <!-- / picture-box -->
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
@ -11,11 +10,11 @@
</xsl:template> </xsl:template>
<!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) --> <!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) -->
<xsl:template match="picture-box"> <xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called --> <!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable> <xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable> <xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures --> <div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote"> <div id="picture-box-inner" class="logo-list quote">
<a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg"> <a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@ -29,7 +28,7 @@
</a> </a>
</div> <!-- /picture-box-inner --> </div> <!-- /picture-box-inner -->
</div> <!-- /picture-box --> </div> <!-- /picture-box -->
<script type="text/javascript"> <script type="text/javascript">
/* &lt;![CDATA[ */ /* &lt;![CDATA[ */
var quotes = [ var quotes = [
@ -40,7 +39,7 @@
</xsl:call-template> </xsl:call-template>
<!-- and here again the one-time content --> <!-- and here again the one-time content -->
]; ];
<![CDATA[ <![CDATA[
var index = Math.floor(Math.random()*quotes.length); var index = Math.floor(Math.random()*quotes.length);
function changeImage() { function changeImage() {
@ -53,12 +52,12 @@
index = (index+1)%quotes.length; index = (index+1)%quotes.length;
setTimeout("changeImage();",5000); setTimeout("changeImage();",5000);
} }
changeImage(); changeImage();
]]> ]]>
/* ]]&gt; */ /* ]]&gt; */
</script> </script>
</xsl:template> </xsl:template>
@ -79,5 +78,5 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<!-- / picture-box --> <!-- / picture-box -->
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
@ -11,11 +10,11 @@
</xsl:template> </xsl:template>
<!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) --> <!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) -->
<xsl:template match="picture-box"> <xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called --> <!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable> <xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable> <xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures --> <div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote"> <div id="picture-box-inner" class="logo-list quote">
<a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg"> <a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@ -29,7 +28,7 @@
</a> </a>
</div> <!-- /picture-box-inner --> </div> <!-- /picture-box-inner -->
</div> <!-- /picture-box --> </div> <!-- /picture-box -->
<script type="text/javascript"> <script type="text/javascript">
/* &lt;![CDATA[ */ /* &lt;![CDATA[ */
var quotes = [ var quotes = [
@ -40,7 +39,7 @@
</xsl:call-template> </xsl:call-template>
<!-- and here again the one-time content --> <!-- and here again the one-time content -->
]; ];
<![CDATA[ <![CDATA[
var index = Math.floor(Math.random()*quotes.length); var index = Math.floor(Math.random()*quotes.length);
function changeImage() { function changeImage() {
@ -53,12 +52,12 @@
index = (index+1)%quotes.length; index = (index+1)%quotes.length;
setTimeout("changeImage();",5000); setTimeout("changeImage();",5000);
} }
changeImage(); changeImage();
]]> ]]>
/* ]]&gt; */ /* ]]&gt; */
</script> </script>
</xsl:template> </xsl:template>
@ -79,5 +78,5 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<!-- / picture-box --> <!-- / picture-box -->
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
@ -11,11 +10,11 @@
</xsl:template> </xsl:template>
<!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) --> <!-- This creates looping pictures in a box. All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) -->
<xsl:template match="picture-box"> <xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called --> <!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable> <xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable> <xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures --> <div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote"> <div id="picture-box-inner" class="logo-list quote">
<a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg"> <a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@ -29,7 +28,7 @@
</a> </a>
</div> <!-- /picture-box-inner --> </div> <!-- /picture-box-inner -->
</div> <!-- /picture-box --> </div> <!-- /picture-box -->
<script type="text/javascript"> <script type="text/javascript">
/* &lt;![CDATA[ */ /* &lt;![CDATA[ */
var quotes = [ var quotes = [
@ -40,7 +39,7 @@
</xsl:call-template> </xsl:call-template>
<!-- and here again the one-time content --> <!-- and here again the one-time content -->
]; ];
<![CDATA[ <![CDATA[
var index = Math.floor(Math.random()*quotes.length); var index = Math.floor(Math.random()*quotes.length);
function changeImage() { function changeImage() {
@ -53,12 +52,12 @@
index = (index+1)%quotes.length; index = (index+1)%quotes.length;
setTimeout("changeImage();",5000); setTimeout("changeImage();",5000);
} }
changeImage(); changeImage();
]]> ]]>
/* ]]&gt; */ /* ]]&gt; */
</script> </script>
</xsl:template> </xsl:template>
@ -79,5 +78,5 @@
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<!-- / picture-box --> <!-- / picture-box -->
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="2"/> <xsl:with-param name="nb-items" select="2"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,18 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<!-- This creates a page containing images of a gallery. <!-- This creates a page containing images of a gallery.
All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg) All pictures are located in a directory and have numbered names (here ilovefs-gallery-thumb-NNN.jpg)
The generated list will start at the largest number ('to' aka 'max') and end with the smallest ('from' aka 'min) --> The generated list will start at the largest number ('to' aka 'max') and end with the smallest ('from' aka 'min) -->
<xsl:template match="picture-list"> <xsl:template match="picture-list">
<!-- appears once when <picture-list /> is called --> <!-- appears once when <picture-list /> is called -->
<!-- this template calls the loop below --> <!-- this template calls the loop below -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable> <xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable> <xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<xsl:call-template name="picture-list"> <xsl:call-template name="picture-list">
<xsl:with-param name="min" select="$from"/> <!-- lowest number, will linked at the very bottom--> <xsl:with-param name="min" select="$from"/> <!-- lowest number, will linked at the very bottom-->
<xsl:with-param name="max" select="$to"/> <!-- select maximum number of pictures which should be shown in picture list --> <xsl:with-param name="max" select="$to"/> <!-- select maximum number of pictures which should be shown in picture list -->
@ -23,7 +22,7 @@ The generated list will start at the largest number ('to' aka 'max') and end wit
<xsl:param name="min"/> <xsl:param name="min"/>
<xsl:param name="max"/> <xsl:param name="max"/>
<xsl:if test="$max > $min"> <xsl:if test="$max > $min">
<!-- left side (uneven numbers) --> <!-- left side (uneven numbers) -->
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="class">captioned left</xsl:attribute> <xsl:attribute name="class">captioned left</xsl:attribute>
@ -37,7 +36,7 @@ The generated list will start at the largest number ('to' aka 'max') and end wit
</xsl:element> <!-- /img --> </xsl:element> <!-- /img -->
</xsl:element> <!-- /a --> </xsl:element> <!-- /a -->
</xsl:element> <!-- /div --> </xsl:element> <!-- /div -->
<!-- right side (even numbers) --> <!-- right side (even numbers) -->
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="class">captioned right</xsl:attribute> <xsl:attribute name="class">captioned right</xsl:attribute>
@ -51,9 +50,9 @@ The generated list will start at the largest number ('to' aka 'max') and end wit
</xsl:element> <!-- /img --> </xsl:element> <!-- /img -->
</xsl:element> <!-- /a --> </xsl:element> <!-- /a -->
</xsl:element> <!-- /div --> </xsl:element> <!-- /div -->
<!-- initiate the next round --> <!-- initiate the next round -->
<xsl:call-template name="picture-list"> <xsl:call-template name="picture-list">
<xsl:with-param name="max"> <xsl:with-param name="max">
<xsl:value-of select="$max - 2" /> <!-- count -2, because -1 is already the right side --> <xsl:value-of select="$max - 2" /> <!-- count -2, because -1 is already the right side -->
</xsl:with-param> </xsl:with-param>
@ -62,5 +61,5 @@ The generated list will start at the largest number ('to' aka 'max') and end wit
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<!-- / picture-list --> <!-- / picture-list -->
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- How to show a link --> <!-- How to show a link -->
<xsl:template match="/buildinfo/document/set/news/link"> <xsl:template match="/buildinfo/document/set/news/link">
<xsl:element name="a"> <xsl:element name="a">
@ -21,5 +20,5 @@
<xsl:text>]</xsl:text> <xsl:text>]</xsl:text>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -24,49 +24,49 @@
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<!-- fill in global figures --> <!-- fill in global figures -->
<xsl:variable name="solved"> <xsl:variable name="solved">
<xsl:value-of select="count( /buildinfo/document/set/buglist/bug[@closed != ''] )" /> <xsl:value-of select="count( /buildinfo/document/set/buglist/bug[@closed != ''] )" />
</xsl:variable> </xsl:variable>
<xsl:variable name="total"> <xsl:variable name="total">
<xsl:value-of select="count( /buildinfo/document/set/buglist/bug )" /> <xsl:value-of select="count( /buildinfo/document/set/buglist/bug )" />
</xsl:variable> </xsl:variable>
<xsl:template match="solved"> <xsl:template match="solved">
<xsl:value-of select="$solved" /> <xsl:value-of select="$solved" />
</xsl:template> </xsl:template>
<xsl:template match="bugs"> <xsl:template match="bugs">
<xsl:value-of select="$total" /> <xsl:value-of select="$total" />
</xsl:template> </xsl:template>
<xsl:template match="globalpct"> <xsl:template match="globalpct">
<xsl:value-of select="floor($solved div $total * 100)" /> <xsl:value-of select="floor($solved div $total * 100)" />
</xsl:template> </xsl:template>
<!-- <xsl:key name="indivs-by-name" match="/buildinfo/document/set/buglist/bug/@name" use="normalize-space(.)" /> <!-- <xsl:key name="indivs-by-name" match="/buildinfo/document/set/buglist/bug/@name" use="normalize-space(.)" />
<xsl:key name="groups-by-name" match="/buildinfo/document/set/buglist/bug/@group" use="normalize-space(.)" /> --> <xsl:key name="groups-by-name" match="/buildinfo/document/set/buglist/bug/@group" use="normalize-space(.)" /> -->
<!-- Fill dynamic content --> <!-- Fill dynamic content -->
<xsl:template match="dynamic-content"> <xsl:template match="dynamic-content">
<!-- <xsl:value-of select="count( /buildinfo/document/set/buglist/bug[@closed != ''] ) " /><br/> <!-- <xsl:value-of select="count( /buildinfo/document/set/buglist/bug[@closed != ''] ) " /><br/>
<xsl:value-of select="count( /buildinfo/document/set/buglist/bug ) " /><br/> <xsl:value-of select="count( /buildinfo/document/set/buglist/bug ) " /><br/>
<xsl:value-of select="floor( count(/buildinfo/document/set/buglist/bug[@closed != '']) div count( /buildinfo/document/set/buglist/bug ) * 100)" /><br/> <xsl:value-of select="floor( count(/buildinfo/document/set/buglist/bug[@closed != '']) div count( /buildinfo/document/set/buglist/bug ) * 100)" /><br/>
--> -->
<xsl:for-each select="/buildinfo/document/set/buglist"> <xsl:for-each select="/buildinfo/document/set/buglist">
<xsl:sort select="@country"/> <xsl:sort select="@country"/>
<xsl:variable name="country"> <xsl:variable name="country">
<xsl:value-of select="@country"/> <xsl:value-of select="@country"/>
</xsl:variable> </xsl:variable>
<!-- Heading --> <!-- Heading -->
<xsl:element name="h2"> <xsl:element name="h2">
<xsl:attribute name="id"> <xsl:attribute name="id">
@ -77,7 +77,7 @@
<xsl:variable name="nbinst" select="count( /buildinfo/document/set/buglist[@country=$country]/bug )" /> <xsl:variable name="nbinst" select="count( /buildinfo/document/set/buglist[@country=$country]/bug )" />
(<xsl:value-of select="$nbsolved" />/<xsl:value-of select="$nbinst" /> = <xsl:value-of select="floor($nbsolved div $nbinst * 100)" />%) (<xsl:value-of select="$nbsolved" />/<xsl:value-of select="$nbinst" /> = <xsl:value-of select="floor($nbsolved div $nbinst * 100)" />%)
</xsl:element> </xsl:element>
<!-- Table header --> <!-- Table header -->
<xsl:element name="table"> <xsl:element name="table">
<xsl:element name="tr"> <xsl:element name="tr">
@ -91,7 +91,7 @@
<xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='closedby']"/></xsl:element> <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='closedby']"/></xsl:element>
<xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='comment']"/></xsl:element> <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='comment']"/></xsl:element>
</xsl:element> </xsl:element>
<!-- Table rows --> <!-- Table rows -->
<xsl:for-each select="bug"> <xsl:for-each select="bug">
<xsl:element name="tr"> <xsl:element name="tr">
@ -118,33 +118,33 @@
</xsl:element> </xsl:element>
</xsl:for-each> </xsl:for-each>
<!-- List of participants --> <!-- List of participants -->
<!-- <!--
<xsl:value-of select="count(/buildinfo/document/set/buglist/bug/@group[ generate-id() = generate-id(key('groups-by-name', normalize-space(.))) ])" /> <xsl:value-of select="count(/buildinfo/document/set/buglist/bug/@group[ generate-id() = generate-id(key('groups-by-name', normalize-space(.))) ])" />
<xsl:element name="ul"> <xsl:element name="ul">
<xsl:for-each select=" /buildinfo/document/set/buglist/bug/@group[ generate-id() = generate-id(key('groups-by-name', normalize-space(.))) ] "> <xsl:for-each select=" /buildinfo/document/set/buglist/bug/@group[ generate-id() = generate-id(key('groups-by-name', normalize-space(.))) ] ">
<xsl:sort select="count( /buildinfo/document/set/buglist/bug/@name = . )" data-type="number" /> <xsl:sort select="count( /buildinfo/document/set/buglist/bug/@name = . )" data-type="number" />
<xsl:variable name="name" select="." /> <xsl:variable name="name" select="." />
<xsl:if test="position() &lt;= 5"> <xsl:if test="position() &lt;= 5">
<xsl:element name="li"> <xsl:element name="li">
<xsl:value-of select="count( /buildinfo/document/set/buglist/bug[@group=$name] )" /> <xsl:value-of select="count( /buildinfo/document/set/buglist/bug[@group=$name] )" />
<xsl:text>-</xsl:text> <xsl:text>-</xsl:text>
<xsl:value-of select="$name" /> <xsl:value-of select="$name" />
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</xsl:element> </xsl:element>
--> -->
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -2,19 +2,19 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="number-of-businesses"> <xsl:template match="number-of-businesses">
<xsl:value-of select="count(/buildinfo/document/set/bsig/li)" /> <xsl:value-of select="count(/buildinfo/document/set/bsig/li)" />
</xsl:template> </xsl:template>
<xsl:template match="number-of-orgs"> <xsl:template match="number-of-orgs">
<xsl:value-of select="count(/buildinfo/document/set/osig/li)" /> <xsl:value-of select="count(/buildinfo/document/set/osig/li)" />
</xsl:template> </xsl:template>
<xsl:template match="number-of-individuals"> <xsl:template match="number-of-individuals">
<xsl:value-of select="count(/buildinfo/document/set/isig/li)" /> <xsl:value-of select="count(/buildinfo/document/set/isig/li)" />
</xsl:template> </xsl:template>
<!-- Fill dynamic content --> <!-- Fill dynamic content -->
<xsl:template match="dynamic-content"> <xsl:template match="dynamic-content">
<xsl:for-each select="/buildinfo/document/set/buglist"> <xsl:for-each select="/buildinfo/document/set/buglist">

View File

@ -1,15 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../build/xslt/countries.xsl" />
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:import href="../../build/xslt/countries.xsl" />
<xsl:template match="/buildinfo/document/body/include-signatures"> <xsl:template match="/buildinfo/document/body/include-signatures">
<xsl:apply-templates /> <xsl:apply-templates />
<h3 id="organisations"> <h3 id="organisations">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'osig'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'osig'" /></xsl:call-template>
(<xsl:value-of select="count(/buildinfo/document/set/osig/li)" />) (<xsl:value-of select="count(/buildinfo/document/set/osig/li)" />)
@ -19,7 +16,7 @@
<xsl:sort select="." /> <xsl:sort select="." />
</xsl:apply-templates> </xsl:apply-templates>
</ul> </ul>
<h3 id="businesses"> <h3 id="businesses">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'bsig'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'bsig'" /></xsl:call-template>
(<xsl:value-of select="count(/buildinfo/document/set/bsig/li)" />) (<xsl:value-of select="count(/buildinfo/document/set/bsig/li)" />)
@ -29,7 +26,7 @@
<xsl:sort select="." /> <xsl:sort select="." />
</xsl:apply-templates> </xsl:apply-templates>
</ul> </ul>
<h3 id="individuals"> <h3 id="individuals">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'isig'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'isig'" /></xsl:call-template>
(<xsl:value-of select="count(/buildinfo/document/set/isig/li)" />) (<xsl:value-of select="count(/buildinfo/document/set/isig/li)" />)
@ -41,11 +38,11 @@
</ul> </ul>
<xsl:apply-templates select="/buildinfo/document/text/footer/node()" /> <xsl:apply-templates select="/buildinfo/document/text/footer/node()" />
</xsl:template> </xsl:template>
<xsl:template match="country-list"> <xsl:template match="country-list">
<xsl:call-template name="country-list" /> <xsl:call-template name="country-list" />
</xsl:template> </xsl:template>
<!-- Add a hidden field to the form to identify the language used. --> <!-- Add a hidden field to the form to identify the language used. -->
<xsl:template match="add-language"> <xsl:template match="add-language">
<xsl:element name="input"> <xsl:element name="input">

View File

@ -1,4 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="sigtable-orgs"> <xsl:template match="sigtable-orgs">
@ -11,12 +10,12 @@
<xsl:template match="sigtable"> <xsl:template match="sigtable">
<xsl:copy-of select="document('sigtable.en.xml')"/> <xsl:copy-of select="document('sigtable.en.xml')"/>
</xsl:template> </xsl:template>
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
<xsl:with-param name="sidebar" select="'yes'"/> <xsl:with-param name="sidebar" select="'yes'"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,14 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="fetch-news"> <xsl:template match="fetch-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/> <xsl:with-param name="nb-items" select="5"/>
<xsl:with-param name="sidebar" select="'yes'"/> <xsl:with-param name="sidebar" select="'yes'"/>
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />

View File

@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="signatories"> <xsl:template match="signatories">
<div class="indent"> <div class="indent">
<b><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'osig'" /></xsl:call-template></b> <b><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'osig'" /></xsl:call-template></b>
<ul> <ul>

View File

@ -1,31 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../../../fsfe.xsl" /> <xsl:import href="../../../fsfe.xsl" />
<!--
For documentation on tagging (e.g. fetching news and events), take a
look at the documentation under
/tools/xsltsl/tagging-documentation.txt
-->
<!-- The top level element of the input file is "buildinfo" --> <!-- The top level element of the input file is "buildinfo" -->
<xsl:template match="buildinfo"> <xsl:template match="buildinfo">
<xsl:apply-templates select="node()"/> <xsl:apply-templates select="node()"/>
</xsl:template> </xsl:template>
<xsl:template match="identica"> <xsl:template match="identica">
<!--<xsl:element name="div"> <!--<xsl:element name="div">
<xsl:attribute name="class">entry</xsl:attribute> <xsl:attribute name="class">entry</xsl:attribute>
<xsl:attribute name="style">float: right;</xsl:attribute> <xsl:attribute name="style">float: right;</xsl:attribute>
<xsl:element name="script"> <xsl:element name="script">
<xsl:attribute name="type">text/javascript</xsl:attribute> <xsl:attribute name="type">text/javascript</xsl:attribute>
<xsl:attribute name="src">http://identi.ca/js/identica-badge.js</xsl:attribute> <xsl:attribute name="src">http://identi.ca/js/identica-badge.js</xsl:attribute>
<xsl:text> <xsl:text>
{ {
"user":"ireallylovefs", "user":"ireallylovefs",
@ -36,9 +27,9 @@
"height":"200px" "height":"200px"
} }
</xsl:text> </xsl:text>
</xsl:element> </xsl:element>
</xsl:element>--> </xsl:element>-->
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:template match="speakers"> <xsl:template match="speakers">

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:import href="../../build/xslt/countries.xsl" /> <xsl:import href="../../build/xslt/countries.xsl" />
<!-- Dropdown list of countries requiring a choice --> <!-- Dropdown list of countries requiring a choice -->
<!-- when copying this, remember importing the xsl, and editing the .source file --> <!-- when copying this, remember importing the xsl, and editing the .source file -->
<xsl:template match="country-list"> <xsl:template match="country-list">

View File

@ -1,4 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
@ -8,21 +8,21 @@
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="id">toc</xsl:attribute> <xsl:attribute name="id">toc</xsl:attribute>
<xsl:element name="ul"> <xsl:element name="ul">
<xsl:for-each select="/buildinfo/document/set/item"> <xsl:for-each select="/buildinfo/document/set/item">
<xsl:sort select="@type" order="ascending" /> <xsl:sort select="@type" order="ascending" />
<!-- Load variables id, #link, type and year --> <!-- Load variables id, #link, type and year -->
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable> <xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<xsl:variable name="link" select="concat('#', $id)"/> <xsl:variable name="link" select="concat('#', $id)"/>
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable> <xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
<xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable> <xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable>
<xsl:element name="li"> <xsl:element name="li">
<xsl:text>[</xsl:text> <xsl:text>[</xsl:text>
<xsl:value-of select="$type"/> <!-- e.g. [dfd] --> <xsl:value-of select="$type"/> <!-- e.g. [dfd] -->
<xsl:text>] </xsl:text> <xsl:text>] </xsl:text>
<xsl:element name="a"> <xsl:element name="a">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="$link"/> <!-- #id-of-item --> <xsl:value-of select="$link"/> <!-- #id-of-item -->
@ -32,7 +32,7 @@
<xsl:value-of select="$year"/> <!-- (20xx) --> <xsl:value-of select="$year"/> <!-- (20xx) -->
<xsl:text>)</xsl:text> <xsl:text>)</xsl:text>
</xsl:element> <!-- /a --> </xsl:element> <!-- /a -->
</xsl:element> <!-- /li --> </xsl:element> <!-- /li -->
</xsl:for-each> </xsl:for-each>
</xsl:element> <!-- /ul --> </xsl:element> <!-- /ul -->
@ -45,11 +45,11 @@
<xsl:for-each select="/buildinfo/document/set/item [@year = $year]"> <xsl:for-each select="/buildinfo/document/set/item [@year = $year]">
<xsl:sort select="@order" order="ascending"/> <xsl:sort select="@order" order="ascending"/>
<!-- Full Item --> <!-- Full Item -->
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="class">left break margin-vertical</xsl:attribute> <xsl:attribute name="class">left break margin-vertical</xsl:attribute>
<!-- Load item variables id and year --> <!-- Load item variables id and year -->
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable> <xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable> <xsl:variable name="type"><xsl:value-of select="@type"/></xsl:variable>
@ -62,7 +62,7 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
<!-- / Name --> <!-- / Name -->
<!-- Image --> <!-- Image -->
<xsl:for-each select="image"> <xsl:for-each select="image">
<!-- <xsl:element name="a"> <!-- <xsl:element name="a">
@ -72,7 +72,7 @@
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" /> <xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" />
</xsl:attribute> --> </xsl:attribute> -->
<xsl:element name="img"> <xsl:element name="img">
<xsl:attribute name="class">left grid-30</xsl:attribute> <xsl:attribute name="class">left grid-30</xsl:attribute>
<xsl:attribute name="src"> <xsl:attribute name="src">
@ -82,7 +82,7 @@
<!-- </xsl:element> --> <!-- /a --> <!-- </xsl:element> --> <!-- /a -->
</xsl:for-each> </xsl:for-each>
<!-- /Image --> <!-- /Image -->
<!-- Description --> <!-- Description -->
<xsl:element name="p"> <xsl:element name="p">
<xsl:attribute name="class">right grid-70</xsl:attribute> <xsl:attribute name="class">right grid-70</xsl:attribute>
@ -90,11 +90,11 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/description" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/description" />
</xsl:element> </xsl:element>
<!-- / Description --> <!-- / Description -->
<!-- Details --> <!-- Details -->
<xsl:element name="p"> <xsl:element name="p">
<xsl:attribute name="class">right grid-70</xsl:attribute> <xsl:attribute name="class">right grid-70</xsl:attribute>
<!-- Type --> <!-- Type -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/type != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/type != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -104,7 +104,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/type" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/type" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Size --> <!-- Size -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/size != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/size != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -114,7 +114,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/size" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/size" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Context (e.g Campaign) --> <!-- Context (e.g Campaign) -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/context != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/context != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -124,7 +124,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/context" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/context" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Languages --> <!-- Languages -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/languages != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/languages != ''">
<xsl:element name="span"> <xsl:element name="span">
@ -143,7 +143,7 @@
</xsl:element> <!-- /span --> </xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- License --> <!-- License -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/license != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/license != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -153,7 +153,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/license" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/license" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Author --> <!-- Author -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/author != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/author != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -163,7 +163,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/author" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/author" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Year --> <!-- Year -->
<xsl:element name="strong"> <xsl:element name="strong">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-year'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'stw-year'" /></xsl:call-template>
@ -171,8 +171,8 @@
</xsl:element> </xsl:element>
<xsl:value-of select="$year"/> <xsl:value-of select="$year"/>
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
<!-- SMALLER TEXT --> <!-- SMALLER TEXT -->
<!-- Source --> <!-- Source -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/source != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/source != ''">
@ -192,7 +192,7 @@
</xsl:element> <!-- /span --> </xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Printready --> <!-- Printready -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/printready != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/printready != ''">
<xsl:element name="span"> <xsl:element name="span">
@ -211,15 +211,15 @@
</xsl:element> <!-- /span --> </xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
</xsl:element> </xsl:element>
<!-- / Details --> <!-- / Details -->
</xsl:element> </xsl:element>
<!-- / Full Item --> <!-- / Full Item -->
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
@ -10,9 +10,9 @@
<xsl:for-each select="/buildinfo/document/set/item [@type = $type]"> <xsl:for-each select="/buildinfo/document/set/item [@type = $type]">
<xsl:sort select="@order" order="ascending"/> <xsl:sort select="@order" order="ascending"/>
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable> <xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<xsl:choose> <xsl:choose>
<!-- item is just an introductionary text --> <!-- item is just an introductionary text -->
<xsl:when test="@introduction = 'yes'"> <xsl:when test="@introduction = 'yes'">
@ -28,7 +28,7 @@
<xsl:element name="div"> <xsl:element name="div">
<xsl:attribute name="class">left break margin-vertical</xsl:attribute> <xsl:attribute name="class">left break margin-vertical</xsl:attribute>
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
<xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable> <xsl:variable name="year"><xsl:value-of select="@year"/></xsl:variable>
<!-- Name --> <!-- Name -->
@ -38,7 +38,7 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
<!-- / Name --> <!-- / Name -->
<!-- Image --> <!-- Image -->
<xsl:for-each select="image"> <xsl:for-each select="image">
<!-- <xsl:element name="a"> <!-- <xsl:element name="a">
@ -48,7 +48,7 @@
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" /> <xsl:value-of select="/buildinfo/document/set/info[@id=$id]/name" />
</xsl:attribute> --> </xsl:attribute> -->
<xsl:element name="img"> <xsl:element name="img">
<xsl:attribute name="class">left grid-30</xsl:attribute> <xsl:attribute name="class">left grid-30</xsl:attribute>
<xsl:attribute name="src"> <xsl:attribute name="src">
@ -58,7 +58,7 @@
<!-- </xsl:element> --> <!-- /a --> <!-- </xsl:element> --> <!-- /a -->
</xsl:for-each> </xsl:for-each>
<!-- /Image --> <!-- /Image -->
<!-- Description --> <!-- Description -->
<xsl:element name="p"> <xsl:element name="p">
<xsl:attribute name="class">right grid-70</xsl:attribute> <xsl:attribute name="class">right grid-70</xsl:attribute>
@ -66,7 +66,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/description" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/description" />
</xsl:element> </xsl:element>
<!-- / Description --> <!-- / Description -->
<!-- Printed version --> <!-- Printed version -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/printed != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/printed != ''">
<xsl:element name="p"> <xsl:element name="p">
@ -85,12 +85,12 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/printed" /> <!-- Dynamic value of the field --> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/printed" /> <!-- Dynamic value of the field -->
</xsl:element> <!-- /p --> </xsl:element> <!-- /p -->
<!--<xsl:element name="br"></xsl:element>--> <!--<xsl:element name="br"></xsl:element>-->
</xsl:if> </xsl:if>
<!-- Details --> <!-- Details -->
<xsl:element name="p"> <xsl:element name="p">
<xsl:attribute name="class">right grid-70</xsl:attribute> <xsl:attribute name="class">right grid-70</xsl:attribute>
<!-- Type --> <!-- Type -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/type != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/type != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -100,7 +100,7 @@
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/type" /> <xsl:value-of select="/buildinfo/document/set/info[@id=$id]/type" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Size --> <!-- Size -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/size != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/size != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -110,7 +110,7 @@
<xsl:value-of select="/buildinfo/document/set/info[@id=$id]/size" /> <xsl:value-of select="/buildinfo/document/set/info[@id=$id]/size" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Context (e.g Campaign) --> <!-- Context (e.g Campaign) -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/context != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/context != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -120,7 +120,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/context" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/context" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Languages --> <!-- Languages -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/languages != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/languages != ''">
<xsl:element name="span"> <xsl:element name="span">
@ -139,7 +139,7 @@
</xsl:element> <!-- /span --> </xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- License --> <!-- License -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/license != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/license != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -149,7 +149,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/license" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/license" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Author --> <!-- Author -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/author != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/author != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -159,7 +159,7 @@
<xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/author" /> <xsl:copy-of select="/buildinfo/document/set/info[@id=$id]/author" />
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Year --> <!-- Year -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/year != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/year != ''">
<xsl:element name="strong"> <xsl:element name="strong">
@ -169,8 +169,8 @@
<xsl:value-of select="$year"/> <xsl:value-of select="$year"/>
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- SMALLER TEXT --> <!-- SMALLER TEXT -->
<!-- Source --> <!-- Source -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/source != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/source != ''">
@ -190,7 +190,7 @@
</xsl:element> <!-- /span --> </xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
<!-- Printready --> <!-- Printready -->
<xsl:if test="/buildinfo/document/set/info[@id=$id]/printready != ''"> <xsl:if test="/buildinfo/document/set/info[@id=$id]/printready != ''">
<xsl:element name="span"> <xsl:element name="span">
@ -209,21 +209,21 @@
</xsl:element> <!-- /span --> </xsl:element> <!-- /span -->
<xsl:element name="br"></xsl:element> <xsl:element name="br"></xsl:element>
</xsl:if> </xsl:if>
</xsl:element> </xsl:element>
<!-- / Details --> <!-- / Details -->
</xsl:element> </xsl:element>
<!-- / Full Item --> <!-- / Full Item -->
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<!-- Dropdown list of countries requiring a choice --> <!-- Dropdown list of countries requiring a choice -->

View File

@ -1,11 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../../build/xslt/people.xsl" />
<xsl:import href="../../fsfe.xsl" /> <xsl:import href="../../fsfe.xsl" />
<xsl:import href="../../build/xslt/people.xsl" />
<xsl:template match="translation-coordinators-list"> <xsl:template match="translation-coordinators-list">
<xsl:call-template name="country-people-list"> <xsl:call-template name="country-people-list">

View File

@ -1,23 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../build/xslt/people.xsl" />
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
<xsl:import href="../build/xslt/people.xsl" />
<!-- To localise this page to a new country, copy this file and change the following:
# <xsl:variable name="country-code">de</xsl:variable> -> change xx to your country code
For more information, take a look at the documentation at
http://fsfe.org/contribute/web/tagging.html
-->
<xsl:variable name="country-code">de</xsl:variable> <xsl:variable name="country-code">de</xsl:variable>
<!--display labels--> <!--display labels-->
<!--translated word "news"--> <!--translated word "news"-->
@ -54,14 +42,14 @@
<xsl:with-param name="id" select="'team'" /> <xsl:with-param name="id" select="'team'" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define contact information--> <!--define contact information-->
<xsl:template match="contact-details"> <xsl:template match="contact-details">
<xsl:for-each select="/buildinfo/document/set/contact"> <xsl:for-each select="/buildinfo/document/set/contact">
<xsl:if test="@id = 'DE'"> <xsl:if test="@id = 'DE'">
<!-- Email --> <!-- Email -->
<xsl:if test="email != ''"> <xsl:if test="email != ''">
<xsl:element name="p"> <xsl:element name="p">
@ -76,12 +64,12 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<!-- Address --> <!-- Address -->
<xsl:if test="address != ''"> <xsl:if test="address != ''">
<xsl:apply-templates select="address"/> <xsl:apply-templates select="address"/>
</xsl:if> </xsl:if>
<!-- Phone --> <!-- Phone -->
<xsl:if test="phone != ''"> <xsl:if test="phone != ''">
<xsl:element name="p"> <xsl:element name="p">
@ -102,14 +90,14 @@
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<!--define dynamic list of country news items--> <!--define dynamic list of country news items-->
<xsl:template match="country-news"> <xsl:template match="country-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="3" /> <xsl:with-param name="nb-items" select="3" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!-- EVENTS --> <!-- EVENTS -->
<!--display dynamic list of event items--> <!--display dynamic list of event items-->
<xsl:template match="country-events"> <xsl:template match="country-events">
@ -117,7 +105,7 @@
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'present'" /> <xsl:with-param name="wanted-time" select="'present'" />
</xsl:call-template> </xsl:call-template>
<!-- Future events --> <!-- Future events -->
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'future'" /> <xsl:with-param name="wanted-time" select="'future'" />
@ -125,7 +113,7 @@
<!--FIXME ↑ why is it showing one more?--> <!--FIXME ↑ why is it showing one more?-->
</xsl:call-template> </xsl:call-template>
</xsl:template> <!-- /EVENTS --> </xsl:template> <!-- /EVENTS -->
<!--define dynamic list of country team members--> <!--define dynamic list of country team members-->
<xsl:template match="country-team-list"> <xsl:template match="country-team-list">
<xsl:call-template name="country-people-list"> <xsl:call-template name="country-people-list">

View File

@ -1,10 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:import href="fsfe.xsl"/>
xmlns:dt="http://xsltsl.org/date-time" </xsl:stylesheet>
exclude-result-prefixes="dt">
<xsl:import href="fsfe.xsl" />
</xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="xslt/drm_info_head.xsl" /> <xsl:import href="xslt/drm_info_head.xsl" />
<xsl:import href="xslt/drm_info_body.xsl" /> <xsl:import href="xslt/drm_info_body.xsl" />
<xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" /> <xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<xsl:include href="../build/xslt/fsfe_document.xsl" /> <xsl:include href="../build/xslt/fsfe_document.xsl" />
<xsl:include href="../build/xslt/fsfe_nolocal.xsl" /> <xsl:include href="../build/xslt/fsfe_nolocal.xsl" />

View File

@ -27,7 +27,7 @@
<xsl:attribute name="class">slogan2</xsl:attribute> <xsl:attribute name="class">slogan2</xsl:attribute>
What you should know about Digital Restrictions Management What you should know about Digital Restrictions Management
</xsl:element> </xsl:element>
<xsl:element name="a"> <xsl:element name="a">
<xsl:attribute name="href">http://drm.info</xsl:attribute> <xsl:attribute name="href">http://drm.info</xsl:attribute>
<xsl:element name="img"> <xsl:element name="img">
@ -94,10 +94,10 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
<!-- <xsl:call-template name="notifications" /> --> <!-- <xsl:call-template name="notifications" /> -->
<xsl:element name="div"> <xsl:attribute name="id">body</xsl:attribute> <xsl:element name="div"> <xsl:attribute name="id">body</xsl:attribute>
@ -105,8 +105,8 @@
<xsl:apply-templates select="body/node()" /> <xsl:apply-templates select="body/node()" />
<!-- </xsl:element> --> <!-- </xsl:element> -->
<!-- </xsl:element> --> <!-- </xsl:element> -->
<xsl:element name="div"><xsl:attribute name="class">col3</xsl:attribute> <xsl:element name="div"><xsl:attribute name="class">col3</xsl:attribute>
<xsl:element name="h3">Powered By</xsl:element> <xsl:element name="h3">Powered By</xsl:element>
<xsl:element name="ul"> <xsl:element name="ul">
@ -121,7 +121,7 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
<xsl:element name="h4">In Collaboration with</xsl:element> <xsl:element name="h4">In Collaboration with</xsl:element>
<xsl:element name="ul"> <xsl:element name="ul">
@ -164,21 +164,21 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
<!-- <xsl:element name="hr" /> <!-- <xsl:element name="hr" />
<xsl:element name="footer"> <xsl:element name="footer">
<xsl:attribute name="id">bottom</xsl:attribute> <xsl:attribute name="id">bottom</xsl:attribute>
<xsl:call-template name="footer_sitenav" /> <xsl:call-template name="footer_sitenav" />
<xsl:element name="hr" /> <xsl:element name="hr" />
<xsl:call-template name="footer_sourcelink" /> <xsl:call-template name="footer_sourcelink" />
<xsl:call-template name="footer_legal" /> <xsl:call-template name="footer_legal" />
<xsl:element name="section"> <xsl:element name="section">
<xsl:attribute name="id">sister-organisations</xsl:attribute> <xsl:attribute name="id">sister-organisations</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfnetwork'" /></xsl:call-template> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfnetwork'" /></xsl:call-template>
</xsl:element> --> </xsl:element> -->
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

View File

@ -1,23 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dt="http://xsltsl.org/date-time">
<xsl:import href="../build/xslt/people.xsl" />
<xsl:import href="../fsfe.xsl" /> <xsl:import href="../fsfe.xsl" />
<xsl:import href="../build/xslt/people.xsl" />
<!-- To localise this page to a new country, copy this file and change the following:
# <xsl:variable name="country-code">de</xsl:variable> -> change xx to your country code
For more information, take a look at the documentation at
http://fsfe.org/contribute/web/tagging.html
-->
<xsl:variable name="country-code">ee</xsl:variable> <xsl:variable name="country-code">ee</xsl:variable>
<!--display labels--> <!--display labels-->
<!--translated word "news"--> <!--translated word "news"-->
@ -54,14 +42,14 @@
<xsl:with-param name="id" select="'team'" /> <xsl:with-param name="id" select="'team'" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define contact information--> <!--define contact information-->
<xsl:template match="contact-details"> <xsl:template match="contact-details">
<xsl:for-each select="/buildinfo/document/set/contact"> <xsl:for-each select="/buildinfo/document/set/contact">
<xsl:if test="@id = 'EE'"> <xsl:if test="@id = 'EE'">
<!-- Email --> <!-- Email -->
<xsl:if test="email != ''"> <xsl:if test="email != ''">
<xsl:element name="p"> <xsl:element name="p">
@ -76,12 +64,12 @@
</xsl:element> </xsl:element>
</xsl:element> </xsl:element>
</xsl:if> </xsl:if>
<!-- Address --> <!-- Address -->
<xsl:if test="address != ''"> <xsl:if test="address != ''">
<xsl:apply-templates select="address"/> <xsl:apply-templates select="address"/>
</xsl:if> </xsl:if>
<!-- Phone --> <!-- Phone -->
<xsl:if test="phone != ''"> <xsl:if test="phone != ''">
<xsl:element name="p"> <xsl:element name="p">
@ -102,28 +90,28 @@
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
<!--define dynamic list of country news items--> <!--define dynamic list of country news items-->
<xsl:template match="country-news"> <xsl:template match="country-news">
<xsl:call-template name="fetch-news"> <xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="3" /> <xsl:with-param name="nb-items" select="3" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define dynamic list of country event items--> <!--define dynamic list of country event items-->
<xsl:template match="country-events"> <xsl:template match="country-events">
<!-- Current events --> <!-- Current events -->
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'present'" /> <xsl:with-param name="wanted-time" select="'present'" />
</xsl:call-template> </xsl:call-template>
<!-- Future events --> <!-- Future events -->
<xsl:call-template name="fetch-events"> <xsl:call-template name="fetch-events">
<xsl:with-param name="wanted-time" select="'future'" /> <xsl:with-param name="wanted-time" select="'future'" />
<xsl:with-param name="nb-items" select="3" /> <xsl:with-param name="nb-items" select="3" />
</xsl:call-template> </xsl:call-template>
</xsl:template> </xsl:template>
<!--define dynamic list of country team members--> <!--define dynamic list of country team members-->
<xsl:template match="country-team-list"> <xsl:template match="country-team-list">
<xsl:call-template name="country-people-list"> <xsl:call-template name="country-people-list">

View File

@ -4,10 +4,10 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:str="http://exslt.org/strings" xmlns:str="http://exslt.org/strings"
extension-element-prefixes="str"> extension-element-prefixes="str">
<xsl:output method="text" encoding="UTF-8" indent="no" /> <xsl:output method="text" encoding="UTF-8" indent="no" />
<xsl:strip-space elements="body"/> <xsl:strip-space elements="body"/>
<!-- new line template --> <!-- new line template -->
<xsl:template name="nl"><xsl:text>&#13;&#10;</xsl:text></xsl:template> <xsl:template name="nl"><xsl:text>&#13;&#10;</xsl:text></xsl:template>
@ -22,11 +22,11 @@
<xsl:variable name="end"> <xsl:variable name="end">
<xsl:value-of select="translate (@end, '-', '')" /> <xsl:value-of select="translate (@end, '-', '')" />
</xsl:variable> </xsl:variable>
<xsl:variable name="link"> <xsl:variable name="link">
<xsl:value-of select="link" /> <xsl:value-of select="link" />
</xsl:variable> </xsl:variable>
<xsl:variable name="page"> <xsl:variable name="page">
<xsl:value-of select="page" /> <xsl:value-of select="page" />
</xsl:variable> </xsl:variable>
@ -44,14 +44,14 @@
<xsl:if test="not($start = $end)"> <xsl:if test="not($start = $end)">
<xsl:text>DTEND;VALUE=DATE:</xsl:text><xsl:value-of select="$end" /><xsl:call-template name="nl" /> <xsl:text>DTEND;VALUE=DATE:</xsl:text><xsl:value-of select="$end" /><xsl:call-template name="nl" />
</xsl:if> </xsl:if>
<xsl:text>URL:</xsl:text> <xsl:text>URL:</xsl:text>
<xsl:choose> <xsl:choose>
<xsl:when test="$page != ''"><xsl:value-of select="$page" /></xsl:when> <xsl:when test="$page != ''"><xsl:value-of select="$page" /></xsl:when>
<xsl:otherwise>http://fsfe.org/events/events.<xsl:value-of select="/buildinfo/@language" />.html</xsl:otherwise> <xsl:otherwise>http://fsfe.org/events/events.<xsl:value-of select="/buildinfo/@language" />.html</xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:call-template name="nl" /> <xsl:call-template name="nl" />
<xsl:text>DESCRIPTION:</xsl:text> <xsl:text>DESCRIPTION:</xsl:text>
<xsl:call-template name="ical-escape"> <xsl:call-template name="ical-escape">
<xsl:with-param name="text" select="normalize-space(body/node())" /> <xsl:with-param name="text" select="normalize-space(body/node())" />
@ -59,13 +59,13 @@
<xsl:call-template name="nl" /> <xsl:call-template name="nl" />
<xsl:text>END:VEVENT</xsl:text><xsl:call-template name="nl" /> <xsl:text>END:VEVENT</xsl:text><xsl:call-template name="nl" />
</xsl:template> </xsl:template>
<xsl:template match="/"> <xsl:template match="/">
<xsl:apply-templates select="/buildinfo/document" /> <xsl:apply-templates select="/buildinfo/document" />
</xsl:template> </xsl:template>
<xsl:template match="/buildinfo/document"> <xsl:template match="/buildinfo/document">
<xsl:text>BEGIN:VCALENDAR</xsl:text><xsl:call-template name="nl" /> <xsl:text>BEGIN:VCALENDAR</xsl:text><xsl:call-template name="nl" />
<xsl:text>VERSION:2.0</xsl:text><xsl:call-template name="nl" /> <xsl:text>VERSION:2.0</xsl:text><xsl:call-template name="nl" />
@ -79,11 +79,11 @@
</xsl:for-each> </xsl:for-each>
<xsl:text>END:VCALENDAR</xsl:text> <xsl:text>END:VCALENDAR</xsl:text>
</xsl:template> </xsl:template>
<xsl:template name="ical-escape"> <xsl:template name="ical-escape">
<xsl:param name="text" /> <xsl:param name="text" />
<!-- characters to be backslashed: \;, --> <!-- characters to be backslashed: \;, -->
<xsl:value-of select="str:replace(str:replace(str:replace($text,'\','\\'),',','\,'),';','\;')" /> <xsl:value-of select="str:replace(str:replace(str:replace($text,'\','\\'),',','\,'),';','\;')" />
</xsl:template> </xsl:template>

Some files were not shown because too many files have changed in this diff Show More