Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uk.xsl 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. xmlns:dt="http://xsltsl.org/date-time">
  5. <xsl:import href="../tools/xsltsl/countries.xsl" />
  6. <xsl:import href="../fsfe.xsl" />
  7. <xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
  8. <!-- To localise this page to a new country, copy this file and change the following:
  9. # <xsl:variable name="country-code">de</xsl:variable> -> change xx to your country code
  10. For more information, take a look at the documentation at
  11. http://fsfe.org/contribute/web/tagging.html
  12. -->
  13. <xsl:variable name="country-code">gb</xsl:variable>
  14. <!--display labels-->
  15. <!--translated word "news"-->
  16. <xsl:template match="news-label">
  17. <xsl:call-template name="gettext">
  18. <xsl:with-param name="id" select="'news'" />
  19. </xsl:call-template>
  20. </xsl:template>
  21. <!--translated word "events"-->
  22. <xsl:template match="events-label">
  23. <xsl:call-template name="gettext">
  24. <xsl:with-param name="id" select="'events'" />
  25. </xsl:call-template>
  26. </xsl:template>
  27. <!--translated word "microblog"-->
  28. <xsl:template match="microblog-label">
  29. <xsl:call-template name="gettext">
  30. <xsl:with-param name="id" select="'microblog'" />
  31. </xsl:call-template>
  32. </xsl:template>
  33. <!--translated word "contact"-->
  34. <xsl:template match="contact-label">
  35. <xsl:call-template name="gettext">
  36. <xsl:with-param name="id" select="'contact'" />
  37. </xsl:call-template>
  38. </xsl:template>
  39. <!--translated word "team"-->
  40. <xsl:template match="team-label">
  41. <xsl:call-template name="gettext">
  42. <xsl:with-param name="id" select="'team'" />
  43. </xsl:call-template>
  44. </xsl:template>
  45. <!--define contact information-->
  46. <xsl:template match="contact-details">
  47. <xsl:for-each select="/buildinfo/document/set/contact">
  48. <xsl:if test="@id = 'GB'">
  49. <!-- Email -->
  50. <xsl:if test="email != ''">
  51. <xsl:element name="p">
  52. Team mailing-list: <xsl:value-of select="/buildinfo/textset/text[@id='email']" />
  53. <xsl:element name="a">
  54. <xsl:attribute name="href">
  55. <xsl:text>mailto:</xsl:text>
  56. <xsl:value-of select="email" />
  57. </xsl:attribute>
  58. <xsl:value-of select="email" />
  59. </xsl:element>
  60. </xsl:element>
  61. </xsl:if>
  62. <!-- Address -->
  63. <xsl:if test="address != ''">
  64. <xsl:apply-templates select="address"/>
  65. </xsl:if>
  66. <!-- Phone -->
  67. <xsl:if test="phone != ''">
  68. <xsl:element name="p">
  69. <xsl:value-of select="/buildinfo/textset/text[@id='phone']" />
  70. <xsl:text> </xsl:text>
  71. <xsl:value-of select="phone" />
  72. </xsl:element>
  73. </xsl:if>
  74. <!-- Fax -->
  75. <xsl:if test="fax != ''">
  76. <xsl:element name="p">
  77. <xsl:value-of select="/buildinfo/textset/text[@id='fax']" />
  78. <xsl:text> </xsl:text>
  79. <xsl:value-of select="fax" />
  80. </xsl:element>
  81. </xsl:if>
  82. </xsl:if>
  83. </xsl:for-each>
  84. </xsl:template>
  85. <!--define dynamic list of country news items-->
  86. <xsl:template match="country-news">
  87. <xsl:call-template name="fetch-news">
  88. <xsl:with-param name="tag">
  89. <xsl:value-of select="$country-code" />
  90. </xsl:with-param>
  91. <xsl:with-param name="nb-items" select="3" />
  92. </xsl:call-template>
  93. </xsl:template>
  94. <!--define dynamic list of country event items-->
  95. <xsl:template match="country-events">
  96. <!-- Current events -->
  97. <xsl:call-template name="fetch-events">
  98. <xsl:with-param name="wanted-time" select="'present'" />
  99. <xsl:with-param name="tag">
  100. <xsl:value-of select="$country-code" />
  101. </xsl:with-param>
  102. <xsl:with-param name="display-details" select="'yes'" />
  103. </xsl:call-template>
  104. <!-- Future events -->
  105. <xsl:call-template name="fetch-events">
  106. <xsl:with-param name="wanted-time" select="'future'" />
  107. <xsl:with-param name="nb-items" select="3" />
  108. <xsl:with-param name="tag">
  109. <xsl:value-of select="$country-code" />
  110. </xsl:with-param>
  111. <xsl:with-param name="display-details" select="'yes'" />
  112. </xsl:call-template>
  113. </xsl:template>
  114. <!--define dynamic list of country team members-->
  115. <xsl:template match="country-team-list">
  116. <xsl:call-template name="country-people-list">
  117. <xsl:with-param name="team">
  118. <xsl:value-of select="$country-code" />
  119. </xsl:with-param>
  120. </xsl:call-template>
  121. </xsl:template>
  122. </xsl:stylesheet>