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.

pdfreaders.xsl 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <xsl:template match="number-of-businesses">
  6. <xsl:value-of select="count(/buildinfo/document/set/bsig/li)" />
  7. </xsl:template>
  8. <xsl:template match="number-of-orgs">
  9. <xsl:value-of select="count(/buildinfo/document/set/osig/li)" />
  10. </xsl:template>
  11. <xsl:template match="number-of-individuals">
  12. <xsl:value-of select="count(/buildinfo/document/set/isig/li)" />
  13. </xsl:template>
  14. <!-- Fill dynamic content -->
  15. <xsl:template match="dynamic-content">
  16. <xsl:for-each select="/buildinfo/document/set/buglist">
  17. <xsl:sort select="@country"/>
  18. <xsl:variable name="country">
  19. <xsl:value-of select="@country"/>
  20. </xsl:variable>
  21. <!-- Heading -->
  22. <xsl:element name="h3">
  23. <xsl:value-of select="/buildinfo/document/set/country[@id=$country]"/>
  24. </xsl:element>
  25. <!-- Table header -->
  26. <xsl:element name="table">
  27. <xsl:element name="tr">
  28. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='institution-name']"/></xsl:element>
  29. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='institution-address']"/></xsl:element>
  30. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='institution-url']"/></xsl:element>
  31. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='opened']"/></xsl:element>
  32. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='closed']"/></xsl:element>
  33. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='name']"/></xsl:element>
  34. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='group']"/></xsl:element>
  35. <xsl:element name="th"><xsl:value-of select="/buildinfo/document/text[@id='comment']"/></xsl:element>
  36. </xsl:element>
  37. <!-- Table rows -->
  38. <xsl:for-each select="bug">
  39. <xsl:element name="tr">
  40. <xsl:element name="td"><xsl:value-of select="@institution-name"/></xsl:element>
  41. <xsl:element name="td"><xsl:value-of select="@institution-address"/></xsl:element>
  42. <xsl:element name="td">
  43. <xsl:element name="a">
  44. <xsl:attribute name="href">
  45. <xsl:value-of select="@institution-url"/>
  46. </xsl:attribute>
  47. <xsl:value-of select="/buildinfo/document/text[@id='link']"/>
  48. </xsl:element>
  49. </xsl:element>
  50. <xsl:element name="td"><xsl:value-of select="@opened"/></xsl:element>
  51. <xsl:element name="td"><xsl:value-of select="@closed"/></xsl:element>
  52. <xsl:element name="td"><xsl:value-of select="@name"/></xsl:element>
  53. <xsl:element name="td"><xsl:value-of select="@group"/></xsl:element>
  54. <xsl:element name="td"><xsl:value-of select="@comment"/></xsl:element>
  55. </xsl:element>
  56. </xsl:for-each>
  57. </xsl:element>
  58. </xsl:for-each>
  59. </xsl:template>
  60. </xsl:stylesheet>