diff options
author | Martin Long <martin@longhome.co.uk> | 2014-12-09 23:24:53 +0000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-10 08:15:07 -0700 |
commit | 7ea27a2d88083b5e705b72b9b5e36db13b824b06 (patch) | |
tree | 744b5e89119d423116ebe995b1c790b2fcd26a49 /xslt/uddf-export.xslt | |
parent | f460ef581a58dfa99875695843f48cc3031b1d45 (diff) | |
download | subsurface-7ea27a2d88083b5e705b72b9b5e36db13b824b06.tar.gz |
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>
Diffstat (limited to 'xslt/uddf-export.xslt')
-rw-r--r-- | xslt/uddf-export.xslt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt index 5037c71e7..6468e8927 100644 --- a/xslt/uddf-export.xslt +++ b/xslt/uddf-export.xslt @@ -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> |