templates/ssm.odt.xsl
branchv_0
changeset 49 1dc027689f93
parent 36 9e5c3383ba50
child 51 21dfb69028a0
--- a/templates/ssm.odt.xsl	Thu Oct 03 17:22:01 2019 +0200
+++ b/templates/ssm.odt.xsl	Fri Oct 04 19:40:40 2019 +0200
@@ -27,9 +27,13 @@
 	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"
-	exclude-result-prefixes="fn m xs xsi">
+	exclude-result-prefixes="fn m xs">
+	
+	<xsl:import href="common.xsl"/>
+	
+	<xsl:param name="versionTag"/>
+	<xsl:param name="versionDistance"/>
+	<xsl:param name="versionHash"/>
 	
 	<xsl:output 
 		method="xml" 
@@ -44,8 +48,13 @@
 					<text:p text:style-name="Title">
 						<xsl:value-of select="m:title"/>
 					</text:p>
-					<!-- TODO: remove hardcoded warning, use version from mercurial -->
-					<text:p text:style-name="Subtitle">&lt;DRAFT&gt; Please note that this is a draft version. Stay tuned for v1.0.0! &lt;/DRAFT&gt;</text:p>
+					<text:p text:style-name="Subtitle">
+						<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>
+					</text:p>
 					<text:p text:style-name="Paragraph">
 						<xsl:value-of select="m:preamble"/>
 					</text:p>