mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
AV1 import: parse dive mode
This is tested only with OC and requires that other modes use compatible terms for the mode. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
8766054581
commit
2ce1b4e668
1 changed files with 17 additions and 7 deletions
|
@ -44,13 +44,23 @@
|
|||
<xsl:param name="lineno"/>
|
||||
<xsl:param name="remaining"/>
|
||||
|
||||
<!-- For now, parse only depth values - they are numeric -->
|
||||
<xsl:if test="string(number(substring($line, 1, 1))) != 'NaN'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="string(number(substring($line, 1, 1))) != 'NaN'">
|
||||
<xsl:call-template name="printFields">
|
||||
<xsl:with-param name="line" select="$line"/>
|
||||
<xsl:with-param name="lineno" select="'0'"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</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:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:if test="$remaining != ''">
|
||||
<xsl:call-template name="printLine">
|
||||
|
|
Loading…
Reference in a new issue