Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

de.xsl 4.8KB

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