diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2020-05-31 14:30:33 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-31 08:59:47 -0700 |
commit | 8f7c9bc7d1eb979eccae8803a386ae793ac23d14 (patch) | |
tree | 415d602e4d0e6616a67552a468dc3927dc1f1e27 /xslt/xml2manualcsv.xslt | |
parent | eb455fe0d24398b911e55a309d3fc5f5441f6a0b (diff) | |
download | subsurface-8f7c9bc7d1eb979eccae8803a386ae793ac23d14.tar.gz |
Limit cylinders to one dive only
With XSLT we have to be specific if we want to apply cylinder iteration
operation to one dive only. Thus using the last dive as reference when
printing cylinder header.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
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, |