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.

thankgnus-2004.xsl 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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='patrons'">
  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:element>
  22. </xsl:element>
  23. </xsl:for-each>
  24. </xsl:element>
  25. </xsl:when>
  26. <xsl:otherwise>
  27. <xsl:element name="ul">
  28. <xsl:for-each select="/buildinfo/document/set/*[name(.)=$group]/donor">
  29. <xsl:element name="li">
  30. <xsl:apply-templates select="node()"/>
  31. </xsl:element>
  32. </xsl:for-each>
  33. </xsl:element>
  34. </xsl:otherwise>
  35. </xsl:choose>
  36. </xsl:template>
  37. </xsl:stylesheet>