aboutsummaryrefslogtreecommitdiff
path: root/utility/reference_commit.xsl
blob: 63cb064e4d5c1abd0a3dbcbf2e7771a638db1a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>

<xsl:template match="@* | node()" mode="commit">
	<xsl:copy>
		<xsl:apply-templates select="@* | node()" mode="commit"/>
	</xsl:copy>
</xsl:template>

<xsl:template match="commit" mode="commit">
	<xsl:copy>
		<xsl:attribute name="repository">
			<xsl:value-of select="../@handle"/>
		</xsl:attribute>

		<xsl:apply-templates select="@* | node()" mode="commit"/>
	</xsl:copy>
</xsl:template>

<xsl:template match="message | date | text()" mode="commit"/>

</xsl:stylesheet>