diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-12 12:21:32 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-12 12:21:32 -0700 |
commit | 36e4abf8c0aaee9ab61f65a0928073ab2bc2f132 (patch) | |
tree | e1b5c9b54581cf5fd54818dc8fa2c793e13521a9 /xslt | |
parent | 8a58dae3ae028bc1849a4d60930f10de7b67228a (diff) | |
download | subsurface-36e4abf8c0aaee9ab61f65a0928073ab2bc2f132.tar.gz |
Suunto SDE updates, take 178: add weight and visibility info
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>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/SuuntoSDM.xslt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xslt/SuuntoSDM.xslt b/xslt/SuuntoSDM.xslt index 64564adf1..ed130ae2c 100644 --- a/xslt/SuuntoSDM.xslt +++ b/xslt/SuuntoSDM.xslt @@ -62,6 +62,14 @@ </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 --> |