summaryrefslogtreecommitdiffstats
path: root/xslt/DivingLog.xslt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-26 11:15:06 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-26 11:16:41 -0800
commit5cea16ec509bdca4d9410aea193277fa42fba1a4 (patch)
tree9501138d23ebe250b6e6b61acad2c61ab3f74600 /xslt/DivingLog.xslt
parent42fa5a6368a3cc25b804b7dff769b806e86113ac (diff)
downloadsubsurface-5cea16ec509bdca4d9410aea193277fa42fba1a4.tar.gz
Another update to DivingLog import
This fixes two bugs: - we overwrote the max depth that we read from an XML file with 0 if there are no samples - we didn't parse the DepthAvg tag in the DivingLog XML Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/DivingLog.xslt')
-rw-r--r--xslt/DivingLog.xslt5
1 files changed, 5 insertions, 0 deletions
diff --git a/xslt/DivingLog.xslt b/xslt/DivingLog.xslt
index 4a6b4d387..ced6a4e80 100644
--- a/xslt/DivingLog.xslt
+++ b/xslt/DivingLog.xslt
@@ -47,6 +47,11 @@
<xsl:value-of select="concat(Depth, ' m')"/>
</xsl:attribute>
</xsl:if>
+ <xsl:if test="DepthAvg != ''">
+ <xsl:attribute name="mean">
+ <xsl:value-of select="concat(DepthAvg, ' m')"/>
+ </xsl:attribute>
+ </xsl:if>
</depth>
<location>