templates/ssm.xhtml.xsl
branchv_0
changeset 49 1dc027689f93
parent 47 7e665331bc32
child 51 21dfb69028a0
--- a/templates/ssm.xhtml.xsl	Thu Oct 03 17:22:01 2019 +0200
+++ b/templates/ssm.xhtml.xsl	Fri Oct 04 19:40:40 2019 +0200
@@ -24,9 +24,13 @@
 	xmlns:fn="http://www.w3.org/2005/xpath-functions"
 	xmlns:svg="http://www.w3.org/2000/svg"
 	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 h m xs xsi">
+	exclude-result-prefixes="fn h m xs">
+	
+	<xsl:import href="common.xsl"/>
+	
+	<xsl:param name="versionTag"/>
+	<xsl:param name="versionDistance"/>
+	<xsl:param name="versionHash"/>
 	
 	<xsl:output 
 		method="xml" 
@@ -49,8 +53,13 @@
 						<xsl:value-of select="m:title"/>
 					</h1>
 				
-					<!-- TODO: remove hardcoded warning, use version from mercurial -->
-					<p style="text-align: center">&lt;DRAFT&gt; Please note that this is a draft version. Stay tuned for v1.0.0! &lt;/DRAFT&gt;</p>
+					<p style="text-align: center">
+						<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>
+					</p>
 				
 					<p>
 						<xsl:value-of select="m:preamble"/>