--- a/templates/ssm.txt.xsl Thu Oct 03 17:22:01 2019 +0200
+++ b/templates/ssm.txt.xsl Fri Oct 04 19:40:40 2019 +0200
@@ -20,9 +20,13 @@
xmlns:m="tag:globalcode.info,2019:sane-software/manifesto"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="tag:globalcode.info,2019:sane-software/manifesto ssm.xsd">
+ xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <xsl:import href="common.xsl"/>
+
+ <xsl:param name="versionTag"/>
+ <xsl:param name="versionDistance"/>
+ <xsl:param name="versionHash"/>
<xsl:output
method="text"
@@ -32,7 +36,6 @@
<xsl:text> *** </xsl:text>
<xsl:value-of select="m:title"/>
<xsl:text> *** </xsl:text>
- <!-- TODO: version and draft warning -->
<xsl:value-of select="m:preamble"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="m:chapter"/>
@@ -43,6 +46,13 @@
<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: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: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:text>---------------------------------------------------------------- </xsl:text>
</xsl:template>