diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2020-05-21 19:18:02 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-26 11:33:10 -0700 |
commit | 0acf8721d37d17e6d5a3151796733ac0c58f8a99 (patch) | |
tree | b6eda6aa82314909590e68e1e18fc72e99a80719 /xslt | |
parent | 5a7e11b0bcb7efa7286f3194a8f3a75abcb8f5ab (diff) | |
download | subsurface-0acf8721d37d17e6d5a3151796733ac0c58f8a99.tar.gz |
Trip support for CSV export of dive details
Debugging the tests with new test dive, I noticed that CSV export does
not work, if the exported XML includes trips.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to '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 324964a99..04f23003d 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"> + <xsl:for-each select="dive/cylinder|trip/dive/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"> + <xsl:for-each select="dive/cylinder|trip/dive/cylinder"> <xsl:value-of select="concat( '"cylinder size (l)"', $fs, |