Reorganise templates for news and event lists
continuous-integration/drone/push Build is passing Details

The templates are now directly available for use in pages, there's no
need for an explict .xsl file any more.
This commit is contained in:
Reinhard Müller 2020-04-29 23:55:37 +02:00
parent d8cc339815
commit b523b8bd80
123 changed files with 439 additions and 926 deletions

View File

@ -66,8 +66,7 @@
</h2>
<!-- this element fetches all news items which have the relevant country tag -->
<country-news />
<news-feed/>
</div><!--end #news-->
@ -80,8 +79,7 @@
</h2>
<!-- this element fetches all event items which have the relevant country tag -->
<country-events />
<event-feed/>
</div><!--end #events-->

View File

@ -67,8 +67,7 @@
</h2>
<!-- this element fetches all news items which have the relevant country tag -->
<country-news />
<news-feed/>
</div><!--end #news-->
@ -82,7 +81,7 @@
</h2>
<!-- this element fetches all event items which have the relevant country tag -->
<country-events />
<event-feed/>
</div><!--end #events-->

View File

@ -69,8 +69,7 @@ Education working group</a> to focus on these efforts. Today, it acts as a hub
</h2>
<!-- this element fetches all news items which have the relevant country tag -->
<country-news />
<news-feed/>
</div><!--end #news-->
@ -83,8 +82,7 @@ Education working group</a> to focus on these efforts. Today, it acts as a hub
</h2>
<!-- this element fetches all event items which have the relevant country tag -->
<country-events />
<event-feed/>
</div><!--end #events-->

View File

@ -31,7 +31,9 @@ Nous avons mis en place un groupe de travail, l'<em><a href="/activities/educati
</ul>
<fetch-news /><h2 id="subpages">Navigation</h2>
<news-feed/>
<h2 id="subpages">Navigation</h2>
<ul>
<li>

View File

@ -67,8 +67,7 @@
</h2>
<!-- this element fetches all news items which have the relevant country tag -->
<country-news />
<news-feed/>
</div><!--end #news-->
@ -81,8 +80,7 @@
</h2>
<!-- this element fetches all event items which have the relevant country tag -->
<country-events />
<event-feed/>
</div><!--end #events-->

View File

@ -58,8 +58,7 @@ Educatie werkgroep</a> op om de aandacht te richten op deze inspanningen. Vandaa
</h2>
<!-- this element fetches all news items which have the relevant country tag -->
<country-news />
<news-feed/>
</div><!--end #news-->
@ -73,7 +72,7 @@ Educatie werkgroep</a> op om de aandacht te richten op deze inspanningen. Vandaa
</h2>
<!-- this element fetches all event items which have the relevant country tag -->
<country-events />
<event-feed/>
</div><!--end #events-->

View File

@ -69,8 +69,7 @@
</h2>
<!-- this element fetches all news items which have the relevant country tag -->
<country-news />
<news-feed/>
</div><!--end #news-->
@ -83,8 +82,7 @@
</h2>
<!-- this element fetches all event items which have the relevant country tag -->
<country-events />
<event-feed/>
</div><!--end #events-->

View File

@ -49,7 +49,8 @@
</ul>
<fetch-news /><h2 id="subpages">Содержание</h2>
<news-feed/>
<h2 id="subpages">Содержание</h2>
<ul>
<li>

View File

@ -1,20 +0,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" />
<!--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">
<xsl:call-template name="fetch-events">
<xsl:with-param name="nb-items" select="3" />
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>

View File

@ -94,7 +94,7 @@
<h2>Relaterede nyheder</h2>
<fetch-news />
<news-feed/>
<h2>Eksterne links af interesse</h2>
<ul>

View File

@ -198,14 +198,12 @@ um die Kompatibilität aller Softwarelösungen im öffentlichen Sektor sicherzus
<h2>Verwandte Themen</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="open-standards">
<dynamic-content />
<h2>Weiterführende Literatur</h2>
<ul>

View File

@ -135,7 +135,7 @@
</ul>
<h2>Σχετικά Νέα</h2>
<fetch-news />
<news-feed/>
<h2>Εξωτερικοί σύνδεσμοι</h2>
<ul>

View File

@ -205,14 +205,12 @@ solutions used in public sector.</li>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="open-standards">
<dynamic-content />
<h2>Further reading</h2>
<ul>

View File

