Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/ https://fsfe.org
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.

38 lines
1.2KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:import href="../fsfe.xsl" />
  4. <xsl:import href="../build/xslt/static-elements.xsl" />
  5. <xsl:template match="/buildinfo/document/body/include-newsletter">
  6. <xsl:apply-templates />
  7. <xsl:for-each select="/buildinfo/document/set/news[
  8. translate(@date, '-', '') &lt;= translate(/buildinfo/@date, '-', '')
  9. ]">
  10. <xsl:sort select="@date" order="descending"/>
  11. <p>
  12. <b><xsl:value-of select="@date" /></b><br/>
  13. <xsl:value-of select="body"/>
  14. <xsl:variable name="link"><xsl:value-of select="link"/></xsl:variable>
  15. <xsl:if test="$link!=''">
  16. &#160;<a href="{link}" class="learn-more"><xsl:value-of select="/buildinfo/document/text[@id='more']"/></a>
  17. </xsl:if>
  18. </p>
  19. </xsl:for-each>
  20. </xsl:template>
  21. <!--translated sentence "receive-newsletter"-->
  22. <xsl:template match="receive-newsletter">
  23. <xsl:call-template name="gettext">
  24. <xsl:with-param name="id" select="'receive-newsletter'" />
  25. </xsl:call-template>
  26. </xsl:template>
  27. <xsl:template match="subscribe-nl">
  28. <xsl:call-template name="subscribe-nl" />
  29. </xsl:template>
  30. </xsl:stylesheet>