xsl file to transform changelog.xml to changelog.md
This commit is contained in:
parent
b025827b95
commit
c475e363a1
|
@ -0,0 +1,25 @@
|
|||
<?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()]">
|
||||
<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">
|
||||
|
||||
## [<xsl:value-of select="translate(substring(@component, string-length(@component) - 5),'.','')" />] - [<xsl:value-of select="@date" />]
|
||||
|
||||
<xsl:for-each select="Change">
|
||||
<xsl:apply-templates />
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Reference in New Issue