@ -104,14 +104,12 @@
<h2>Noticias relacionadas</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="open-standards">
<dynamic-content/>
<h2>Otras lecturas</h2>
<ul>

View File

@ -233,14 +233,12 @@ forcer à utiliser des formats verrouillés.</ul>
<h2>Actualités liées</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="open-standards">
<dynamic-content />
<h2>En savoir plus</h2>
<ul>

View File

@ -77,7 +77,7 @@
</ul>
<h2>Povezane vijesti</h2>
<fetch-news />
<news-feed/>
<h2>Vanjske poveznice</h2>
<ul>

View File

@ -206,14 +206,12 @@ soluzione software impiegate nel settore pubblico.</li>
<h2>Notizie correlate</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="open-standards">
<dynamic-content />
<h2>Letture di approfondimento</h2>
<ul>

View File

@ -110,14 +110,12 @@ om het technologische probleem adequaat op te lossen en om zoveel mogelijk invoe
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="open-standards">
<dynamic-content />
<h2>Verder lezen</h2>
<ul>

View File

@ -123,7 +123,7 @@
<h2>Notícias Relacionadas</h2>
<fetch-news />
<news-feed/>
<h2>Ligações externas com interesse</h2>
<ul>

View File

@ -54,7 +54,7 @@
</ul>
<h2>Related News</h2>
<fetch-news />
<news-feed/>
<h2>External links of interest</h2>
<ul>

View File

@ -115,7 +115,7 @@ DIS-29500: К использованию не рекомендовать?</a></l
</ul>
<h2>Новости по теме</h2>
<fetch-news />
<news-feed/>
<h2>Ссылки на внешние ресурсы</h2>
<ul>

View File

@ -155,14 +155,12 @@ krejt zgjidhjeve software të përdorura në sektorin publik.</li>
<h2>Lajme të afërta</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="open-standards">
<dynamic-content />
<h2>Materiale për lexim të mëtejshëm</h2>
<ul>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -157,18 +157,13 @@ at holde sig til lovens bogstav og ånd hvad angår offentlige indkøb i EU-regi
</div><!--/e-content-->
<h2>Relaterede nyheder</h2>
<fetch-news />
<news-feed count="15"/>
</body>
<sidebar promo="our-work">
<!-- FIXME: add related links to FSFE work & publications here -->
<h2>Udgivelser</h2>
<dynamic-content />
<ul>
<li><a href="https://fsfe.org/activities/os/2014-02-uk-consultation-os.en.html">Submission to UK Open Standards Proposal 2014</a></li>

View File

@ -155,22 +155,14 @@ excellent start.
</div><!--/e-content-->
<h2>Related News</h2>
<fetch-news />
<news-feed count="15"/>
</body>
<sidebar promo="our-work">
<!-- FIXME: add related links to FSFE work & publications here -->
<h2>Publications</h2>
<dynamic-content />
<ul>
<li><a href="https://fsfe.org/activities/os/2014-02-uk-consultation-os.en.html">Submission to UK Open Standards Proposal 2014</a></li>

View File

@ -100,21 +100,14 @@
</div><!--/e-content-->
<h2>Nouvelle liées</h2>
<fetch-news />
<news-feed count="15"/>
</body>
<sidebar promo="our-work">
<!-- FIXME: add related links to FSFE work & publications here -->
<h2>Publications</h2>
<dynamic-content />
<ul>
<li><a href="https://fsfe.org/activities/os/2014-02-uk-consultation-os.en.html">Proposition 2014 pour les Standards Ouverts soumisE au Royaume-Uni</a></li>

View File

@ -123,22 +123,14 @@ In: Shane Coughlan (ed.)(2012): <em>The First OpenForum Academy Conference Proce
</div><!--/e-content-->
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed count="15"/>
</body>
<sidebar promo="our-work">
<!-- FIXME: add related links to FSFE work & publications here -->
<h2>Publicaties</h2>
<dynamic-content/>
<ul>
<li><a href="https://fsfe.org/activities/os/2014-02-uk-consultation-os.en.html">Ingediend aan het Open Standaardenvoorstel van het Verenigd Koninkrijk in 2014</a></li>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -233,8 +233,6 @@
<sidebar promo="our-work">
<dynamic-content/>
<h2>Περαιτέρω ανάγνωση</h2>
<ul>

View File

