diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-03-26 10:25:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-26 12:52:39 -0700 |
commit | 5533cd749fb081df9897aae1d9787fbadcb416ff (patch) | |
tree | 2c485cd0fe004bd64f3eb3d86a3fc5f06f36ce61 /xslt | |
parent | ac5881c3fe852ba0fbadadf09d7fe0cbb6255a1b (diff) | |
download | subsurface-5533cd749fb081df9897aae1d9787fbadcb416ff.tar.gz |
Fix end pressure on DLD export
While working on UDDF export I noticed that the grabbing of last
sample pressure was not working properly. This will fix it for DLD
export.
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/divelogs-export.xslt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 00f603716..d09f503ab 100644 --- a/xslt/divelogs-export.xslt +++ b/xslt/divelogs-export.xslt @@ -57,10 +57,7 @@ <CYLINDERENDPRESSURE> <xsl:choose> <xsl:when test="count(node()/sample[@pressure!='']) > 0"> - <xsl:variable name="samples"> - <xsl:value-of select="count(node()/sample[@pressure!=''])"/> - </xsl:variable> - <xsl:value-of select="node()/sample[position() = $samples]/@pressure"/> + <xsl:value-of select="node()/sample[@pressure][last()]/@pressure"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="cylinder[1]/@end"/> |