summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-01-01 11:59:25 +0200
committerGravatar Miika Turkia <miika.turkia@gmail.com>2017-01-01 12:59:34 +0200
commitf28280db999d07ba7e2e736cd1f4b03576e08fc7 (patch)
treecf625599d6ba972bdfde7abbc3d0f6d468c2219c /xslt
parent49964a552beeca9621acbdc8bdcc7629fd077713 (diff)
downloadsubsurface-f28280db999d07ba7e2e736cd1f4b03576e08fc7.tar.gz
AV1 import: move dcmode detection
We need to set the attributes before we can start parsing other tags, as cylinder. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/av1.xslt11
1 files changed, 6 insertions, 5 deletions
diff --git a/xslt/av1.xslt b/xslt/av1.xslt
index 740eadd20..bcd558628 100644
--- a/xslt/av1.xslt
+++ b/xslt/av1.xslt
@@ -28,6 +28,12 @@
<xsl:value-of select="$hw" />
</xsl:attribute>
+ <xsl:if test="substring-before(//AV1, 'DiveMode=') != ''">
+ <xsl:attribute name="dctype">
+ <xsl:value-of select="substring-before(substring-after(//AV1, 'DiveMode= '), ' ')"/>
+ </xsl:attribute>
+ </xsl:if>
+
<xsl:call-template name="printLine">
<xsl:with-param name="line" select="substring-before(//AV1, $lf)"/>
<xsl:with-param name="lineno" select="'1'"/>
@@ -61,11 +67,6 @@
</xsl:when>
<xsl:otherwise>
<xsl:choose>
- <xsl:when test="substring-before($line, '=') = 'DiveMode'">
- <xsl:attribute name="dctype">
- <xsl:value-of select="substring-before(substring-after($line, '= '), ' ')"/>
- </xsl:attribute>
- </xsl:when>
<xsl:when test="substring-before($line, '=') = 'Alert'">
<event>
<xsl:attribute name="time">