metatools/sysdeftools/lib/joinsysdef-module.xsl
changeset 639 0e65f93be3cb
parent 624 f70b728ea30c
child 660 66ff3e731c60
equal deleted inserted replaced
638:024a31e39848 639:0e65f93be3cb
   213 </xsl:attribute>
   213 </xsl:attribute>
   214 </xsl:template>
   214 </xsl:template>
   215 
   215 
   216 <xsl:template name="compare-versions"><xsl:param name="v1"/><xsl:param name="v2"/>
   216 <xsl:template name="compare-versions"><xsl:param name="v1"/><xsl:param name="v2"/>
   217 			<xsl:choose>
   217 			<xsl:choose>
   218 				<xsl:when test="$v1=$v2"><xsl:value-of select="$v1"/></xsl:when>
   218 				<xsl:when test="$v1=''"><xsl:value-of select="$v2"/></xsl:when>
       
   219 				<xsl:when test="$v1=$v2 or $v2=''"><xsl:value-of select="$v1"/></xsl:when>
   219 				<xsl:when test="substring-before($v1,'.') &gt; substring-before($v2,'.')"><xsl:value-of select="$v1"/></xsl:when>
   220 				<xsl:when test="substring-before($v1,'.') &gt; substring-before($v2,'.')"><xsl:value-of select="$v1"/></xsl:when>
   220 				<xsl:when test="substring-before($v1,'.') &lt; substring-before($v2,'.')"><xsl:value-of select="$v2"/></xsl:when>
   221 				<xsl:when test="substring-before($v1,'.') &lt; substring-before($v2,'.')"><xsl:value-of select="$v2"/></xsl:when>
   221 				<xsl:when test="substring-before(substring-after($v1,'.'),'.') &gt; substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when>
   222 				<xsl:when test="substring-before(substring-after($v1,'.'),'.') &gt; substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when>
   222 				<xsl:when test="substring-before(substring-after($v1,'.'),'.') &lt; substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v2"/></xsl:when>
   223 				<xsl:when test="substring-before(substring-after($v1,'.'),'.') &lt; substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v2"/></xsl:when>
   223 				<xsl:when test="substring-after(substring-after($v1,'.'),'.') &gt; substring-after(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when>
   224 				<xsl:when test="substring-after(substring-after($v1,'.'),'.') &gt; substring-after(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when>