Browse Source

Clean up formatting of XSL files, no code change

pull/1336/head
Reinhard Müller 6 months ago
parent
commit
377fcde82e
100 changed files with 448 additions and 549 deletions
  1. +3
    -7
      about/codeofconduct.xsl
  2. +3
    -3
      about/graphics/sponsoring/sponsoring.xsl
  3. +2
    -9
      about/localteams.xsl
  4. +3
    -9
      about/team.xsl
  5. +4
    -7
      activities/education/education.xsl
  6. +2
    -3
      activities/ftf/avm-gpl-violation.xsl
  7. +3
    -4
      activities/os/os.xsl
  8. +3
    -4
      activities/procurement/procurement.xsl
  9. +2
    -3
      activities/radiodirective/radiodirective.xsl
  10. +1
    -1
      activities/radiodirective/statement.xsl
  11. +3
    -4
      activities/routers/routers.xsl
  12. +1
    -1
      activities/wipo/wipo.xsl
  13. +2
    -4
      activities/wipo/wiwo.xsl
  14. +3
    -5
      associates/associates.xsl
  15. +12
    -24
      at/at.xsl
  16. +1
    -1
      build/xslt/body_scripts.xsl
  17. +5
    -4
      build/xslt/countries.xsl
  18. +28
    -27
      build/xslt/feeds.xsl
  19. +2
    -2
      build/xslt/footer_legal.xsl
  20. +11
    -11
      build/xslt/footer_sitenav.xsl
  21. +5
    -5
      build/xslt/footer_sourcelink.xsl
  22. +3
    -4
      build/xslt/fsfe_body.xsl
  23. +2
    -2
      build/xslt/fsfe_document.xsl
  24. +1
    -1
      build/xslt/fsfe_followupsection.xsl
  25. +1
    -1
      build/xslt/fsfe_head.xsl
  26. +37
    -37
      build/xslt/fsfe_headings.xsl
  27. +1
    -1
      build/xslt/fsfe_localmenu.xsl
  28. +1
    -1
      build/xslt/fsfe_mainsection.xsl
  29. +2
    -4
      build/xslt/fsfe_nolocal.xsl
  30. +2
    -1
      build/xslt/fsfe_pageclass.xsl
  31. +1
    -1
      build/xslt/fsfe_pageheader.xsl
  32. +5
    -5
      build/xslt/fsfe_sidebar.xsl
  33. +1
    -1
      build/xslt/get_localmenu_dir.xsl
  34. +1
    -1
      build/xslt/get_localmenu_line.xsl
  35. +1
    -1
      build/xslt/get_tags.xsl
  36. +1
    -1
      build/xslt/get_version.xsl
  37. +4
    -4
      build/xslt/gettext.xsl
  38. +8
    -8
      build/xslt/notifications.xsl
  39. +2
    -1
      build/xslt/people.xsl
  40. +1
    -1
      build/xslt/sharebuttons.xsl
  41. +14
    -14
      build/xslt/static-elements.xsl
  42. +1
    -1
      build/xslt/tagging.xsl
  43. +1
    -1
      build/xslt/translation_list.xsl
  44. +3
    -4
      campaigns/askyourcandidates/askyourcandidates.xsl
  45. +1
    -1
      campaigns/finished.xsl
  46. +3
    -4
      campaigns/ilovefs/2012/ilovefs.xsl
  47. +3
    -4
      campaigns/ilovefs/2012/unperfekthaus.xsl
  48. +3
    -4
      campaigns/ilovefs/2013/ilovefs.xsl
  49. +3
    -4
      campaigns/ilovefs/2014/ilovefs.xsl
  50. +3
    -4
      campaigns/ilovefs/2015/ilovefs.xsl
  51. +9
    -10
      campaigns/ilovefs/2016/index.xsl
  52. +9
    -10
      campaigns/ilovefs/2017/index.xsl
  53. +9
    -10
      campaigns/ilovefs/2018/index.xsl
  54. +9
    -10
      campaigns/ilovefs/2019/index.xsl
  55. +2
    -3
      campaigns/ilovefs/2020/index.xsl
  56. +8
    -9
      campaigns/ilovefs/whylovefs/gallery.xsl
  57. +1
    -1
      campaigns/inactive.xsl
  58. +3
    -4
      campaigns/nledu/nledu.xsl
  59. +27
    -27
      campaigns/pdfreaders/buglist.xsl
  60. +4
    -4
      campaigns/pdfreaders/pdfreaders.xsl
  61. +7
    -10
      campaigns/pdfreaders/petition.xsl
  62. +1
    -1
      campaigns/projects.xsl
  63. +2
    -3
      campaigns/publiccode/bea.xsl
  64. +2
    -3
      campaigns/publiccode/publiccode.xsl
  65. +1
    -1
      campaigns/swpat/documents.xsl
  66. +3
    -5
      campaigns/swpat/memorandum.xsl
  67. +7
    -16
      campaigns/valentine/2011/valentine-2011.xsl
  68. +1
    -3
      campaigns/whyfs/whyfs.xsl
  69. +3
    -1
      community/tools/eventregistration.xsl
  70. +26
    -26
      contribute/promotion-materials-archive.xsl
  71. +28
    -28
      contribute/spreadtheword.xsl
  72. +2
    -5
      contribute/translators/translators.xsl
  73. +12
    -24
      de/de.xsl
  74. +3
    -8
      default.xsl
  75. +1
    -1
      donate/thankgnus-2001.xsl
  76. +1
    -1
      donate/thankgnus-2002.xsl
  77. +1
    -1
      donate/thankgnus-2003.xsl
  78. +1
    -1
      donate/thankgnus-2004.xsl
  79. +1
    -1
      donate/thankgnus-2005.xsl
  80. +1
    -1
      donate/thankgnus-2006.xsl
  81. +1
    -1
      donate/thankgnus-2007.xsl
  82. +1
    -1
      donate/thankgnus-2008.xsl
  83. +1
    -1
      donate/thankgnus-2009.xsl
  84. +1
    -1
      donate/thankgnus-2010.xsl
  85. +1
    -1
      donate/thankgnus-2011.xsl
  86. +1
    -1
      donate/thankgnus-2012.xsl
  87. +1
    -1
      donate/thankgnus-2013.xsl
  88. +1
    -1
      donate/thankgnus-2014.xsl
  89. +1
    -1
      donate/thankgnus-2015.xsl
  90. +1
    -1
      donate/thankgnus-2016.xsl
  91. +1
    -1
      donate/thankgnus-2017.xsl
  92. +1
    -1
      donate/thankgnus-2018.xsl
  93. +1
    -1
      donate/thankgnus-2019.xsl
  94. +1
    -1
      donate/thankgnus-2020.xsl
  95. +1
    -1
      donate/thankgnus.xsl
  96. +2
    -2
      drm.info/default.xsl
  97. +12
    -12
      drm.info/xslt/drm_info_body.xsl
  98. +1
    -1
      drm.info/xslt/drm_info_head.xsl
  99. +12
    -24
      ee/ee.xsl
  100. +12
    -12
      events/events.ics.xsl

