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,'.') > substring-before($v2,'.')"><xsl:value-of select="$v1"/></xsl:when> |
220 <xsl:when test="substring-before($v1,'.') > substring-before($v2,'.')"><xsl:value-of select="$v1"/></xsl:when> |
220 <xsl:when test="substring-before($v1,'.') < substring-before($v2,'.')"><xsl:value-of select="$v2"/></xsl:when> |
221 <xsl:when test="substring-before($v1,'.') < substring-before($v2,'.')"><xsl:value-of select="$v2"/></xsl:when> |
221 <xsl:when test="substring-before(substring-after($v1,'.'),'.') > substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when> |
222 <xsl:when test="substring-before(substring-after($v1,'.'),'.') > substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when> |
222 <xsl:when test="substring-before(substring-after($v1,'.'),'.') < substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v2"/></xsl:when> |
223 <xsl:when test="substring-before(substring-after($v1,'.'),'.') < substring-before(substring-after($v2,'.'),'.')"><xsl:value-of select="$v2"/></xsl:when> |
223 <xsl:when test="substring-after(substring-after($v1,'.'),'.') > substring-after(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when> |
224 <xsl:when test="substring-after(substring-after($v1,'.'),'.') > substring-after(substring-after($v2,'.'),'.')"><xsl:value-of select="$v1"/></xsl:when> |