summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2016-07-28 06:39:01 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-28 04:55:39 -0700
commit0e3117108736553e4921d6b493baa1005be39e2b (patch)
treeed83b455d3dac2d97b70ac1ad8c31db04b4a3389 /xslt
parente80b03699d5e553a8eb7da1f6fdccd8daf677cf2 (diff)
downloadsubsurface-0e3117108736553e4921d6b493baa1005be39e2b.tar.gz
Fix cylinder pressure for UDDF export
Fixes #1086 Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/uddf-export.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index 42dbbf0b9..53e1e84a7 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -329,7 +329,7 @@
</xsl:when>
<xsl:otherwise>
<tankpressurebegin>
- <xsl:value-of select="substring-before(divecomputer[1]/sample[@pressure]/@pressure[1], ' ') * 100000"/>
+ <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure]/@pressure[1], ' ') * 100000"/>
</tankpressurebegin>
</xsl:otherwise>
</xsl:choose>
@@ -342,7 +342,7 @@
</xsl:when>
<xsl:otherwise>
<tankpressureend>
- <xsl:value-of select="substring-before(divecomputer[1]/sample[@pressure][last()]/@pressure, ' ') * 100000"/>
+ <xsl:value-of select="substring-before(../divecomputer[1]/sample[@pressure][last()]/@pressure[1], ' ') * 100000"/>
</tankpressureend>
</xsl:otherwise>
</xsl:choose>