+ 3
- 7
about/codeofconduct.xsl View File

@@ -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>

+ 3
- 3
about/graphics/sponsoring/sponsoring.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl: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>


+ 2
- 9
about/localteams.xsl View File

@@ -1,15 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl: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 -->



+ 3
- 9
about/team.xsl View File

@@ -1,17 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl: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">


+ 4
- 7
activities/education/education.xsl View File

@@ -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'" />


+ 2
- 3
activities/ftf/avm-gpl-violation.xsl View File

@@ -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>


+ 3
- 4
activities/os/os.xsl View File

@@ -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>

+ 3
- 4
activities/procurement/procurement.xsl View File

@@ -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>

+ 2
- 3
activities/radiodirective/radiodirective.xsl View File

@@ -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>

+ 1
- 1
activities/radiodirective/statement.xsl View File

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

+ 3
- 4
activities/routers/routers.xsl View File

@@ -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
- 1
activities/wipo/wipo.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../fsfe.xsl" />


+ 2
- 4
activities/wipo/wiwo.xsl View File

@@ -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">


+ 3
- 5
associates/associates.xsl View File

@@ -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>


+ 12
- 24
at/at.xsl View File

@@ -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
- 1
build/xslt/body_scripts.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



+ 5
- 4
build/xslt/countries.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- 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>


