diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2018-02-15 06:28:21 +0200 |
---|---|---|
committer | mturkia <miika.turkia@gmail.com> | 2018-02-15 17:54:05 +0200 |
commit | 006e00ebc44c7698104795c22b963d00f664ef84 (patch) | |
tree | 00bc964d212fa7f5e4b9a4fa15d37c17b30806b5 | |
parent | f8360eedddeb711e2fe476f1b5d94724e7838d51 (diff) | |
download | subsurface-006e00ebc44c7698104795c22b963d00f664ef84.tar.gz |
Case insensitive string comparison for units
Not really surprising, but a sample log that I received used different
case for unit than I had expected.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-rw-r--r-- | xslt/udcf.xslt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/udcf.xslt b/xslt/udcf.xslt index 9f617bba2..b39d0267a 100644 --- a/xslt/udcf.xslt +++ b/xslt/udcf.xslt @@ -33,7 +33,7 @@ <xsl:template match="DIVE|dive"> <xsl:variable name="units"> <xsl:choose> - <xsl:when test="//units|//UNITS = 'imperial'"> + <xsl:when test="translate(//units|//UNITS, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'imperial'"> <xsl:value-of select="'Imperial'"/> </xsl:when> <xsl:otherwise> |