]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Suunto SDE updates, take 178: add weight and visibility info
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 12 May 2012 19:21:32 +0000 (12:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 12 May 2012 19:21:32 +0000 (12:21 -0700)
This converts the weight information into subsurface weights, and also
adds visibility info (if it exists) into the notes for the dive.

More fall-out from me looking at the nasty suunto xml files, now that I
have a few that actually have some info that isn't just from the
computer download.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
xslt/SuuntoSDM.xslt

index 64564adf1b6b5a375cc377ef4f5767b698055a61..ed130ae2c79d025b7c9d558e6c00c7a9077038f9 100644 (file)
         </xsl:otherwise>
       </xsl:choose>
 
+      <xsl:if test="WEIGTH != ''">
+        <weightsystem>
+          <xsl:attribute name="weight">
+            <xsl:value-of select="concat(WEIGTH, ' kg')"/>
+          </xsl:attribute>
+        </weightsystem>
+      </xsl:if>
+
       <notes>
       <xsl:if test="LOGNOTES != ''">
         <xsl:value-of select="LOGNOTES" />
@@ -69,6 +77,9 @@
       <xsl:if test="WEATHER != ''">
         Weather: <xsl:value-of select="WEATHER" />
       </xsl:if>
+      <xsl:if test="WATERVISIBILITYDESC != ''">
+        Visibility: <xsl:value-of select="WATERVISIBILITYDESC" />
+      </xsl:if>
       </notes>
 
 <!-- FIXME: add support for multiple cylinders, need sample data -->