mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 04:51:44 +00:00
48c407c4b8
2005-08-20 Sven Neumann <sven@gimp.org> * authors.xml: expemplary added artist and documenter roles to some contributors. * app/dialogs/authors.xsl: generate arrays for the new roles. * app/dialogs/authors.h: regenerated. * app/dialogs/about-dialog.c: pass the new arrays to the GtkAboutDialog constructor.
48 lines
1.2 KiB
XML
48 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- simple 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 autogenerated from authors.xml, do not edit it. */
|
|
|
|
static const gchar *authors[] =
|
|
{
|
|
</xsl:text>
|
|
<xsl:apply-templates select="dc:creator" />
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'author')]" />
|
|
<xsl:text> NULL
|
|
};
|
|
</xsl:text>
|
|
|
|
<xsl:text>
|
|
static const gchar *artists[] =
|
|
{
|
|
</xsl:text>
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'artist')]" />
|
|
<xsl:text> NULL
|
|
};
|
|
</xsl:text>
|
|
|
|
<xsl:text>
|
|
static const gchar *documenters[] =
|
|
{
|
|
</xsl:text>
|
|
<xsl:apply-templates select="dc:contributor[contains(@role, 'documenter')]" />
|
|
<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>
|