@ -108,8 +108,6 @@
<sidebar promo="our-work">
<dynamic-content />
<h2>Further Reading</h2>
<ul>
@ -124,9 +122,7 @@
</ul>
<h3>Latest News</h3>
<ul>
<fetch-news/>
</ul>
<news-list/>
</sidebar>

View File

@ -258,25 +258,21 @@ comme le Parlement et le Conseil de l'Europe le permettent (Art. 44) , qui</p>
<sidebar promo="our-work">
<dynamic-content />
<h2>Pour aller plus loin</h2>
<ul>
<li><a href="/activities/radiodirective/statement.html">Déclaration Commune contre la Directive sur le Verrouillage des Radiocommunications</a></li>
</ul>
<h3>Dernières actualités</h3>
<ul>
<fetch-news/>
</ul>
<h3>Ressources externes</h3>
<ul>
<li><a href="http://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX%3A32014L0053">Texte complet du RED 2014/53/EU</a></li>
<!--<li><a href="http://blog.die-linke.de/digitalelinke/niemand-hat-die-absicht-freie-software-zu-verbieten/">Déclaration du parti allemand DIE LINKE</a></li>-->
</ul>
<h3>Dernières actualités</h3>
<news-list/>
</sidebar>
<timestamp>$Date$ $Author$</timestamp>

View File

@ -230,25 +230,21 @@ dragen door gedwongen te worden om alle alternatieve software te moeten controle
<sidebar promo="our-work">
<dynamic-content />
<h2>Verder lezen</h2>
<ul>
<li><a href="/activities/radiodirective/statement.html">Gezamenlijke verklaring tegen Radio Afscherming</a></li>
</ul>
<h3>Laatste nieuws</h3>
<ul>
<fetch-news/>
</ul>
<h3>Externe links</h3>
<ul>
<li><a href="http://eur-lex.europa.eu/legal-content/NL/TXT/HTML/?uri=CELEX%3A32014L0053">Volledige tekst van RED 2014/53/EU</a></li>
<!--<li><a href="http://blog.die-linke.de/digitalelinke/niemand-hat-die-absicht-freie-software-zu-verbieten/">Statement of German party DIE LINKE</a></li>-->
</ul>
<h3>Laatste nieuws</h3>
<news-list/>
</sidebar>
<timestamp>$Date$ $Author$</timestamp>

View File

@ -189,8 +189,6 @@
<sidebar promo="our-work">
<dynamic-content />
<h2>Ek Metin</h2>
<ul>
@ -209,9 +207,7 @@
</ul>
<h3>Son Haberler</h3>
<ul>
<fetch-news />
</ul>
<news-list/>
</sidebar>

View File

@ -1,13 +0,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" />
<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>

View File

@ -106,7 +106,7 @@ werden Kunden zulasten ihrer Sicherheit entmündigt.</p></li>
<h2>Verwandte Nachrichten</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -58,7 +58,7 @@
<h2>Σχετικά Νέα</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -92,7 +92,7 @@
<h2>Related news</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -195,7 +195,7 @@ representantes políticos.</p>
<h2>Noticias relacionadas</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -119,7 +119,7 @@
<h2>Actualités liées</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -92,7 +92,7 @@
<h2>Notizie correlate</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -92,7 +92,7 @@
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -91,7 +91,7 @@ fabricante do encaminhador. Os clientes ficam, assim, incapacitados para cuidar
<h2>Notícias relacionadas</h2>
<fetch-news/>
<news-feed count="15"/>
</body>

View File

@ -249,7 +249,7 @@
<h2>İlgili haberler</h2>
<fetch-news />
<news-feed count="15"/>
</body>
<sidebar promo="our-work">

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

192
build/xslt/events.xsl Normal file
View File

