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.

thankgnus-2019.xsl 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
  5. <!-- Fill dynamic content -->
  6. <xsl:template match="dynamic-content">
  7. <xsl:variable name="group"><xsl:value-of select="@group"/></xsl:variable>
  8. <xsl:choose>
  9. <xsl:when test="$group='gold'">
  10. <xsl:element name="table">
  11. <xsl:for-each select="/buildinfo/document/set/*[name(.)=$group]/donor">
  12. <xsl:element name="tr">
  13. <xsl:element name="td">
  14. <xsl:element name="img">
  15. <xsl:attribute name="src"><xsl:value-of select="@img"/></xsl:attribute>
  16. <xsl:attribute name="alt"><xsl:value-of select="node()"/></xsl:attribute>
  17. </xsl:element>
  18. </xsl:element>
  19. <xsl:element name="td">
  20. <xsl:value-of select="node()"/>
  21. <xsl:if test="@mark">
  22. <xsl:element name="span">
  23. <xsl:attribute name="style">color:red</xsl:attribute>
  24. <xsl:text>*</xsl:text>
  25. </xsl:element>
  26. </xsl:if>
  27. </xsl:element>
  28. </xsl:element>
  29. </xsl:for-each>
  30. </xsl:element>
  31. </xsl:when>
  32. <xsl:when test="$group='silver'">
  33. <xsl:element name="table">
  34. <xsl:for-each select="/buildinfo/document/set/*[name(.)=$group]/donor">
  35. <xsl:element name="tr">
  36. <xsl:element name="td">
  37. <xsl:element name="img">
  38. <xsl:attribute name="src"><xsl:value-of select="@img"/></xsl:attribute>
  39. <xsl:attribute name="alt"><xsl:value-of select="node()"/></xsl:attribute>
  40. </xsl:element>
  41. </xsl:element>
  42. <xsl:element name="td">
  43. <xsl:value-of select="node()"/>
  44. </xsl:element>
  45. </xsl:element>
  46. </xsl:for-each>
  47. </xsl:element>
  48. </xsl:when>
  49. <xsl:otherwise>
  50. <xsl:element name="ul">
  51. <xsl:for-each select="/buildinfo/document/set/*[name(.)=$group]/donor">
  52. <xsl:element name="li">
  53. <xsl:apply-templates select="node()"/>
  54. </xsl:element>
  55. </xsl:for-each>
  56. </xsl:element>
  57. </xsl:otherwise>
  58. </xsl:choose>
  59. </xsl:template>
  60. </xsl:stylesheet>