gipm-help-2.doap: make schumaml and myself additional maintainers
[gimp-help-2.git] / stylesheets / authors_text.xsl
blob11669a84a8264ce8036b71263e5a3471484ce512
1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- simple XSL transformation to create a text version from authors.xml -->
5 <xsl:stylesheet version="1.0"
6 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 xmlns:dc="http://purl.org/dc/elements/1.1/">
9 <!-- template "lang.split" -->
10 <xsl:import href="authors_common.xsl" />
12 <xsl:output method="text" />
14 <xsl:template match="/dc:gimp-authors">
15 <xsl:text>This file is generated from authors.xml, do not edit it directly.
16 </xsl:text>
17 <xsl:text>
18 Active Contributors
19 ===================
20 </xsl:text>
21 <xsl:apply-templates select="//dc:creator" />
23 <xsl:text>
25 Contributors in the past
26 ========================
28 Writers
29 -------
30 </xsl:text>
31 <xsl:apply-templates select="//dc:contributor[contains(@role, 'documenter')]" />
33 <xsl:text>
34 Graphics, Stylesheets
35 ---------------------
36 </xsl:text>
37 <xsl:apply-templates select="//dc:contributor[contains(@role, 'artist')]" />
39 <xsl:text>
40 Buildsystem, Technical Contributions
41 ------------------------------------
42 </xsl:text>
43 <xsl:apply-templates select="//dc:contributor[contains(@role, 'technican')]">
44 <xsl:with-param name="print_language" select="0" />
45 </xsl:apply-templates>
47 <xsl:text>
48 </xsl:text>
49 </xsl:template>
51 <!-- Print creator/contributor and (optionally) his/her languages -->
52 <xsl:template match="//dc:creator | //dc:contributor">
53 <xsl:param name="print_language">1</xsl:param>
54 <xsl:value-of select="."/>
55 <xsl:if test="@lang != '' and $print_language != 0">
56 <xsl:text> (</xsl:text>
57 <xsl:call-template name="lang.split">
58 <xsl:with-param name="lang" select="@lang" />
59 </xsl:call-template>
60 <xsl:text>)</xsl:text>
61 </xsl:if>
62 <xsl:text>
63 </xsl:text>
64 </xsl:template>
66 </xsl:stylesheet>