Fixed airtemperature in UDDF export.

The XSLT didn't expect the temperature tag to be within the
<divecomputer> element in the source, so the selection wasn't finding
it.

Signed-off-by: Marton Long <martin@longhome.co.uk>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Martin Long 2014-12-09 23:24:53 +00:00 committed by Dirk Hohndel
parent f460ef581a
commit 7ea27a2d88

View file

@ -203,11 +203,13 @@
<dive id="{generate-id(.)}">
<informationbeforedive>
<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">
<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>
<datetime>
<xsl:value-of select="concat(./@date, 'T', ./@time)"/>
</datetime>