mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 17:13:23 +00:00
Improve testing whether we have temp and depth info
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f8b9d61b92
commit
f8f5e73dae
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@
|
|||
<xsl:value-of select="@duration"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:choose>
|
||||
<xsl:when test="divecomputer[1]/depth != ''">
|
||||
<xsl:when test="divecomputer[1]/depth/@mean|divecomputer[1]/depth/@max != ''">
|
||||
<xsl:apply-templates select="divecomputer[1]/depth"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
@ -46,7 +46,7 @@
|
|||
<xsl:when test="divetemperature/@air|divetemperature/@water != ''">
|
||||
<xsl:apply-templates select="divetemperature"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="divecomputer[1]/temperature != ''">
|
||||
<xsl:when test="divecomputer[1]/temperature/@air|divecomputer[1]/temperature/@water != ''">
|
||||
<xsl:apply-templates select="divecomputer[1]/temperature"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
|
|
Loading…
Add table
Reference in a new issue