@ -0,0 +1,192 @@
<?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:import href="../../tools/xsltsl/date-time.xsl"/>
<!-- ==================================================================== -->
<!-- Event title with or without link -->
<!-- ==================================================================== -->
<xsl:template name="event-title">
<xsl:choose>
<xsl:when test="link">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</xsl:when>
<xsl:when test="page">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="page"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<!-- Event date, written out -->
<!-- ==================================================================== -->
<xsl:template name="event-date">
<!-- 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>
<!-- Compile the date -->
<xsl:choose>
<xsl:when test="$start != $end">
<xsl:value-of select="$start_day"/>
<xsl:text> </xsl:text>
<xsl:if test="$start_month != $end_month">
<xsl:value-of select="$start_month"/>
</xsl:if>
<xsl:text> </xsl:text>
<xsl:value-of select="$end_day"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$end_month"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$end_year"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$start_day"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$start_month"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$end_year"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<!-- List of events (as elements of an unsorted list) -->
<!-- ==================================================================== -->
<xsl:template match="event-list">
<!-- Number of events to display -->
<xsl:variable name="count">
<xsl:choose>
<xsl:when test="@count">
<xsl:value-of select="@count"/>
</xsl:when>
<xsl:otherwise>5</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Build list -->
<xsl:element name="ul">
<xsl:for-each select="/buildinfo/document/set/event[
translate(@end,'-','') &gt;= translate(/buildinfo/@date,'-','')
]">
<xsl:sort select="@start"/>
<xsl:if test="position() &lt;= $count">
<xsl:element name="li">
<xsl:call-template name="event-date"/>
<xsl:text>: </xsl:text>
<xsl:call-template name="event-title"/>
</xsl:element><!-- li -->
</xsl:if>
</xsl:for-each>
</xsl:element><!-- ul -->
</xsl:template>
<!-- ==================================================================== -->
<!-- Verbose event feed -->
<!-- ==================================================================== -->
<xsl:template match="event-feed">
<!-- Number of events to display -->
<xsl:variable name="count">
<xsl:choose>
<xsl:when test="@count">
<xsl:value-of select="@count"/>
</xsl:when>
<xsl:otherwise>5</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Build list -->
<xsl:for-each select="/buildinfo/document/set/event[
translate(@end,'-','') &gt;= translate(/buildinfo/@date,'-','')
]">
<xsl:sort select="@start"/>
<xsl:if test="position() &lt;= $count">
<xsl:element name="div">
<xsl:attribute name="class">entry</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="@filename"/>
</xsl:attribute>
<!-- Title -->
<xsl:element name="h3">
<xsl:call-template name="event-title"/>
</xsl:element>
<!-- Date -->
<xsl:element name="p">
<xsl:attribute name="class">date</xsl:attribute>
<xsl:call-template name="event-date"/>
</xsl:element>
<!-- Details -->
<xsl:element name="div">
<xsl:attribute name="class">text</xsl:attribute>
<xsl:apply-templates select="body/node()"/>
</xsl:element>
</xsl:element><!-- div/entry -->
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,199 +0,0 @@
<?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:import href="gettext.xsl" />
<xsl:import href="../../tools/xsltsl/date-time.xsl" />
<!-- ==================================================================== -->
<!-- News -->
<!-- ==================================================================== -->
<!-- News title with our without link -->
<xsl:template name="news-title">
<xsl:choose>
<xsl:when test="link">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- News date -->
<xsl:template name="news-date">
<xsl:value-of select="substring(@date,9,2)" />
<xsl:text> </xsl:text>
<xsl:call-template name="dt:get-month-name">
<xsl:with-param name="month" select="substring(@date,6,2)" />
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="substring(@date,1,4)" />
</xsl:template>
<!-- Show a complete news item -->
<xsl:template name="news">
<xsl:param name="sidebar" select="'no'" />
<xsl:choose>
<xsl:when test="$sidebar = 'yes'">
<li>
<!-- title -->
<xsl:call-template name="news-title"/>
<!-- news date -->
<xsl:text> (</xsl:text>
<xsl:call-template name="news-date"/>
<xsl:text>)</xsl:text>
</li>
</xsl:when>
<xsl:otherwise>
<!--<div class="entry">-->
<div class="entry">
<!-- title -->
<h3>
<xsl:call-template name="news-title"/>
</h3>
<!-- news date -->
<p class="date"><xsl:call-template name="news-date" /></p>
<!-- news text -->
<div class="text"><xsl:apply-templates select="body/node()" /></div>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<!-- Events -->
<!-- ==================================================================== -->
<!-- Event title with or without link -->
<xsl:template name="event-title">
<xsl:choose>
<xsl:when test="link">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</xsl:when>
<xsl:when test="page">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="page"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Event date -->
<xsl:template name="event-date">
<!-- 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>
<!-- Compile the date -->
<xsl:choose>
<xsl:when test="$start != $end">
<xsl:value-of select="$start_day" />
<xsl:text> </xsl:text>
<xsl:if test="$start_month != $end_month">
<xsl:value-of select="$start_month" />
</xsl:if>
<xsl:text> </xsl:text>
<xsl:value-of select="$end_day" />
<xsl:text> </xsl:text>
<xsl:value-of select="$end_month" />
<xsl:text> </xsl:text>
<xsl:value-of select="$end_year" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$start_day" />
<xsl:text> </xsl:text>
<xsl:value-of select="$start_month" />
<xsl:text> </xsl:text>
<xsl:value-of select="$end_year" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Show a complete event item -->
<xsl:template name="event">
<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="event-title"/>
</h3>
<!-- event date -->
<p class="date">
<xsl:call-template name="event-date"/>
</p>
<!-- details about the event -->
<div class="details">
<xsl:apply-templates select="body/node()" />
</div>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