+ 28
- 27
build/xslt/feeds.xsl View File

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

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
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>

+ 2
- 2
build/xslt/footer_legal.xsl View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl: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>


+ 11
- 11
build/xslt/footer_sitenav.xsl View File

@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl: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>


+ 5
- 5
build/xslt/footer_sourcelink.xsl View File

@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl: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>


+ 3
- 4
build/xslt/fsfe_body.xsl View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl: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>


+ 2
- 2
build/xslt/fsfe_document.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

@@ -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
- 1
build/xslt/fsfe_followupsection.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



+ 1
- 1
build/xslt/fsfe_head.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



+ 37
- 37
build/xslt/fsfe_headings.xsl View File

@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- 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">&#160;<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">&#160;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>&#160;</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>&#160;</span>
<span class="published-on"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>&#160;</span>
<xsl:element name="time">
<xsl:attribute name="class">dt-published</xsl:attribute>
<xsl:value-of select="/buildinfo/document/date/original/@content" />
</xsl:element>&#160;
<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">
&#160;<xsl:element name="time">
<xsl:attribute name="class">dt-updated</xsl:attribute>
<xsl:value-of select="@content" />
@@ -253,7 +253,7 @@
</xsl:for-each>)&#160;
</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>:&#160;</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
- 1
build/xslt/fsfe_localmenu.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



+ 1
- 1
build/xslt/fsfe_mainsection.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="sharebuttons.xsl" />


+ 2
- 4
build/xslt/fsfe_nolocal.xsl View File

@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
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|


+ 2
- 1
build/xslt/fsfe_pageclass.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

@@ -21,4 +21,5 @@
<xsl:value-of select="/buildinfo/document/body/@class" /> newsletter article</xsl:attribute>
</xsl:if>
</xsl:template>

</xsl:stylesheet>

+ 1
- 1
build/xslt/fsfe_pageheader.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



+ 5
- 5
build/xslt/fsfe_sidebar.xsl View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl: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">


+ 1
- 1
build/xslt/get_localmenu_dir.xsl View File

@@ -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>

+ 1
- 1
build/xslt/get_localmenu_line.xsl View File

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

+ 1
- 1
build/xslt/get_tags.xsl View File

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

+ 1
- 1
build/xslt/get_version.xsl View File

@@ -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>

+ 4
- 4
build/xslt/gettext.xsl View File

@@ -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" />


+ 8
- 8
build/xslt/notifications.xsl View File

@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl: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>


+ 2
- 1
build/xslt/people.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- displays list of people for a given country (or a given team, i.e. "main") -->


+ 1
- 1
build/xslt/sharebuttons.xsl View File

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

<xsl:stylesheet
version="1.0"


+ 14
- 14
build/xslt/static-elements.xsl View File

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

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


+ 1
- 1
build/xslt/tagging.xsl View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dt="http://xsltsl.org/date-time">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="feeds.xsl" />

<!--display dynamic list of tagged news items-->


+ 1
- 1
build/xslt/translation_list.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">



+ 3
- 4
campaigns/askyourcandidates/askyourcandidates.xsl View File

@@ -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
- 1
campaigns/finished.xsl View File

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../fsfe.xsl" />


+ 3
- 4
campaigns/ilovefs/2012/ilovefs.xsl View File

@@ -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>

+ 3
- 4
campaigns/ilovefs/2012/unperfekthaus.xsl View File

@@ -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>

+ 3
- 4
campaigns/ilovefs/2013/ilovefs.xsl View File

@@ -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>

+ 3
- 4
campaigns/ilovefs/2014/ilovefs.xsl View File

@@ -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>

+ 3
- 4
campaigns/ilovefs/2015/ilovefs.xsl View File

@@ -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>

+ 9
- 10
campaigns/ilovefs/2016/index.xsl View File

