summaryrefslogtreecommitdiffstats
path: root/xslt/DivingLog.xslt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-26 11:48:13 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-26 11:51:35 -0800
commit881baafc26b651028dd49091ca9eb8b920f7d5d8 (patch)
tree52b49fb27673acdc8d57a18f75256a48d65bf5e8 /xslt/DivingLog.xslt
parent6d69325185374dfcff13108ad182e67a60542ef1 (diff)
downloadsubsurface-881baafc26b651028dd49091ca9eb8b920f7d5d8.tar.gz
DivingLog import: keep the dive computer name around
We simply set up the model attribute. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/DivingLog.xslt')
-rw-r--r--xslt/DivingLog.xslt9
1 files changed, 8 insertions, 1 deletions
diff --git a/xslt/DivingLog.xslt b/xslt/DivingLog.xslt
index ced6a4e80..9c17f2c74 100644
--- a/xslt/DivingLog.xslt
+++ b/xslt/DivingLog.xslt
@@ -148,6 +148,13 @@
<xsl:value-of select="Comments"/>
</notes>
+ <divecomputer>
+ <xsl:if test="Computer != ''">
+ <xsl:attribute name="model">
+ <xsl:value-of select="Computer"/>
+ </xsl:attribute>
+ </xsl:if>
+
<xsl:for-each select="Profile/P">
<sample>
<xsl:attribute name="time">
@@ -179,7 +186,7 @@
</sample>
</xsl:for-each>
-
+ </divecomputer>
</dive>