1 <?xml version='
1.0'
?> <!--*- mode: xml -*-->
2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
4 xmlns=
"http://www.w3.org/TR/xhtml1/transitional"
5 exclude-result-prefixes=
"#default">
6 <xsl:template name=
"version-greater-or-equal">
7 <xsl:param name=
"ver1"></xsl:param>
8 <xsl:param name=
"ver2"></xsl:param>
9 <xsl:variable name=
"vp1">
11 <xsl:when test=
"contains($ver1, '.')">
12 <xsl:value-of select=
"substring-before($ver1, '.')"/>
15 <xsl:value-of select=
"$ver1"/>
19 <xsl:variable name=
"vp2">
21 <xsl:when test=
"contains($ver2, '.')">
22 <xsl:value-of select=
"substring-before($ver2, '.')"/>
25 <xsl:value-of select=
"$ver2"/>
30 <xsl:when test=
"$vp1 > $vp2">
33 <xsl:when test=
"$vp1 < $vp2">
36 <xsl:when test=
"$vp1 = $vp2">
38 <xsl:when test=
"contains($ver1, '.') and contains($ver2, '.')">
39 <xsl:call-template name=
"version-greater-or-equal">
40 <xsl:with-param name=
"ver1" select=
"substring-after($ver1, '.')"/>
41 <xsl:with-param name=
"ver2" select=
"substring-after($ver2, '.')"/>
44 <xsl:when test=
"contains($ver2, '.')">