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>
This commit is contained in:
Linus Torvalds 2012-05-11 14:13:45 -07:00
parent 7f426f0c5e
commit 12f2c2ed5c

View file

@ -62,9 +62,14 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<notes>
<xsl:if test="LOGNOTES != ''"> <xsl:if test="LOGNOTES != ''">
<xsl:value-of select="LOGNOTES" /> <xsl:value-of select="LOGNOTES" />
</xsl:if> </xsl:if>
<xsl:if test="WEATHER != ''">
Weather: <xsl:value-of select="WEATHER" />
</xsl:if>
</notes>
<!-- FIXME: add support for multiple cylinders, need sample data --> <!-- FIXME: add support for multiple cylinders, need sample data -->
<cylinder> <cylinder>