Changeset f28280d in subsurface


Ignore:
Timestamp:
Jan 1, 2017, 2:59:34 AM (6 months ago)
Author:
Miika Turkia <miika.turkia@…>
Branches:
master
Children:
9b9d065
Parents:
49964a5
git-author:
Miika Turkia <miika.turkia@…> (01/01/17 01:59:25)
git-committer:
Miika Turkia <miika.turkia@…> (01/01/17 02:59:34)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/av1.xslt

    r49964a5 rf28280d  
    2828              <xsl:value-of select="$hw" />
    2929            </xsl:attribute>
     30
     31            <xsl:if test="substring-before(//AV1, 'DiveMode=') != ''">
     32              <xsl:attribute name="dctype">
     33                <xsl:value-of select="substring-before(substring-after(//AV1, 'DiveMode= '), ' ')"/>
     34              </xsl:attribute>
     35            </xsl:if>
    3036
    3137            <xsl:call-template name="printLine">
     
    6268      <xsl:otherwise>
    6369        <xsl:choose>
    64           <xsl:when test="substring-before($line, '=') = 'DiveMode'">
    65             <xsl:attribute name="dctype">
    66               <xsl:value-of select="substring-before(substring-after($line, '= '), ' ')"/>
    67             </xsl:attribute>
    68           </xsl:when>
    6970          <xsl:when test="substring-before($line, '=') = 'Alert'">
    7071            <event>
Note: See TracChangeset for help on using the changeset viewer.