Browse Source

Clean up formatting of XSL files, no code change

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

10
about/codeofconduct.xsl

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

6
about/graphics/sponsoring/sponsoring.xsl

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

11
about/localteams.xsl

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

12
about/team.xsl

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

11
activities/education/education.xsl

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

5
activities/ftf/avm-gpl-violation.xsl

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

7
activities/os/os.xsl

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

7
activities/procurement/procurement.xsl

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

5
activities/radiodirective/radiodirective.xsl

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

2
activities/radiodirective/statement.xsl

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

7
activities/routers/routers.xsl

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

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

6
activities/wipo/wiwo.xsl

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

8
associates/associates.xsl

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

36
at/at.xsl

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

2
build/xslt/body_scripts.xsl

@ -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
build/xslt/countries.xsl

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

55
build/xslt/feeds.xsl

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

4
build/xslt/footer_legal.xsl

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

22
build/xslt/footer_sitenav.xsl

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

10
build/xslt/footer_sourcelink.xsl

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

7
build/xslt/fsfe_body.xsl

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

4
build/xslt/fsfe_document.xsl

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

2
build/xslt/fsfe_followupsection.xsl

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

2
build/xslt/fsfe_head.xsl

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

74
build/xslt/fsfe_headings.xsl

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

2
build/xslt/fsfe_localmenu.xsl

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

2
build/xslt/fsfe_mainsection.xsl

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

6
build/xslt/fsfe_nolocal.xsl

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

3
build/xslt/fsfe_pageclass.xsl

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

2
build/xslt/fsfe_pageheader.xsl

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

10
build/xslt/fsfe_sidebar.xsl

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

2
build/xslt/get_localmenu_dir.xsl

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

2
build/xslt/get_localmenu_line.xsl

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

2
build/xslt/get_tags.xsl

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

2
build/xslt/get_version.xsl

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

8
build/xslt/gettext.xsl

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

16
build/xslt/notifications.xsl

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