mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
f460ef581a
commit
7ea27a2d88
1 changed files with 7 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue