--- a/templates/ssm.txt.xsl Fri Oct 04 19:40:53 2019 +0200
+++ b/templates/ssm.txt.xsl Sat Oct 05 21:04:37 2019 +0200
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Sane Software Manifesto helper tools
+ Sane software manifesto helper tools
Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
This program is free software: you can redistribute it and/or modify
@@ -27,6 +27,7 @@
<xsl:param name="versionTag"/>
<xsl:param name="versionDistance"/>
<xsl:param name="versionHash"/>
+ <xsl:param name="versionChangedFiles"/>
<xsl:output
method="text"
@@ -40,20 +41,31 @@
<xsl:text> </xsl:text>
<xsl:apply-templates select="m:chapter"/>
- <!-- TODO: move license information to XML file -->
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:text>---------------------------------------------------------------- </xsl:text>
- <xsl:text>Sane Software Manifesto <https://sane-software.globalcode.info/> </xsl:text>
- <xsl:text>Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info) </xsl:text>
+ <xsl:value-of select="m:title"/>
+ <xsl:text> <</xsl:text>
+ <xsl:value-of select="m:url"/>
+ <xsl:text>> </xsl:text>
+ <xsl:text>Copyright © 2019 </xsl:text>
+ <xsl:value-of select="m:author"/>
+ <xsl:text> </xsl:text>
<xsl:text>Version: </xsl:text>
<xsl:call-template name="version">
<xsl:with-param name="tag" select="$versionTag"/>
<xsl:with-param name="distance" select="$versionDistance"/>
<xsl:with-param name="hash" select="$versionHash"/>
+ <xsl:with-param name="changedFiles" select="$versionChangedFiles"/>
</xsl:call-template>
<xsl:text> </xsl:text>
- <xsl:text>This manifesto is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License <https://creativecommons.org/licenses/by-nd/4.0/>. </xsl:text>
+ <xsl:value-of select="m:license/m:prefix"/>
+ <xsl:value-of select="m:license/m:name"/>
+ <xsl:text> <</xsl:text>
+ <xsl:value-of select="m:license/m:url"/>
+ <xsl:text>></xsl:text>
+ <xsl:value-of select="m:license/m:suffix"/>
+ <xsl:text> </xsl:text>
<xsl:text>---------------------------------------------------------------- </xsl:text>
</xsl:template>