templates/ssm.txt.xsl
branchv_0
changeset 51 21dfb69028a0
parent 49 1dc027689f93
--- 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>&#10;&#10;</xsl:text>
 		<xsl:apply-templates select="m:chapter"/>
 		
-		<!-- TODO: move license information to XML file -->
 		<xsl:text></xsl:text>
 		<xsl:text>&#10;&#10;</xsl:text>
 		<xsl:text>----------------------------------------------------------------&#10;</xsl:text>
-		<xsl:text>Sane Software Manifesto &lt;https://sane-software.globalcode.info/&gt;&#10;</xsl:text>
-		<xsl:text>Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)&#10;</xsl:text>
+		<xsl:value-of select="m:title"/>
+		<xsl:text> &lt;</xsl:text>
+		<xsl:value-of select="m:url"/>
+		<xsl:text>&gt;&#10;</xsl:text>
+		<xsl:text>Copyright © 2019 </xsl:text>
+		<xsl:value-of select="m:author"/>
+		<xsl:text>&#10;</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>&#10;</xsl:text>
-		<xsl:text>This manifesto is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License &lt;https://creativecommons.org/licenses/by-nd/4.0/&gt;.&#10;</xsl:text>
+		<xsl:value-of select="m:license/m:prefix"/>
+		<xsl:value-of select="m:license/m:name"/>
+		<xsl:text> &lt;</xsl:text>
+		<xsl:value-of select="m:license/m:url"/>
+		<xsl:text>&gt;</xsl:text>
+		<xsl:value-of select="m:license/m:suffix"/>
+		<xsl:text>&#10;</xsl:text>
 		<xsl:text>----------------------------------------------------------------&#10;</xsl:text>
 	</xsl:template>