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.

de.xsl 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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">de</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 = 'DE'">
  49. <!-- Email -->
  50. <xsl:if test="email != ''">
  51. <xsl:element name="p">
  52. <xsl:value-of select="/buildinfo/textset/text[@id='email']" />
  53. <xsl:text> </xsl:text>
  54. <xsl:element name="a">
  55. <xsl:attribute name="href">
  56. <xsl:text>mailto:</xsl:text>
  57. <xsl:value-of select="email" />
  58. </xsl:attribute>
  59. <xsl:value-of select="email" />
  60. </xsl:element>
  61. </xsl:element>
  62. </xsl:if>
  63. <!-- Address -->
  64. <xsl:if test="address != ''">
  65. <xsl:apply-templates select="address"/>
  66. </xsl:if>
  67. <!-- Phone -->
  68. <xsl:if test="phone != ''">
  69. <xsl:element name="p">
  70. <xsl:value-of select="/buildinfo/textset/text[@id='phone']" />
  71. <xsl:text> </xsl:text>
  72. <xsl:value-of select="phone" />
  73. </xsl:element>
  74. </xsl:if>
  75. <!-- Fax -->
  76. <xsl:if test="fax != ''">
  77. <xsl:element name="p">
  78. <xsl:value-of select="/buildinfo/textset/text[@id='fax']" />
  79. <xsl:text> </xsl:text>
  80. <xsl:value-of select="fax" />
  81. </xsl:element>
  82. </xsl:if>
  83. </xsl:if>
  84. </xsl:for-each>
  85. </xsl:template>
  86. <!--define dynamic list of country news items-->
  87. <xsl:template match="country-news">
  88. <xsl:call-template name="fetch-news">
  89. <xsl:with-param name="tag">
  90. <xsl:value-of select="$country-code" />
  91. </xsl:with-param>
  92. <xsl:with-param name="nb-items" select="3" />
  93. </xsl:call-template>
  94. </xsl:template>
  95. <!-- EVENTS -->
  96. <!--display dynamic list of event items-->
  97. <xsl:template match="country-events">
  98. <!-- Current events -->
  99. <xsl:call-template name="fetch-events">
  100. <xsl:with-param name="wanted-time" select="'present'" />
  101. <xsl:with-param name="tag">de</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="tag">de</xsl:with-param>
  108. <xsl:with-param name="display-details" select="'yes'" />
  109. <xsl:with-param name="nb-items" select="3" />
  110. <!--FIXME ↑ why is it showing one more?-->
  111. </xsl:call-template>
  112. </xsl:template> <!-- /EVENTS -->
  113. <!--define dynamic list of country team members-->
  114. <xsl:template match="country-team-list">
  115. <xsl:call-template name="country-people-list">
  116. <xsl:with-param name="team">
  117. <xsl:value-of select="$country-code" />
  118. </xsl:with-param>
  119. </xsl:call-template>
  120. </xsl:template>
  121. </xsl:stylesheet>