134
build/xslt/news.xsl Normal file
View File

@ -0,0 +1,134 @@
<?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:import href="../../tools/xsltsl/date-time.xsl"/>
<!-- ==================================================================== -->
<!-- News title with or without link -->
<!-- ==================================================================== -->
<xsl:template name="news-title">
<xsl:choose>
<xsl:when test="link">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- ==================================================================== -->
<!-- News date, written out -->
<!-- ==================================================================== -->
<xsl:template name="news-date">
<xsl:value-of select="substring(@date,9,2)"/>
<xsl:text> </xsl:text>
<xsl:call-template name="dt:get-month-name">
<xsl:with-param name="month" select="substring(@date,6,2)"/>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="substring(@date,1,4)"/>
</xsl:template>
<!-- ==================================================================== -->
<!-- List of news items (as elements of an unsorted list) -->
<!-- ==================================================================== -->
<xsl:template match="news-list">
<!-- Number of news items to display -->
<xsl:variable name="count">
<xsl:choose>
<xsl:when test="@count">
<xsl:value-of select="@count"/>
</xsl:when>
<xsl:otherwise>5</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Build list -->
<xsl:element name="ul">
<xsl:for-each select="/buildinfo/document/set/news[
translate(@date,'-','') &lt;= translate(/buildinfo/@date,'-','')
]">
<xsl:sort select="@date" order="descending"/>
<xsl:if test="position() &lt;= $count">
<xsl:element name="li">
<xsl:call-template name="news-title"/>
<xsl:text> (</xsl:text>
<xsl:call-template name="news-date"/>
<xsl:text>)</xsl:text>
</xsl:element><!-- li -->
</xsl:if>
</xsl:for-each>
</xsl:element><!-- ul -->
</xsl:template>
<!-- ==================================================================== -->
<!-- Verbose news feed -->
<!-- ==================================================================== -->
<xsl:template match="news-feed">
<!-- Number of news items to display -->
<xsl:variable name="count">
<xsl:choose>
<xsl:when test="@count">
<xsl:value-of select="@count"/>
</xsl:when>
<xsl:otherwise>5</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Build list -->
<xsl:for-each select="/buildinfo/document/set/news[
translate(@date,'-','') &lt;= translate(/buildinfo/@date,'-','')
]">
<xsl:sort select="@date" order="descending"/>
<xsl:if test="position() &lt;= $count">
<xsl:element name="div">
<xsl:attribute name="class">entry</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="@filename"/>
</xsl:attribute>
<!-- Title -->
<xsl:element name="h3">
<xsl:call-template name="news-title"/>
</xsl:element>
<!-- Date -->
<xsl:element name="p">
<xsl:attribute name="class">date</xsl:attribute>
<xsl:call-template name="news-date"/>
</xsl:element>
<!-- Text -->
<xsl:element name="div">
<xsl:attribute name="class">text</xsl:attribute>
<xsl:apply-templates select="body/node()"/>
</xsl:element>
</xsl:element><!-- div/entry -->
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,40 +0,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="feeds.xsl" />
<!--display dynamic list of tagged news items-->
<xsl:template name="fetch-news">
<xsl:param name="nb-items" select="''" />
<xsl:param name="sidebar" select="'no'" />
<xsl:for-each select="/buildinfo/document/set/news[
translate(@date, '-', '') &lt;= translate(/buildinfo/@date, '-', '')
]">
<xsl:sort select="@date" order="descending" />
<xsl:if test="$nb-items = '' or position() &lt;= $nb-items">
<xsl:call-template name="news">
<xsl:with-param name="sidebar" select="$sidebar" />
</xsl:call-template>
</xsl:if>
</xsl:for-each>
</xsl:template>
<!--display dynamic list of tagged event items-->
<xsl:template name="fetch-events">
<xsl:param name="nb-items" select="''" />
<xsl:for-each select="/buildinfo/document/set/event[
translate (@end, '-', '') &gt;= translate (/buildinfo/@date, '-', '')
]">
<xsl:sort select="@start"/>
<xsl:if test="position() &lt;= $nb-items or $nb-items=''">
<xsl:call-template name="event"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

