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