summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt')
-rw-r--r--xslt/xml2manualcsv.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 04f23003d..af5d65220 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -38,7 +38,7 @@
$fs)"/>
<!-- Print cylinder info according to the amount of cylinders in dive -->
- <xsl:for-each select="dive/cylinder|trip/dive/cylinder">
+ <xsl:for-each select="dive[position()=last()]/cylinder|trip[position()=last()]/dive[position()=last()]/cylinder">
<xsl:value-of select="concat(
'&quot;cylinder size (cuft)&quot;',
$fs,
@@ -100,7 +100,7 @@
$fs)"/>
<!-- Print cylinder info according to the amount of cylinders in dive -->
- <xsl:for-each select="dive/cylinder|trip/dive/cylinder">
+ <xsl:for-each select="dive[position()=last()]/cylinder|trip[position()=last()]/dive[position()=last()]/cylinder">
<xsl:value-of select="concat(
'&quot;cylinder size (l)&quot;',
$fs,