aboutsummaryrefslogtreecommitdiff
path: root/utility/reference_commit.xsl
blob: 3423cd9210377085f37da7214498afc7af286df7 (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="title | message | date | author | link | text()" mode="commit"/>

</xsl:stylesheet>