authors4gimp-web.xsl 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- simple XSL transformation to create a text version from authors.xml -->
  3. <xsl:stylesheet version="1.0"
  4. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5. xmlns:dc="http://purl.org/dc/elements/1.1/">
  6. <xsl:output method="text" />
  7. <xsl:param name="today" />
  8. <xsl:template name="contributor">
  9. <xsl:param name="role" />
  10. <xsl:apply-templates select="dc:contributor[contains(@role, $role)]" />
  11. </xsl:template>
  12. <xsl:template match="/dc:gimp-authors">
  13. <xsl:text>Title: Authors: The People That Made it Happen
  14. Date: </xsl:text><xsl:value-of select="$today"/><xsl:text>
  15. Modified: </xsl:text><xsl:value-of select="$today"/><xsl:text>
  16. Author: generated from authors.xml.
  17. ## GIMP was originally written by:
  18. </xsl:text>
  19. <xsl:apply-templates select="dc:creator" />
  20. <xsl:text>
  21. ## The current maintainers are:
  22. </xsl:text>
  23. <xsl:apply-templates select="dc:maintainer" />
  24. <xsl:text>
  25. ## The following people have contributed code to GIMP:
  26. *Contributing patches, fixes, plugins, extensions, scripts and other [improvements to the code](/develop/).*
  27. </xsl:text>
  28. <xsl:call-template name="contributor">
  29. <xsl:with-param name="role" select="'author'"/>
  30. </xsl:call-template>
  31. <xsl:text>
  32. ## The following people have contributed art to GIMP:
  33. *Contributing icons, cursors, brushes, gradients, patterns, etc.*
  34. </xsl:text>
  35. <xsl:call-template name="contributor">
  36. <xsl:with-param name="role" select="'artist'"/>
  37. </xsl:call-template>
  38. <xsl:text>
  39. ## The following people have helped to document GIMP:
  40. *Contributing [documentation](/docs/).*
  41. </xsl:text>
  42. <xsl:call-template name="contributor">
  43. <xsl:with-param name="role" select="'documenter'"/>
  44. </xsl:call-template>
  45. </xsl:template>
  46. <xsl:template match="dc:creator">
  47. <xsl:text>* </xsl:text><xsl:apply-templates /><xsl:text>
  48. </xsl:text>
  49. </xsl:template>
  50. <xsl:template match="dc:maintainer">
  51. <xsl:text>* </xsl:text><xsl:apply-templates /><xsl:text>
  52. </xsl:text>
  53. </xsl:template>
  54. <xsl:template match="dc:contributor">
  55. <xsl:text>* </xsl:text><xsl:apply-templates /><xsl:text>
  56. </xsl:text>
  57. </xsl:template>
  58. </xsl:stylesheet>