View File

@ -99,14 +99,6 @@
<td>-</td>
</tr>
</table>
<!--
<h2>Ähnliche Neuigkeiten</h2>
<fetch-news/>
-->
</body>
<timestamp></timestamp>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -96,12 +96,6 @@
</ul>
<h2>Related news</h2>
<fetch-news/>
</body>
<timestamp>$Date: 2010-09-10 16:29:11 +0200 (Fri, 10 Sep 2010) $ $Author: mk $</timestamp>

View File

@ -120,7 +120,7 @@ and make a donation. You can be sure they will love you back.</li>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -119,7 +119,7 @@ per la tua libertà. <a
<h2>News collegate</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -122,7 +122,7 @@ se si të bëni një dhurim. Të jeni të sigurt që do tjua shpërblejnë da
<h2>Lajme të ngjashme</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -68,7 +68,7 @@ Vor Ort gibt es auch eine Speakers Corner, und jedem soll die Möglichkeit gebot
<h3>Related news</h3>
<fetch-news/>
<news-feed/>
</body>

View File

@ -58,7 +58,7 @@ Entrance to the concert is included in the main entrance fee.</p>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -65,7 +65,7 @@ href="/campaigns/ilovefs/2012/ilovefs.html">roce minulém</a>, FSFE plánuje onl
<h2>Související zprávy</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -100,7 +100,7 @@ and make a donation. You can be sure they will love you back.</li>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -60,7 +60,7 @@
<h2>Noticias relacionadas</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -119,7 +119,7 @@
<h2>Seotud uudised</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -66,7 +66,7 @@ href="/campaigns/ilovefs/2012/ilovefs.html">l'année passée</a>, la FSFE organi
<h2>Autres nouvelles</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -101,7 +101,7 @@ and make a donation. You can be sure they will love you back.</li>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -111,7 +111,7 @@ href="http://wiki.fsfe.org/SupportPrograms"> поддержите ЕФСПО</a>
<h2>Новости по теме</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -102,7 +102,7 @@ se si të bëni një dhurim. Të jeni të sigurt që do tjua shpërblejnë da
<h2>Lajme të ngjashme</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -125,7 +125,7 @@ ideen om fri software tiltrækkende for folk.</li>
<h2>Relaterede nyheder</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -139,7 +139,7 @@ Liebe für Freie Software erklären kannst.</p>
<h2>Verwandte Nachrichten</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -129,7 +129,7 @@ Software.</p>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -100,7 +100,7 @@ Valentín. Como <a href="/news/2013/news-20130221-01.html">el año pasado</a>, l
<h2>Noticias relacionadas</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -93,7 +93,7 @@ de nouvelles affaires, vous pouvez <a href="/order/order.html">nous en commander
<h2>Autres nouvelles</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -128,7 +128,7 @@
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -149,7 +149,7 @@ Software“-Tag!</p>
<h2>Verwandte Beiträge</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -138,7 +138,7 @@ I love Free Software day everyone!</p>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -137,7 +137,7 @@ día de Amo el Software Libre a todo el mundo!</p>
<h2>Noticias relacionadas</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -64,7 +64,7 @@ href="/campaigns/ilovefs/whylovefs/whylovefs.html">pour des raisons différentes
Joyeuse journée 'J'aime le Logiciel Libre' à tous !</p>
</div><!--/e-content-->
<h2>Autres nouvelles</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="our-work">
<h2>Plus de #ilovefs</h2>

View File