@@ -1,9 +1,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" />
<xsl:template match="fetch-news">
<xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/>
@@ -11,11 +10,11 @@
</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">
<xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote">
<a href="http://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@@ -29,7 +28,7 @@
</a>
</div> <!-- /picture-box-inner -->
</div> <!-- /picture-box -->
<script type="text/javascript">
/* &lt;![CDATA[ */
var quotes = [
@@ -40,7 +39,7 @@
</xsl:call-template>
<!-- and here again the one-time content -->
];
<![CDATA[
var index = Math.floor(Math.random()*quotes.length);
function changeImage() {
@@ -53,12 +52,12 @@
index = (index+1)%quotes.length;
setTimeout("changeImage();",5000);
}
changeImage();
]]>
/* ]]&gt; */
</script>
</xsl:template>

@@ -79,5 +78,5 @@
</xsl:if>
</xsl:template>
<!-- / picture-box -->
</xsl:stylesheet>

+ 9
- 10
campaigns/ilovefs/2017/index.xsl View File

@@ -1,9 +1,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" />
<xsl:template match="fetch-news">
<xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/>
@@ -11,11 +10,11 @@
</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">
<xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote">
<a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@@ -29,7 +28,7 @@
</a>
</div> <!-- /picture-box-inner -->
</div> <!-- /picture-box -->
<script type="text/javascript">
/* &lt;![CDATA[ */
var quotes = [
@@ -40,7 +39,7 @@
</xsl:call-template>
<!-- and here again the one-time content -->
];
<![CDATA[
var index = Math.floor(Math.random()*quotes.length);
function changeImage() {
@@ -53,12 +52,12 @@
index = (index+1)%quotes.length;
setTimeout("changeImage();",5000);
}
changeImage();
]]>
/* ]]&gt; */
</script>
</xsl:template>

@@ -79,5 +78,5 @@
</xsl:if>
</xsl:template>
<!-- / picture-box -->
</xsl:stylesheet>

+ 9
- 10
campaigns/ilovefs/2018/index.xsl View File

@@ -1,9 +1,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" />
<xsl:template match="fetch-news">
<xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/>
@@ -11,11 +10,11 @@
</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">
<xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote">
<a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@@ -29,7 +28,7 @@
</a>
</div> <!-- /picture-box-inner -->
</div> <!-- /picture-box -->
<script type="text/javascript">
/* &lt;![CDATA[ */
var quotes = [
@@ -40,7 +39,7 @@
</xsl:call-template>
<!-- and here again the one-time content -->
];
<![CDATA[
var index = Math.floor(Math.random()*quotes.length);
function changeImage() {
@@ -53,12 +52,12 @@
index = (index+1)%quotes.length;
setTimeout("changeImage();",5000);
}
changeImage();
]]>
/* ]]&gt; */
</script>
</xsl:template>

@@ -79,5 +78,5 @@
</xsl:if>
</xsl:template>
<!-- / picture-box -->
</xsl:stylesheet>

+ 9
- 10
campaigns/ilovefs/2019/index.xsl View File

@@ -1,9 +1,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" />
<xsl:template match="fetch-news">
<xsl:call-template name="fetch-news">
<xsl:with-param name="nb-items" select="5"/>
@@ -11,11 +10,11 @@
</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">
<xsl:template match="picture-box">
<!-- appears once when <picture-box /> is called -->
<xsl:variable name="from"><xsl:value-of select="@from"/></xsl:variable>
<xsl:variable name="to"><xsl:value-of select="@to"/></xsl:variable>
<div id="picture-box" style="height:225px;"> <!-- change to height of pictures -->
<div id="picture-box-inner" class="logo-list quote">
<a href="https://download.fsfe.org/campaigns/ilovefs/gallery/ilovefs-gallery-1.jpg">
@@ -29,7 +28,7 @@
</a>
</div> <!-- /picture-box-inner -->
</div> <!-- /picture-box -->
<script type="text/javascript">
/* &lt;![CDATA[ */
var quotes = [
@@ -40,7 +39,7 @@
</xsl:call-template>
<!-- and here again the one-time content -->
];
<![CDATA[