Changeset 2ce1b4e in subsurface


Ignore:
Timestamp:
Dec 31, 2016, 3:27:41 AM (8 months ago)
Author:
Miika Turkia <miika.turkia@…>
Branches:
master
Children:
e70d271d
Parents:
8766054
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/av1.xslt

    r25ce819a r2ce1b4e  
    4545    <xsl:param name="remaining"/>
    4646
    47     <!-- For now, parse only depth values - they are numeric -->
    48     <xsl:if test="string(number(substring($line, 1, 1))) != 'NaN'">
    49       <xsl:call-template name="printFields">
    50         <xsl:with-param name="line" select="$line"/>
    51         <xsl:with-param name="lineno" select="'0'"/>
    52       </xsl:call-template>
    53     </xsl:if>
     47    <xsl:choose>
     48      <xsl:when test="string(number(substring($line, 1, 1))) != 'NaN'">
     49        <xsl:call-template name="printFields">
     50          <xsl:with-param name="line" select="$line"/>
     51          <xsl:with-param name="lineno" select="'0'"/>
     52        </xsl:call-template>
     53      </xsl:when>
     54      <xsl:otherwise>
     55        <xsl:choose>
     56          <xsl:when test="substring-before($line, '=') = 'DiveMode'">
     57            <xsl:attribute name="dctype">
     58              <xsl:value-of select="substring-before(substring-after($line, '= '), ' ')"/>
     59            </xsl:attribute>
     60          </xsl:when>
     61        </xsl:choose>
     62      </xsl:otherwise>
     63    </xsl:choose>
    5464
    5565    <xsl:if test="$remaining != ''">
Note: See TracChangeset for help on using the changeset viewer.