summaryrefslogtreecommitdiffstats
path: root/xslt/SuuntoSDM.xslt
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-05-11 14:13:45 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-05-11 14:21:19 -0700
commit12f2c2ed5cbf45f13c63af4eb778833cd21e8ce4 (patch)
tree82fb562eab41066b3f729c880e63d755855e38ce /xslt/SuuntoSDM.xslt
parent7f426f0c5eb7fa57bf0ffd563f04445e7bc55262 (diff)
downloadsubsurface-12f2c2ed5cbf45f13c63af4eb778833cd21e8ce4.tar.gz
Fix dive notes import from Suundo SDM
The xslt translation didn't add the <notes> tag for the notes, so while it did select the notes from the SDM file, that never made it into the subsurface notes. Also added weather info to the notes, mainly as an example. There are probably other things we could do, but this fixes at least the trivial test-case from Szymon Kosecki. Reported-by: Szymon Kosecki <skosecki@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'xslt/SuuntoSDM.xslt')
-rw-r--r--xslt/SuuntoSDM.xslt5
1 files changed, 5 insertions, 0 deletions
diff --git a/xslt/SuuntoSDM.xslt b/xslt/SuuntoSDM.xslt
index 45c151209..391bdf8c4 100644
--- a/xslt/SuuntoSDM.xslt
+++ b/xslt/SuuntoSDM.xslt
@@ -62,9 +62,14 @@
</xsl:otherwise>
</xsl:choose>
+ <notes>
<xsl:if test="LOGNOTES != ''">
<xsl:value-of select="LOGNOTES" />
</xsl:if>
+ <xsl:if test="WEATHER != ''">
+ Weather: <xsl:value-of select="WEATHER" />
+ </xsl:if>
+ </notes>
<!-- FIXME: add support for multiple cylinders, need sample data -->
<cylinder>