2004-12-11 07:30:37 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<!-- simple XSL transformation to create a header file from authors.xml -->
|
|
|
|
|
|
|
|
<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" />
|
2005-08-20 09:52:26 +08:00
|
|
|
<xsl:template match="/dc:gimp-authors">
|
2004-12-11 07:30:37 +08:00
|
|
|
<xsl:text>
|
|
|
|
/* NOTE: This file is autogenerated from authors.xml, do not edit it. */
|
|
|
|
|
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" />
|
2005-08-20 10:28:29 +08:00
|
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'author')]" />
|
|
|
|
<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>
|
|
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'artist')]" />
|
|
|
|
<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>
|
|
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'documenter')]" />
|
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 />",
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="dc:contributor"> "<xsl:apply-templates />",
|
2004-12-11 07:30:37 +08:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|