Reorganise templates for news and event lists
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
d8cc339815
commit
b523b8bd80
@ -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-->
|
||||
|
||||
|
@ -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-->
|
||||
|
||||
|
@ -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-->
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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-->
|
||||
|
||||
|
@ -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-->
|
||||
|
||||
|
@ -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-->
|
||||
|
||||
|
@ -49,7 +49,8 @@
|
||||
|
||||
</ul>
|
||||
|
||||
<fetch-news /><h2 id="subpages">Содержание</h2>
|
||||
<news-feed/>
|
||||
<h2 id="subpages">Содержание</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
|
@ -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>
|
@ -94,7 +94,7 @@
|
||||
|
||||
<h2>Relaterede nyheder</h2>
|
||||
|
||||
<fetch-news />
|
||||
<news-feed/>
|
||||
|
||||
<h2>Eksterne links af interesse</h2>
|
||||
<ul>
|
||||
|
@ -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>
|
||||
|
@ -135,7 +135,7 @@
|
||||
</ul>
|
||||
|
||||
<h2>Σχετικά Νέα</h2>
|
||||
<fetch-news />
|
||||
<news-feed/>
|
||||
|
||||
<h2>Εξωτερικοί σύνδεσμοι</h2>
|
||||
<ul>
|
||||
|
@ -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>
|
||||
|
@ -104,14 +104,12 @@
|
||||
|
||||
<h2>Noticias relacionadas</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed/>
|
||||
|
||||
</body>
|
||||
|
||||
<sidebar promo="open-standards">
|
||||
|
||||
<dynamic-content/>
|
||||
|
||||
<h2>Otras lecturas</h2>
|
||||
|
||||
<ul>
|
||||
|
@ -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>
|
||||
|
@ -77,7 +77,7 @@
|
||||
</ul>
|
||||
|
||||
<h2>Povezane vijesti</h2>
|
||||
<fetch-news />
|
||||
<news-feed/>
|
||||
|
||||
<h2>Vanjske poveznice</h2>
|
||||
<ul>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -123,7 +123,7 @@
|
||||
|
||||
<h2>Notícias Relacionadas</h2>
|
||||
|
||||
<fetch-news />
|
||||
<news-feed/>
|
||||
|
||||
<h2>Ligações externas com interesse</h2>
|
||||
<ul>
|
||||
|
@ -54,7 +54,7 @@
|
||||
</ul>
|
||||
|
||||
<h2>Related News</h2>
|
||||
<fetch-news />
|
||||
<news-feed/>
|
||||
|
||||
<h2>External links of interest</h2>
|
||||
<ul>
|
||||
|
@ -115,7 +115,7 @@ DIS-29500: К использованию не рекомендовать?</a></l
|
||||
</ul>
|
||||
|
||||
<h2>Новости по теме</h2>
|
||||
<fetch-news />
|
||||
<news-feed/>
|
||||
|
||||
<h2>Ссылки на внешние ресурсы</h2>
|
||||
<ul>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
@ -233,8 +233,6 @@
|
||||
|
||||
<sidebar promo="our-work">
|
||||
|
||||
<dynamic-content/>
|
||||
|
||||
<h2>Περαιτέρω ανάγνωση</h2>
|
||||
|
||||
<ul>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
@ -106,7 +106,7 @@ werden Kunden zulasten ihrer Sicherheit entmündigt.</p></li>
|
||||
|
||||
<h2>Verwandte Nachrichten</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed count="15"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
|
||||
<h2>Σχετικά Νέα</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed count="15"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
||||
|
||||
<h2>Related news</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed count="15"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -195,7 +195,7 @@ representantes políticos.</p>
|
||||
|
||||
<h2>Noticias relacionadas</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed count="15"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -119,7 +119,7 @@
|
||||
|
||||
<h2>Actualités liées</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed count="15"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
||||
|
||||
<h2>Notizie correlate</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed count="15"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
||||
|
||||
<h2>Verwant nieuws</h2>
|
||||
|
||||
<fetch-news/>
|
||||
<news-feed count="15"/>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -249,7 +249,7 @@
|
||||
|
||||
<h2>İlgili haberler</h2>
|
||||
|
||||
<fetch-news />
|
||||
<news-feed count="15"/>
|
||||
</body>
|
||||
|
||||
<sidebar promo="our-work">
|
||||
|
@ -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
192
build/xslt/events.xsl
Normal 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,'-','') >= translate(/buildinfo/@date,'-','')
|
||||
]">
|
||||
<xsl:sort select="@start"/>
|
||||
<xsl:if test="position() <= $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,'-','') >= translate(/buildinfo/@date,'-','')
|
||||
]">
|
||||
<xsl:sort select="@start"/>
|
||||
<xsl:if test="position() <= $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>
|
@ -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
134
build/xslt/news.xsl
Normal 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,'-','') <= translate(/buildinfo/@date,'-','')
|
||||
]">
|
||||
<xsl:sort select="@date" order="descending"/>
|
||||
<xsl:if test="position() <= $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,'-','') <= translate(/buildinfo/@date,'-','')
|
||||
]">
|
||||
<xsl:sort select="@date" order="descending"/>
|
||||
<xsl:if test="position() <= $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"/>
|
||||