diff options
Diffstat (limited to 'xslt/csv2xml.xslt')
-rw-r--r-- | xslt/csv2xml.xslt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt index 5ce584745..0f8362936 100644 --- a/xslt/csv2xml.xslt +++ b/xslt/csv2xml.xslt @@ -166,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> |