Signed-off-by: Miika Turkia <[email protected]>
---
 xslt/csv2xml.xslt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index a1b96c0..e0aca49 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -235,8 +235,7 @@
                       <xsl:value-of select="substring-before($value, '.') * 60 
+ substring(substring-after($value, '.') * 60, 1, 2)" />
                     </xsl:when>
                     <xsl:when test="substring-after($value, ',') != ''">
-                      <!-- Well, I suppose it was min.sec -->
-                      <xsl:value-of select="substring-before($value, ',') * 60 
+ substring-after($value, ',')" />
+                      <xsl:value-of select="substring-before($value, ',') * 60 
+ substring(substring-after($value, ',') * 60, 1, 2)" />
                     </xsl:when>
                     <xsl:otherwise>
                       <xsl:value-of select="$value"/>
-- 
2.5.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to