PIKApp/authors.xsl

72 lines
1.8 KiB
XML
Raw Normal View History

2023-09-26 00:35:21 +02:00
<?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:template name="contributor">
<xsl:param name="role" />
<xsl:apply-templates select="dc:contributor[contains(@role, $role)]" />
</xsl:template>
2023-09-26 01:54:03 +02:00
<xsl:template match="/dc:gimp-authors">
2023-09-26 00:35:21 +02:00
<xsl:text> -- This file is generated from authors.xml, do not edit it directly. --
2023-09-26 01:54:03 +02:00
GIMP was originally written by:
2023-09-26 00:35:21 +02:00
</xsl:text>
<xsl:apply-templates select="dc:creator" />
<xsl:text>
The current maintainers are:
</xsl:text>
<xsl:apply-templates select="dc:maintainer" />
<xsl:text>
2023-09-26 01:54:03 +02:00
The following people have contributed code to GIMP:
2023-09-26 00:35:21 +02:00
</xsl:text>
<xsl:call-template name="contributor">
<xsl:with-param name="role" select="'author'"/>
</xsl:call-template>
<xsl:text>
2023-09-26 01:54:03 +02:00
The following people have contributed art to GIMP:
2023-09-26 00:35:21 +02:00
</xsl:text>
<xsl:call-template name="contributor">
<xsl:with-param name="role" select="'artist'"/>
</xsl:call-template>
<xsl:text>
2023-09-26 01:54:03 +02:00
The following people have helped to document GIMP:
2023-09-26 00:35:21 +02:00
</xsl:text>
<xsl:call-template name="contributor">
<xsl:with-param name="role" select="'documenter'"/>
</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>