@ -128,7 +128,7 @@ Buona giornata "Io amo il Software Libero" a tutti!</p>
<h2>Notizie correlate</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -126,7 +126,7 @@ onze liefde tonen. Veel plezier op I love Free Software dag iedereen!</p>
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -137,7 +137,7 @@ dia de Eu adoro Software Livre para todos!</p>
<h2>Notícias relacionadas</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -145,7 +145,7 @@ Ditën “E dua Software-in e Lirë” të gjithëve!</p>
<h2>Lajme të afërta</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -1,24 +0,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" />
<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">
<xsl:attribute name="href">
<xsl:value-of select="text()" />
</xsl:attribute>
<xsl:text>[</xsl:text>
<xsl:value-of select="/buildinfo/document/text[@id='more']" />
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

View File

@ -107,7 +107,7 @@ einen frohen "I love Free Software"-Tag!</p>
<h2>Verwandte Nachrichten</h2>
<fetch-news/>
<news-feed/>
<hr />
<p id="1">Anmerkungen zum Gewinnspiel: Wir behalten uns das Recht vor, mehrere Gewinner auszuwählen.

View File

@ -101,7 +101,7 @@ everyone!</p>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
<hr />
<p id="1">Notices for the competition: We reserve the right to choose multiple winners. The
winner(s) get an 25€ FSFE Shop voucher. Everybody may participate in

View File

@ -111,7 +111,7 @@ Software-dag iedereen!</p>
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -103,7 +103,7 @@ nossa paixão. Feliz dia Eu Adoro Software Livre a todos!</p>
<h2>Notícias relacionadas</h2>
<fetch-news/>
<news-feed/>
<hr />
<p id="1">Notas para a competição: Nós reservamos o direito de escolher
múltiplos vencedores. O(s) vencedor(es) recebem um voucher no valor de 25€.

View File

@ -102,7 +102,7 @@ dashurinë tonë. Gëzuar ditën "E dua Software-in e Lirë" për këdo!</p>
<h2>Lajme të afërta</h2>
<fetch-news/>
<news-feed/>
<hr />
<p id="1">Shënime për garën: Ruajmë të drejtën të zgjedhim disa fitues.
Fituesi(t) përfitojnë një kupon 25€ për në Shitoren e FSFE-së. Në garën

View File

@ -3,12 +3,6 @@
<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>
<!-- 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">
<!-- appears once when <picture-box /> is called -->

View File

@ -89,7 +89,7 @@ everyone!</p>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -84,7 +84,7 @@ Joyeuse journée J'aime le Logiciel Libre à tous&#160;!</p>
<h2>Informations en lien</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -65,7 +65,7 @@ Software"-dag. Laten we video's en afbeeldingen delen, postkaarten versturen, tw
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed/>
</body>

View File

@ -3,12 +3,6 @@
<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>
<!-- 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">
<!-- appears once when <picture-box /> is called -->

View File

@ -93,15 +93,13 @@ everyone!</p>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="our-work">
<h2>More #ilovefs</h2>
<dynamic-content />
<ul>
<li><a href="/campaigns/ilovefs/latest-report">Latest #ilovefs Report</a></li>

View File

@ -100,15 +100,13 @@ Joyeuse journée J'aime le Logiciel Libre à toutes et à tous&#160;!</p>
<h2>Informations en lien</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="our-work">
<h2>Plus de #ilovefs</h2>
<dynamic-content />
<ul>
<li><a href="/campaigns/ilovefs/latest-report">Les derniers rapports #ilovefs</a></li>
<li><a href="/campaigns/ilovefs/whylovefs/gallery.html">Galerie des photos de personnes aimant le Logiciel Libre</a></li>

View File

@ -3,12 +3,6 @@
<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>
<!-- 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">
<!-- appears once when <picture-box /> is called -->

View File

@ -83,15 +83,13 @@ participate in a fair society. And since everybody loves Free Software for diffe
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="our-work">
<h2>More #ilovefs</h2>
<dynamic-content />
<ul>
<li><a href="/campaigns/ilovefs/latest-report">Latest #ilovefs Report</a></li>

View File

@ -72,15 +72,13 @@
<h2>Verwant nieuws</h2>
<fetch-news/>
<news-feed/>
</body>
<sidebar promo="our-work">
<h2>Meer #ilovefs</h2>
<dynamic-content />
<ul>
<li><a href="/campaigns/ilovefs/latest-report">Laatste #ilovefs rapport</a></li>

View File

@ -3,12 +3,6 @@
<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>
<!-- 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">
<!-- appears once when <picture-box /> is called -->

View File

@ -113,7 +113,7 @@ questions, <a href="/contact/">just drop us an email</a>.</p>
<h2>Related news</h2>
<fetch-news/>
<news-feed/>
</body>

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