summaryrefslogtreecommitdiffstats
path: root/xslt/av1.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-01-01 10:43:16 +0200
committerGravatar Miika Turkia <miika.turkia@gmail.com>2017-01-01 10:43:16 +0200
commit47d77bc89417490c683ee05dd7921e203e598d53 (patch)
treef5e09c6b5ad2d7319a1f4924b1cd2518037b6e36 /xslt/av1.xslt
parente70d271d440052b9504b5b66593476d298b57eea (diff)
downloadsubsurface-47d77bc89417490c683ee05dd7921e203e598d53.tar.gz
AV1 import: move tag definition for future changes
This should allow us to add different attributes to the samples while parsing the log. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt/av1.xslt')
-rw-r--r--xslt/av1.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/av1.xslt b/xslt/av1.xslt
index 015832fa9..bf38ddd65 100644
--- a/xslt/av1.xslt
+++ b/xslt/av1.xslt
@@ -46,10 +46,12 @@
<xsl:choose>
<xsl:when test="string(number(substring($line, 1, 1))) != 'NaN'">
+ <sample>
<xsl:call-template name="printFields">
<xsl:with-param name="line" select="$line"/>
<xsl:with-param name="lineno" select="'0'"/>
</xsl:call-template>
+ </sample>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
@@ -91,7 +93,6 @@
<xsl:with-param name="line" select="$line"/>
</xsl:call-template>
</xsl:variable>
- <sample>
<xsl:attribute name="time">
<xsl:value-of select="substring-before($value, ':') * 60 + substring-after($value, ':')" />
</xsl:attribute>
@@ -105,7 +106,6 @@
<xsl:attribute name="depth">
<xsl:value-of select="translate($depth, ',', '.')"/>
</xsl:attribute>
- </sample>
</xsl:template>
</xsl:stylesheet>