summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/csv2xml.xslt11
1 files changed, 10 insertions, 1 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index 903f45535..0f8362936 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -30,6 +30,7 @@
<xsl:choose>
<xsl:when test="$separatorIndex = 0"><xsl:text> </xsl:text></xsl:when>
<xsl:when test="$separatorIndex = 2"><xsl:text>;</xsl:text></xsl:when>
+ <xsl:when test="$separatorIndex = 3"><xsl:text>|</xsl:text></xsl:when>
<xsl:otherwise><xsl:text>,</xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:variable>
@@ -165,7 +166,15 @@
<xsl:call-template name="sec2time">
<xsl:with-param name="timeSec">
- <xsl:value-of select="$value"/>
+ <xsl:choose>
+ <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:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$value"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:with-param>
</xsl:call-template>
</xsl:when>