summaryrefslogtreecommitdiffstats
path: root/xslt/uddf-export.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-13 22:00:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-13 13:17:38 -0800
commitb694e960b74ef1662c459b791255818ef5601997 (patch)
tree1bbaf61817a803f827ba388ba00abba6d83aa068 /xslt/uddf-export.xslt
parentcb576e49d3a4aaab450ab5e67ba109bc445fe0d3 (diff)
downloadsubsurface-b694e960b74ef1662c459b791255818ef5601997.tar.gz
Grab manually added air temperature on UDDF export
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/uddf-export.xslt')
-rw-r--r--xslt/uddf-export.xslt10
1 files changed, 4 insertions, 6 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index 03b08dea1..2180a2806 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -256,12 +256,10 @@
<datetime>
<xsl:value-of select="concat(./@date, 'T', ./@time)"/>
</datetime>
- <xsl:for-each select="divecomputer">
- <xsl:if test="temperature/@air|divetemperature/@air != ''">
- <airtemperature>
- <xsl:value-of select="format-number(substring-before(temperature/@air|divetemperature/@air, ' ') + 273.15, '0.00')"/>
- </airtemperature>
- </xsl:if>
+ <xsl:for-each select="divecomputer/temperature/@air|divecomputer/divetemperature/@air|divetemperature/@air">
+ <airtemperature>
+ <xsl:value-of select="format-number(substring-before(., ' ') + 273.15, '0.00')"/>
+ </airtemperature>
</xsl:for-each>
<xsl:if test="parent::trip">
<tripmembership ref="trip{generate-id(..)}"/>