diff options
Diffstat (limited to 'xslt/xml2manualcsv.xslt')
-rw-r--r-- | xslt/xml2manualcsv.xslt | 4 |
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( '"cylinder size (cuft)"', $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( '"cylinder size (l)"', $fs, |