metatools/sysdeftools/lib/joinsysdef-module.xsl
changeset 639 0e65f93be3cb
parent 624 f70b728ea30c
child 660 66ff3e731c60
--- a/metatools/sysdeftools/lib/joinsysdef-module.xsl	Fri Aug 27 14:50:55 2010 +0100
+++ b/metatools/sysdeftools/lib/joinsysdef-module.xsl	Mon Sep 06 09:57:24 2010 +0100
@@ -215,7 +215,8 @@
 
 <xsl:template name="compare-versions"><xsl:param name="v1"/><xsl:param name="v2"/>
 			<xsl:choose>
-				<xsl:when test="$v1=$v2"><xsl:value-of select="$v1"/></xsl:when>
+				<xsl:when test="$v1=''"><xsl:value-of select="$v2"/></xsl:when>
+				<xsl:when test="$v1=$v2 or $v2=''"><xsl:value-of select="$v1"/></xsl:when>
 				<xsl:when test="substring-before($v1,'.') &gt; substring-before($v2,'.')"><xsl:value-of select="$v1"/></xsl:when>
 				<xsl:when test="substring-before($v1,'.') &lt; substring-before($v2,'.')"><xsl:value-of select="$v2"/></xsl:when>
 				<xsl:when test="substring-before(substring-after($v1,'.'),'.') &gt; substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when>