mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
49964a552b
commit
f28280db99
1 changed files with 6 additions and 5 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue