Clean up formatting of XSL files, no code change
This commit is contained in:
parent
e30539a6bd
commit
377fcde82e
|
@ -1,14 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:dt="http://xsltsl.org/date-time">
|
||||
|
||||
<xsl:import href="../build/xslt/people.xsl" />
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:import href="../fsfe.xsl" />
|
||||
|
||||
<xsl:import href="../build/xslt/people.xsl" />
|
||||
|
||||
<xsl:template match="care-team-list">
|
||||
<xsl:copy-of select="document('codeofconduct-careteam.en.xml')"/>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -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: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:element>
|
||||
<!-- 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: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>
|
||||
|
@ -53,7 +53,7 @@
|
|||
<xsl:text>]</xsl:text>
|
||||
</xsl:element>
|
||||
<!-- 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: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>
|
||||
|
|
|
@ -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:import href="../build/xslt/people.xsl" />
|
||||
<xsl:import href="../fsfe.xsl" />
|
||||
|
||||
<!--
|
||||
For documentation on tagging (e.g. display a people list), take a
|
||||
look at the documentation under
|
||||
/tools/xsltsl/documentation-tagging.txt
|
||||
-->
|
||||
<xsl:import href="../build/xslt/people.xsl" />
|
||||
|
||||
<!-- Fill dynamic content -->
|
||||
|
||||
|
|
|
@ -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:import href="../build/xslt/people.xsl" />
|
||||
<xsl:import href="../fsfe.xsl" />
|
||||
|
||||
<!--
|
||||
For documentation on tagging (e.g. display a people list), take a
|
||||
look at the documentation under
|
||||
/tools/xsltsl/documentation-tagging.txt
|
||||
-->
|
||||
<xsl:import href="../build/xslt/people.xsl" />
|
||||
|
||||
<!-- Fill dynamic content -->
|
||||
|
||||
<!-- All people with council tag -->
|
||||
<xsl:template match="council-members">
|
||||
<xsl:call-template name="country-people-list">
|
||||
|
|
|
@ -1,25 +1,22 @@
|
|||
<?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="../../fsfe.xsl" />
|
||||
|
||||
|
||||
<!--define dynamic list of country news items-->
|
||||
<xsl:template match="country-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
<xsl:with-param name="nb-items" select="3" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--define dynamic list of country event items-->
|
||||
<xsl:template match="country-events">
|
||||
<!-- Current events -->
|
||||
<xsl:call-template name="fetch-events">
|
||||
<xsl:with-param name="wanted-time" select="'present'" />
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
<!-- Future events -->
|
||||
<xsl:call-template name="fetch-events">
|
||||
<xsl:with-param name="wanted-time" select="'future'" />
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<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" />
|
||||
|
||||
<!-- In /html/body node, append dynamic content -->
|
||||
<xsl:import href="../../tags/default.xsl" />
|
||||
|
||||
<xsl:template match="tagged-docs">
|
||||
<xsl:call-template name="tagged-news" />
|
||||
</xsl:template>
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:import href="../../fsfe.xsl" />
|
||||
|
||||
|
||||
<xsl:template match="fetch-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
<xsl:with-param name="nb-items" select="5"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- How to show a link -->
|
||||
<xsl:template match="/buildinfo/document/set/news/link">
|
||||
<xsl:element name="a">
|
||||
|
@ -21,5 +20,5 @@
|
|||
<xsl:text>]</xsl:text>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:import href="../../fsfe.xsl" />
|
||||
|
||||
|
||||
<xsl:template match="fetch-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
<xsl:with-param name="nb-items" select="15"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- How to show a link -->
|
||||
<xsl:template match="/buildinfo/document/set/news/link">
|
||||
<xsl:element name="a">
|
||||
|
@ -21,5 +20,5 @@
|
|||
<xsl:text>]</xsl:text>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:import href="../../fsfe.xsl" />
|
||||
|
||||
|
||||
<xsl:template match="fetch-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
<xsl:with-param name="nb-items" select="5"/>
|
||||
<xsl:with-param name="sidebar" select="'yes'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -6,5 +6,5 @@
|
|||
<xsl:template match="sigtable">
|
||||
<xsl:copy-of select="document('sigtable.en.xml')"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:import href="../../fsfe.xsl" />
|
||||
|
||||
|
||||
<xsl:template match="fetch-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
<xsl:with-param name="nb-items" select="15"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- How to show a link -->
|
||||
<xsl:template match="/buildinfo/document/set/news/link">
|
||||
<xsl:element name="a">
|
||||
|
@ -21,5 +20,5 @@
|
|||
<xsl:text>]</xsl:text>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -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:import href="../../fsfe.xsl" />
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:import href="../../fsfe.xsl" />
|
||||
|
||||
<xsl:template match="signatories">
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:import href="../fsfe.xsl" />
|
||||
|
||||
<xsl:template match="associates">
|
||||
|
@ -17,6 +15,6 @@
|
|||
<xsl:apply-templates select="description/node()" />
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
|
36
at/at.xsl
36
at/at.xsl
|
@ -1,23 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:dt="http://xsltsl.org/date-time">
|
||||
|
||||
<xsl:import href="../build/xslt/people.xsl" />
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<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>
|
||||
|
||||
|
||||
<!--display labels-->
|
||||
|
||||
<!--translated word "news"-->
|
||||
|
@ -54,14 +42,14 @@
|
|||
<xsl:with-param name="id" select="'team'" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--define contact information-->
|
||||
|
||||
|
||||
<xsl:template match="contact-details">
|
||||
<xsl:for-each select="/buildinfo/document/set/contact">
|
||||
|
||||
<xsl:if test="@id = 'DE'">
|
||||
|
||||
|
||||
<!-- Email -->
|
||||
<xsl:if test="email != ''">
|
||||
<xsl:element name="p">
|
||||
|
@ -76,12 +64,12 @@
|
|||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- Address -->
|
||||
<xsl:if test="address != ''">
|
||||
<xsl:apply-templates select="address"/>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- Phone -->
|
||||
<xsl:if test="phone != ''">
|
||||
<xsl:element name="p">
|
||||
|
@ -102,28 +90,28 @@
|
|||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--define dynamic list of country news items-->
|
||||
<xsl:template match="country-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
<xsl:with-param name="nb-items" select="3" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--define dynamic list of country event items-->
|
||||
<xsl:template match="country-events">
|
||||
<!-- Current events -->
|
||||
<xsl:call-template name="fetch-events">
|
||||
<xsl:with-param name="wanted-time" select="'present'" />
|
||||
</xsl:call-template>
|
||||
|
||||
|
||||
<!-- Future events -->
|
||||
<xsl:call-template name="fetch-events">
|
||||
<xsl:with-param name="wanted-time" select="'future'" />
|
||||
<xsl:with-param name="nb-items" select="3" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!--define dynamic list of country team members-->
|
||||
<xsl:template match="country-team-list">
|
||||
<xsl:call-template name="country-people-list">
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
||||
<!-- showing a dropdown select menu with all countries in /tools/countries.**.xml -->
|
||||
|
@ -8,13 +9,13 @@
|
|||
<xsl:element name="select">
|
||||
<xsl:attribute name="id">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:when test="$class != ''">
|
||||
<xsl:attribute name="class"><xsl:value-of select="$class" /></xsl:attribute>
|
||||
</xsl:when>
|
||||
</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 -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="$required = 'yes'">
|
||||
|
@ -35,6 +36,6 @@
|
|||
</xsl:for-each>
|
||||
</xsl:element> <!-- /select -->
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
|
|
@ -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"
|
||||
xmlns:dt="http://xsltsl.org/date-time"
|
||||
|
@ -6,12 +7,12 @@
|
|||
|
||||
<xsl:import href="gettext.xsl" />
|
||||
<xsl:import href="../../tools/xsltsl/date-time.xsl" />
|
||||
|
||||
|
||||
<!-- define content type templates-->
|
||||
|
||||
|
||||
<xsl:template name="news">
|
||||
<xsl:param name="sidebar" select="'no'" />
|
||||
|
||||
|
||||
<xsl:variable name="title">
|
||||
<xsl:choose><xsl:when test="link != ''">
|
||||
<a href="{link}"><xsl:value-of select="title" /></a>
|
||||
|
@ -19,7 +20,7 @@
|
|||
<xsl:value-of select="title" />
|
||||
</xsl:otherwise></xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="date">
|
||||
<xsl:value-of select="substring(@date,9,2)" />
|
||||
<xsl:text> </xsl:text>
|
||||
|
@ -29,7 +30,7 @@
|
|||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="substring(@date,1,4)" />
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$sidebar = 'yes'">
|
||||
<li>
|
||||
|
@ -38,7 +39,7 @@
|
|||
<xsl:with-param name="title" select="title" />
|
||||
</xsl:call-template>
|
||||
<xsl:copy-of select="$title" />
|
||||
|
||||
|
||||
<!-- news date -->
|
||||
<xsl:text> (</xsl:text>
|
||||
<xsl:copy-of select="$date" />
|
||||
|
@ -55,61 +56,61 @@
|
|||
</xsl:call-template>
|
||||
<xsl:copy-of select="$title" />
|
||||
</h3>
|
||||
|
||||
|
||||
<!-- news date -->
|
||||
<p class="date"><xsl:copy-of select="$date" /></p>
|
||||
|
||||
|
||||
<!-- news text -->
|
||||
<div class="text"><xsl:apply-templates select="body/node()" /></div>
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Show a single event -->
|
||||
<xsl:template name="event">
|
||||
<xsl:param name="header" select="''" />
|
||||
<xsl:param name="display-tags" select="'no'" />
|
||||
|
||||
|
||||
<!-- Create variables -->
|
||||
<xsl:variable name="start">
|
||||
<xsl:value-of select="@start" />
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="start_day">
|
||||
<xsl:value-of select="substring($start,9,2)" />
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="start_month">
|
||||
<xsl:call-template name="dt:get-month-name">
|
||||
<xsl:with-param name="month"
|
||||
select="substring($start,6,2)" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="end">
|
||||
<xsl:value-of select="@end" />
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="end_day">
|
||||
<xsl:value-of select="substring($end,9,2)" />
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="end_month">
|
||||
<xsl:call-template name="dt:get-month-name">
|
||||
<xsl:with-param name="month"
|
||||
select="substring($end,6,2)" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="end_year">
|
||||
<xsl:value-of select="substring($end,1,4)" />
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="link">
|
||||
<xsl:value-of select="link" />
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:variable name="page">
|
||||
<xsl:value-of select="page" />
|
||||
</xsl:variable>
|
||||
|
@ -128,15 +129,15 @@
|
|||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Now, the event block -->
|
||||
<xsl:element name="div">
|
||||
<xsl:attribute name="class">entry</xsl:attribute>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="@filename" />
|
||||
</xsl:attribute>
|
||||
|
||||
|
||||
<!-- event title with or without link -->
|
||||
<h3>
|
||||
<xsl:call-template name="generate-id-attribute">
|
||||
|
@ -158,7 +159,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</h3>
|
||||
|
||||
|
||||
<!-- event date -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="$start != $end">
|
||||
|
@ -168,7 +169,7 @@
|
|||
<xsl:if test="$start_month != $end_month">
|
||||
<xsl:value-of select="$start_month" />
|
||||
</xsl:if>
|
||||
<xsl:text> to </xsl:text>
|
||||
<xsl:text> to </xsl:text>
|
||||
<xsl:value-of select="$end_day" />
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="$end_month" />
|
||||
|
@ -186,12 +187,12 @@
|
|||
</p>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
|
||||
<!-- details about the event -->
|
||||
<div class="details">
|
||||
<xsl:apply-templates select="body/node()" />
|
||||
</div>
|
||||
|
||||
|
||||
<!-- tags -->
|
||||
<xsl:if test="$display-tags = 'yes'">
|
||||
<ul class="archivetaglist">
|
||||
|
@ -202,7 +203,7 @@
|
|||
</xsl:if>
|
||||
|
||||
</xsl:element>
|
||||
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -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:template name="footer_legal">
|
||||
<xsl:element name="section">
|
||||
<xsl:attribute name="id">legal-info</xsl:attribute>
|
||||
|
||||
|
||||
<p>Copyright © 2001-2020 <xsl:element name="a">
|
||||
<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>
|
||||
|
|
|
@ -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:template name="footer_sitenav">
|
||||
<xsl:element name="nav">
|
||||
<xsl:attribute name="id">full-menu</xsl:attribute>
|
||||
|
||||
|
||||
<xsl:element name="a">
|
||||
<xsl:attribute name="href">#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>
|
||||
<!--FIXME translate that-->
|
||||
</xsl:element>
|
||||
|
||||
|
||||
<xsl:element name="ul">
|
||||
<xsl:attribute name="id">full-menu-list</xsl:attribute>
|
||||
<!-- FSFE portal menu -->
|
||||
|
@ -22,7 +22,7 @@
|
|||
<xsl:attribute name="href">/</xsl:attribute>
|
||||
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfeurope'" /></xsl:call-template>
|
||||
</xsl:element>
|
||||
|
||||
|
||||
<xsl:element name="ul">
|
||||
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
|
||||
<xsl:for-each select="/buildinfo/menuset/menu[@parent='fsfe']">
|
||||
|
@ -53,7 +53,7 @@
|
|||
<!--/ul-->
|
||||
</xsl:element>
|
||||
<!--/li-->
|
||||
|
||||
|
||||
<!-- Support portal menu item -->
|
||||
<xsl:element name="li">
|
||||
<xsl:attribute name="class">support</xsl:attribute>
|
||||
|
@ -61,7 +61,7 @@
|
|||
<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:element>
|
||||
|
||||
|
||||
<xsl:element name="ul">
|
||||
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
|
||||
<xsl:for-each select="/buildinfo/menuset/menu[@parent='support']">
|
||||
|
@ -92,7 +92,7 @@
|
|||
<!--/ul-->
|
||||
|
||||
</xsl:element> <!-- /li -->
|
||||
|
||||
|
||||
<!-- Planet portal menu -->
|
||||
<xsl:element name="li">
|
||||
<xsl:attribute name="class">planet</xsl:attribute>
|
||||
|
@ -103,7 +103,7 @@
|
|||
<!-- causes validation errors, needs li to pass validator?
|
||||
<xsl:element name="ul">
|
||||
</xsl:element>-->
|
||||
|
||||
|
||||
<xsl:element name="ul">
|
||||
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
|
||||
<xsl:for-each select="/buildinfo/menuset/menu[@parent='news']">
|
||||
|
@ -133,7 +133,7 @@
|
|||
</xsl:element>
|
||||
<!--/ul-->
|
||||
</xsl:element>
|
||||
|
||||
|
||||
<!-- Legal team portal menu -->
|
||||
<xsl:element name="li">
|
||||
<xsl:attribute name="class">ftf</xsl:attribute>
|
||||
|
@ -144,7 +144,7 @@
|
|||
<!-- causes validation errors, needs li to pass validator?
|
||||
<xsl:element name="ul">
|
||||
</xsl:element>-->
|
||||
|
||||
|
||||
<xsl:element name="ul">
|
||||
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
|
||||
<xsl:for-each select="/buildinfo/menuset/menu[@parent='ftf']">
|
||||
|
@ -174,7 +174,7 @@
|
|||
</xsl:element>
|
||||
<!--/ul-->
|
||||
</xsl:element>
|
||||
|
||||
|
||||
</xsl:element>
|
||||
<!--/ul#menu-list-->
|
||||
</xsl:element>
|
||||
|
|
|
@ -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:template name="footer_sourcelink">
|
||||
<xsl:element name="section">
|
||||
<xsl:attribute name="id">source</xsl:attribute>
|
||||
|
||||
|
||||
<!-- "Last changed" magic -->
|
||||
<p>
|
||||
<xsl:variable name="timestamp">
|
||||
|
@ -25,7 +25,7 @@
|
|||
(<xsl:value-of select="$Author"/>)
|
||||
</xsl:if>
|
||||
</p>
|
||||
|
||||
|
||||
<ul><li>
|
||||
<!-- Link to the XHTML source -->
|
||||
<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:element>
|
||||
</li></ul>
|
||||
|
||||
|
||||
<p>
|
||||
<xsl:element name="a">
|
||||
<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:if>
|
||||
</p>
|
||||
|
||||
|
||||
</xsl:element>
|
||||
<!--/section#source-->
|
||||
</xsl:template>
|
||||
|
|
|
@ -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:include href="fsfe_pageclass.xsl" />
|
||||
<xsl:include href="translation_list.xsl" />
|
||||
<xsl:include href="fsfe_pageheader.xsl" />
|
||||
|
@ -22,7 +21,7 @@
|
|||
|
||||
<!-- 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:call-template name="translation_list" />
|
||||
<xsl:call-template name="fsfe_pageheader" />
|
||||
<xsl:call-template name="notifications" />
|
||||
|
@ -46,7 +45,7 @@
|
|||
|
||||
</xsl:element>
|
||||
<!--/footer#bottom-->
|
||||
|
||||
|
||||
<xsl:call-template name="body_scripts" />
|
||||
|
||||
</xsl:element>
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
<xsl:if test="/buildinfo/@language = 'ar' or /buildinfo/@language = 'fa' or /buildinfo/@language = 'he'">
|
||||
<xsl:attribute name="dir">rtl</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:call-template name="page-head" />
|
||||
<xsl:call-template name="page-body" />
|
||||
</xsl:element>
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
||||
<!-- Modify H1 -->
|
||||
<xsl:template match="h1">
|
||||
|
||||
|
||||
<!-- Apply news page PRE-rules -->
|
||||
<xsl:if test="string(/buildinfo/document/@newsdate) and
|
||||
(not(string(/buildinfo/document/@type)) or
|
||||
/buildinfo/document/@type != 'newsletter' and
|
||||
/buildinfo/document/@type != 'podcast')">
|
||||
|
||||
|
||||
<!-- add link to press/press.xx.html -->
|
||||
<xsl:element name="p">
|
||||
<xsl:attribute name="id">category</xsl:attribute>
|
||||
|
@ -20,7 +20,7 @@
|
|||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- Apply newsletter page PRE-rules -->
|
||||
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'">
|
||||
<xsl:element name="p">
|
||||
|
@ -31,7 +31,7 @@
|
|||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- Apply podcast page PRE-rules -->
|
||||
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'podcast'">
|
||||
<xsl:element name="p">
|
||||
|
@ -45,7 +45,7 @@
|
|||
|
||||
<!-- auto generate ID for headings if it doesn't already exist -->
|
||||
<xsl:call-template name="generate-id" />
|
||||
|
||||
|
||||
<!-- Apply news page rules -->
|
||||
<xsl:if test="string(/buildinfo/document/@newsdate) and
|
||||
(not(string(/buildinfo/document/@type)) or
|
||||
|
@ -60,7 +60,7 @@
|
|||
<xsl:value-of select="/buildinfo/document/@newsdate" />
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
|
||||
|
||||
</xsl:if>
|
||||
<!-- End apply news page rules -->
|
||||
|
||||
|
@ -76,59 +76,59 @@
|
|||
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-1']/@content)">
|
||||
<xsl:element name="div">
|
||||
<xsl:attribute name="id">article-metadata</xsl:attribute>
|
||||
|
||||
|
||||
<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>
|
||||
<xsl:choose>
|
||||
<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" />
|
||||
<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: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:choose>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-2']/@content)">
|
||||
<xsl:choose>
|
||||
<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" />
|
||||
, <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: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:choose>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-3']/@content)">
|
||||
<xsl:choose>
|
||||
<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" />
|
||||
, <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: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:choose>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<span class="published-on"> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>: </span>
|
||||
<xsl:element name="time">
|
||||
<xsl:attribute name="class">dt-published</xsl:attribute>
|
||||
<xsl:value-of select="/buildinfo/document/head/meta[@name='publication-date']/@content" />
|
||||
</xsl:element>
|
||||
|
||||
|
||||
<xsl:if test = "string(/buildinfo/document/head/meta[@name='pdf-link']/@content)">
|
||||
<span class="pdf-download"> PDF: </span>
|
||||
<xsl:variable name="pdf-link" select="/buildinfo/document/head/meta[@name='pdf-link']/@content" />
|
||||
<a href='{$pdf-link}'>download</a>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
</xsl:element> <!-- </div> -->
|
||||
</xsl:if>
|
||||
<!-- End Apply article rules -->
|
||||
|
@ -140,15 +140,15 @@
|
|||
|
||||
<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> </span>
|
||||
|
||||
|
||||
<xsl:for-each select="/buildinfo/document/author">
|
||||
<xsl:variable name="id">
|
||||
<xsl:value-of select="@id" />
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:choose>
|
||||
<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>
|
||||
<!-- person has a link -->
|
||||
<xsl:when test="document('../../about/people/people.en.xml')/personset/person[@id=$id]/link">
|
||||
|
@ -212,7 +212,7 @@
|
|||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
|
||||
<!-- choose whether to put a comma or an "and" between authors -->
|
||||
<xsl:choose>
|
||||
<!-- second-last author and not first author -->
|
||||
|
@ -232,20 +232,20 @@
|
|||
<xsl:text> </xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<!-- only show date if <date> exists (not news entries for example) -->
|
||||
<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> </span>
|
||||
<span class="published-on"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template> </span>
|
||||
<xsl:element name="time">
|
||||
<xsl:attribute name="class">dt-published</xsl:attribute>
|
||||
<xsl:value-of select="/buildinfo/document/date/original/@content" />
|
||||
</xsl:element> 
|
||||
<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>
|
||||
<xsl:for-each select="/buildinfo/document/date/revision">
|
||||
<xsl:for-each select="/buildinfo/document/date/revision">
|
||||
 <xsl:element name="time">
|
||||
<xsl:attribute name="class">dt-updated</xsl:attribute>
|
||||
<xsl:value-of select="@content" />
|
||||
|
@ -253,7 +253,7 @@
|
|||
</xsl:for-each>) 
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:if test="/buildinfo/document/download">
|
||||
<xsl:element name="br" />
|
||||
<span class="download"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'download'" /></xsl:call-template>: </span>
|
||||
|
@ -262,44 +262,44 @@
|
|||
<xsl:value-of select="/buildinfo/document/download/@type" />
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<!--End Article authors, date-->
|
||||
|
||||
|
||||
</xsl:template>
|
||||
<!-- End modifications to H1 -->
|
||||
|
||||
<!-- End modifications to H1 -->
|
||||
|
||||
<!-- Modify H2 -->
|
||||
<xsl:template match="h2">
|
||||
<!-- auto generate ID for headings if it doesn't already exist -->
|
||||
<xsl:call-template name="generate-id" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Modify H3 -->
|
||||
<xsl:template match="h3">
|
||||
<!-- auto generate ID for headings if it doesn't already exist -->
|
||||
<xsl:call-template name="generate-id" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Modify H4 -->
|
||||
<xsl:template match="h4">
|
||||
<!-- auto generate ID for headings if it doesn't already exist -->
|
||||
<xsl:call-template name="generate-id" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Modify H4 -->
|
||||
<xsl:template match="h4">
|
||||
<!-- auto generate ID for headings if it doesn't already exist -->
|
||||
<xsl:call-template name="generate-id" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Modify H5 -->
|
||||
<xsl:template match="h5">
|
||||
<!-- auto generate ID for headings if it doesn't already exist -->
|
||||
<xsl:call-template name="generate-id" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Modify H6 -->
|
||||
<xsl:template match="h6">
|
||||
<!-- auto generate ID for headings if it doesn't already exist -->
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -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:include href="sharebuttons.xsl" />
|
||||
|
|
|
@ -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"
|
||||
xmlns:dt="http://xsltsl.org/date-time"
|
||||
exclude-result-prefixes="dt">
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<!-- Do not copy non-HTML elements to output -->
|
||||
<xsl:template match="timestamp|
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
@ -21,4 +21,5 @@
|
|||
<xsl:value-of select="/buildinfo/document/body/@class" /> newsletter article</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
|
|
@ -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:template name="sidebar">
|
||||
<aside id="sidebar">
|
||||
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'">
|
||||
|
@ -32,7 +32,7 @@
|
|||
</xsl:call-template></a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:if test="string(/buildinfo/document/@newsdate) and count(/buildinfo/document/@type) = 0">
|
||||
<h3><xsl:call-template name="fsfe-gettext">
|
||||
<xsl:with-param name="id" select="'fsfe/press'" />
|
||||
|
@ -52,9 +52,9 @@
|
|||
</xsl:call-template></a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:apply-templates select="/buildinfo/document/sidebar/node()" />
|
||||
|
||||
|
||||
<xsl:if test="string(/buildinfo/document/@newsdate)">
|
||||
<a href="https://my.fsfe.org/support" class="small-donate">
|
||||
<xsl:call-template name="fsfe-gettext">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<xsl:template match="localmenu">
|
||||
<xsl:value-of select="@dir"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Suppress output of text nodes, which would be the default -->
|
||||
<xsl:template match="text()"/>
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<xsl:value-of select="normalize-space(node())"/>
|
||||
<xsl:text></localmenuitem></xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Suppress output of text nodes, which would be the default -->
|
||||
<xsl:template match="text()"/>
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<!-- Append a newline -->
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Suppress output of text nodes, which would be the default -->
|
||||
<xsl:template match="text()"/>
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<xsl:template match="version">
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Suppress output of text nodes, which would be the default -->
|
||||
<xsl:template match="text()"/>
|
||||
</xsl:stylesheet>
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<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 -->
|
||||
<xsl:template name="fsfe-gettext">
|
||||
<xsl:param name="id" />
|
||||
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="/buildinfo/textset/text[@id=$id]">
|
||||
<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:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- this template is to be called to get texts contained in "tools/texts-content-xx.xml" files -->
|
||||
<xsl:template name="gettext">
|
||||
<xsl:param name="id" />
|
||||
|
|
|
@ -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:template name="notifications">
|
||||
<xsl:element name="div">
|
||||
<xsl:attribute name="id">notifications</xsl:attribute>
|
||||
|
||||
|
||||
<!-- Service notice (for downtime, upgrades, etc. enable this)
|
||||
<div id="service-notice">
|
||||
<div class="close">
|
||||
<a title="dismiss this notification">×</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text">
|
||||
<h1>Site currently under development</h1>
|
||||
|
||||
|
||||
<p>
|
||||
If you want to help out, <a
|
||||
href="/contribute/web/web.en.html">consider joining the
|
||||
|
@ -22,7 +22,7 @@
|
|||
</p>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
<!-- Outdated note -->
|
||||
<xsl:if test="/buildinfo/@outdated='yes'">
|
||||
<xsl:element name="div">
|
||||
|
@ -48,7 +48,7 @@
|
|||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if> <!-- End Outdated note -->
|
||||
|
||||
|
||||
<!-- Missing translation note -->
|
||||
<xsl:if test="/buildinfo/@language!=/buildinfo/document/@language">
|
||||
<xsl:element name="div">
|
||||
|
@ -65,7 +65,7 @@
|
|||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if> <!-- End Missing translation note -->
|
||||
|
||||
|
||||
<!-- Info box -->
|
||||
<xsl:element name="div">
|
||||
<xsl:attribute name="id">infobox</xsl:attribute>
|
||||
|
@ -107,7 +107,7 @@
|
|||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:element><!-- End Info Box -->
|
||||
|
||||
|
||||
<!-- Fundraising box
|
||||
<xsl:element name="div">
|
||||
<xsl:attribute name="id">fundraising</xsl:attribute>
|
||||
|
|
|
@ -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">
|
||||
|
||||
<!-- displays list of people for a given country (or a given team, i.e. "main") -->
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<xsl:stylesheet
|
||||
version="1.0"
|
||||
|
|