2004-12-10 15:30:37 -08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
2007-02-20 03:39:40 -08:00
|
|
|
<!-- XSL transformation to create a header file from authors.xml -->
|
2004-12-10 15:30:37 -08:00
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0"
|
2005-08-19 18:16:41 -07:00
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
2004-12-10 15:30:37 -08:00
|
|
|
|
|
|
|
|
<xsl:output method="text" />
|
2007-02-22 00:04:16 -08:00
|
|
|
|
|
|
|
|
<xsl:template name="recent-contributor">
|
|
|
|
|
<xsl:param name="role" />
|
2015-09-07 08:04:23 -07:00
|
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, $role) and
|
|
|
|
|
number(@last-active) >= 2 and
|
|
|
|
|
number(substring-after(@last-active, ".")) >= 8]" />
|
2007-02-22 00:04:16 -08:00
|
|
|
</xsl:template>
|
|
|
|
|
|
2005-08-19 18:52:26 -07:00
|
|
|
<xsl:template match="/dc:gimp-authors">
|
2004-12-10 15:30:37 -08:00
|
|
|
<xsl:text>
|
2007-01-28 09:47:46 -08:00
|
|
|
/* NOTE: This file is auto-generated from authors.xml, do not edit it. */
|
2004-12-10 15:30:37 -08:00
|
|
|
|
2011-01-27 09:35:01 -08:00
|
|
|
static const gchar * const creators[] =
|
|
|
|
|
{
|
|
|
|
|
</xsl:text>
|
|
|
|
|
<xsl:apply-templates select="dc:creator" />
|
|
|
|
|
<xsl:text> NULL
|
|
|
|
|
};
|
|
|
|
|
</xsl:text>
|
|
|
|
|
|
2011-01-27 09:48:30 -08:00
|
|
|
<xsl:text>
|
|
|
|
|
static const gchar * const maintainers[] =
|
|
|
|
|
{
|
|
|
|
|
</xsl:text>
|
|
|
|
|
<xsl:apply-templates select="dc:maintainer" />
|
|
|
|
|
<xsl:text> NULL
|
|
|
|
|
};
|
|
|
|
|
</xsl:text>
|
|
|
|
|
|
2011-01-27 09:35:01 -08:00
|
|
|
<xsl:text>
|
2006-04-06 05:59:44 -07:00
|
|
|
static const gchar * const authors[] =
|
2004-12-10 15:30:37 -08:00
|
|
|
{
|
2005-08-19 18:16:41 -07:00
|
|
|
</xsl:text>
|
|
|
|
|
<xsl:apply-templates select="dc:creator" />
|
2011-01-27 09:48:30 -08:00
|
|
|
<xsl:apply-templates select="dc:maintainer" />
|
2007-02-22 00:04:16 -08:00
|
|
|
<xsl:call-template name="recent-contributor">
|
|
|
|
|
<xsl:with-param name="role" select="'author'"/>
|
|
|
|
|
</xsl:call-template>
|
2005-08-19 19:28:29 -07:00
|
|
|
<xsl:text> NULL
|
|
|
|
|
};
|
|
|
|
|
</xsl:text>
|
|
|
|
|
|
|
|
|
|
<xsl:text>
|
2006-04-06 05:59:44 -07:00
|
|
|
static const gchar * const artists[] =
|
2005-08-19 19:28:29 -07:00
|
|
|
{
|
|
|
|
|
</xsl:text>
|
2007-02-22 00:04:16 -08:00
|
|
|
<xsl:call-template name="recent-contributor">
|
|
|
|
|
<xsl:with-param name="role" select="'artist'"/>
|
|
|
|
|
</xsl:call-template>
|
2005-08-19 19:28:29 -07:00
|
|
|
<xsl:text> NULL
|
|
|
|
|
};
|
|
|
|
|
</xsl:text>
|
|
|
|
|
|
|
|
|
|
<xsl:text>
|
2006-04-06 05:59:44 -07:00
|
|
|
static const gchar * const documenters[] =
|
2005-08-19 19:28:29 -07:00
|
|
|
{
|
|
|
|
|
</xsl:text>
|
2007-02-22 00:04:16 -08:00
|
|
|
<xsl:call-template name="recent-contributor">
|
|
|
|
|
<xsl:with-param name="role" select="'documenter'"/>
|
|
|
|
|
</xsl:call-template>
|
2005-08-19 18:16:41 -07:00
|
|
|
<xsl:text> NULL
|
2004-12-10 15:30:37 -08:00
|
|
|
};
|
|
|
|
|
</xsl:text>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
2005-08-19 18:16:41 -07:00
|
|
|
<xsl:template match="dc:creator"> "<xsl:apply-templates />",
|
2011-01-27 09:48:30 -08:00
|
|
|
</xsl:template>
|
|
|
|
|
<xsl:template match="dc:maintainer"> "<xsl:apply-templates />",
|
2005-08-19 18:16:41 -07:00
|
|
|
</xsl:template>
|
|
|
|
|
<xsl:template match="dc:contributor"> "<xsl:apply-templates />",
|
2004-12-10 15:30:37 -08:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|