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.

members.xsl 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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:element name="ul">
  8. <xsl:for-each select="/buildinfo/document/set/person[@association-member='yes']">
  9. <xsl:sort select="@id"/>
  10. <xsl:element name="li">
  11. <xsl:element name="p">
  12. <!-- Name; if link is given show as link -->
  13. <xsl:element name="b">
  14. <xsl:choose>
  15. <xsl:when test="link != ''">
  16. <xsl:element name="a">
  17. <xsl:attribute name="href">
  18. <xsl:value-of select="link"/>
  19. </xsl:attribute>
  20. <xsl:value-of select="name"/>
  21. </xsl:element>
  22. </xsl:when>
  23. <xsl:otherwise>
  24. <xsl:value-of select="name"/>
  25. </xsl:otherwise>
  26. </xsl:choose>
  27. </xsl:element>
  28. <!-- E-mail -->
  29. <xsl:if test="email != ''">
  30. <xsl:text> &lt;</xsl:text>
  31. <xsl:element name="i">
  32. <xsl:value-of select="email"/>
  33. </xsl:element>
  34. <xsl:text>&gt;</xsl:text>
  35. </xsl:if>
  36. </xsl:element>
  37. </xsl:element>
  38. </xsl:for-each>
  39. </xsl:element>
  40. </xsl:template>
  41. </xsl:stylesheet>