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>
This commit is contained in:
Miika Turkia 2014-12-13 22:00:29 +02:00 committed by Dirk Hohndel
parent cb576e49d3
commit b694e960b7

View file

@ -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(..)}"/>