diff options
author | Mukund Sivaraman <muks@banu.com> | 2010-01-18 17:35:51 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2010-01-18 17:35:51 +0530 |
commit | 8631a9d531d72b69b22879fe05d01a5e9b73e097 (patch) | |
tree | 0b8a178164a615d18b657068638f4e685bf77129 /authors.xsl | |
parent | d396e5592b9caabff12f5d460a771469eef18eba (diff) |
Update the AUTHORS file
This uses an XML based system now to store author names.
We also keep a pre-generated AUTHORS file checked in.
Diffstat (limited to 'authors.xsl')
-rw-r--r-- | authors.xsl | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/authors.xsl b/authors.xsl new file mode 100644 index 0000000..74b5441 --- /dev/null +++ b/authors.xsl @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + + Simple XSL transformation to create a text version AUTHORS file from + authors.xml. This file was adapted from GIMP. + +--> + +<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 name="contributor"> + <xsl:param name="role" /> + <xsl:apply-templates select="dc:contributor[contains(@role, $role)]" /> + </xsl:template> + + <xsl:template match="/dc:authors"> + <xsl:text>Tinyproxy AUTHORS +================= + +This file is generated from authors.xml, do not edit it directly. + +The following people have contributed code to Tinyproxy: + +</xsl:text> + <xsl:call-template name="contributor"> + <xsl:with-param name="role" select="'author'"/> + </xsl:call-template> + <xsl:text> + +The following people have helped to document Tinyproxy: + +</xsl:text> + <xsl:call-template name="contributor"> + <xsl:with-param name="role" select="'documenter'"/> + </xsl:call-template> + + </xsl:template> + + <xsl:template match="dc:contributor"> + <xsl:text> </xsl:text><xsl:apply-templates /><xsl:text> +</xsl:text> + </xsl:template> + +</xsl:stylesheet> |