Configs/Util/to_changelog_md.xsl

27 lines
884 B
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="no" encoding="UTF-8"/>
<xsl:template match="*/text()[normalize-space()]">
2020-06-22 17:31:35 +02:00
<xsl:text>&#10;</xsl:text>
<xsl:value-of select="normalize-space()"/>
</xsl:template>
<xsl:template match="/">
# Changelog
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<xsl:for-each select="ReleaseNotes/Changeset">
2020-07-01 14:35:19 +02:00
## [v<xsl:value-of select="translate(translate(substring(@component, string-length(@component) - 5),'.',''),'-','.')" />] - <xsl:value-of select="@date" />
<xsl:for-each select="Change">
2020-06-22 17:31:35 +02:00
<xsl:text>&#10;</xsl:text>
2020-06-22 17:27:08 +02:00
<xsl:apply-templates/>
</xsl:for-each>
2020-06-22 17:31:35 +02:00
<xsl:text>&#10;</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>