mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
80e2e6bf47
2007-02-20 Sven Neumann <sven@gimp.org> * app/dialogs/authors.xsl: changed XPath expression to only match on contributors that have been active in the 2.4 development cycle. svn path=/trunk/; revision=21959
48 lines
1.3 KiB
XML
48 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- XSL transformation to create a header file 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 match="/dc:gimp-authors">
|
|
<xsl:text>
|
|
/* NOTE: This file is auto-generated from authors.xml, do not edit it. */
|
|
|
|
static const gchar * const authors[] =
|
|
{
|
|
</xsl:text>
|
|
<xsl:apply-templates select="dc:creator" />
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'author') and number(@last-active) >= 2.4]" />
|
|
<xsl:text> NULL
|
|
};
|
|
</xsl:text>
|
|
|
|
<xsl:text>
|
|
static const gchar * const artists[] =
|
|
{
|
|
</xsl:text>
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'artist') and number(@last-active) >= 2.4]" />
|
|
<xsl:text> NULL
|
|
};
|
|
</xsl:text>
|
|
|
|
<xsl:text>
|
|
static const gchar * const documenters[] =
|
|
{
|
|
</xsl:text>
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'documenter') and number(@last-active) >= 2.4]" />
|
|
<xsl:text> NULL
|
|
};
|
|
</xsl:text>
|
|
</xsl:template>
|
|
|
|
<xsl:template match="dc:creator"> "<xsl:apply-templates />",
|
|
</xsl:template>
|
|
<xsl:template match="dc:contributor"> "<xsl:apply-templates />",
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|