forked from joshgiesbrecht/Glimpse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
authors4glimpse-web.xsl
91 lines (66 loc) · 2.56 KB
/
authors4glimpse-web.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8"?>
<!-- simple XSL transformation to create a text version from authors.xml -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<xsl:output method="text" />
<xsl:param name="today" />
<xsl:template name="contributor">
<xsl:param name="role" />
<xsl:apply-templates select="dc:contributor[contains(@role, $role)]" />
</xsl:template>
<xsl:template match="/dc:glimpse-authors">
<xsl:text>Title: Authors: The People That Made it Happen
Date: </xsl:text><xsl:value-of select="$today"/><xsl:text>
Modified: </xsl:text><xsl:value-of select="$today"/><xsl:text>
Author: generated from authors.xml.
For GNU Image Manipulation Program authors, check the ORIGINAL_AUTHORS file in the git repository.
## Glimpse was originally written by:
</xsl:text>
<xsl:apply-templates select="dc:creator" />
<xsl:text>
## The current maintainers are:
</xsl:text>
<xsl:apply-templates select="dc:maintainer" />
<xsl:text>
## The following people have contributed code to Glimpse:
*Contributing patches, fixes, plugins, extensions, scripts and other [improvements to the code](/develop/).*
</xsl:text>
<xsl:call-template name="contributor">
<xsl:with-param name="role" select="'author'"/>
</xsl:call-template>
<xsl:text>
## The following people have contributed art to Glimpse:
*Contributing icons, cursors, brushes, gradients, patterns, etc.*
</xsl:text>
<xsl:call-template name="contributor">
<xsl:with-param name="role" select="'artist'"/>
</xsl:call-template>
<xsl:text>
## The following people have helped to document Glimpse:
*Contributing [documentation](/docs/).*
</xsl:text>
<xsl:call-template name="contributor">
<xsl:with-param name="role" select="'documenter'"/>
</xsl:call-template>
<xsl:text>
## The following people sponsored Glimpse on Patreon:
*Contributing money towards the cost of running the project.*
</xsl:text>
<xsl:call-template name="contributor">
<xsl:with-param name="role" select="'sponsor'"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="dc:creator">
<xsl:text>* </xsl:text><xsl:apply-templates /><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="dc:maintainer">
<xsl:text>* </xsl:text><xsl:apply-templates /><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="dc:contributor">
<xsl:text>* </xsl:text><xsl:apply-templates /><xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>