]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix dive notes import from Suundo SDM
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 May 2012 21:13:45 +0000 (14:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 May 2012 21:21:19 +0000 (14:21 -0700)
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>
xslt/SuuntoSDM.xslt

index 45c151209bb2004af4dd46e81ed6f306a31b0d24..391bdf8c4d33f23ecbd8279cf973d1eed9877a0f 100644 (file)
         </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>