summaryrefslogtreecommitdiffstats
path: root/xslt/uddf-export.xslt
diff options
context:
space:
mode:
authorGravatar Martin Long <martin@longhome.co.uk>2014-12-09 23:24:50 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-10 08:14:44 -0700
commit7367ccfb095497f3d5b52daade1b281195d4e81e (patch)
treec0ac66223d3a1df93c984f72f63092e679501c31 /xslt/uddf-export.xslt
parent24ac35e1078eff404391a506f5518960d357b408 (diff)
downloadsubsurface-7367ccfb095497f3d5b52daade1b281195d4e81e.tar.gz
Fix gasdefinitons in UDDF export
Selection of <cylinder> elements wasn't working where dives are part of a trip. Change the selection so that it will select all cylinders whether or not the dive is part of a trip. Signed-off-by: Marton Long <martin@longhome.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/uddf-export.xslt')
-rw-r--r--xslt/uddf-export.xslt2
1 files changed, 1 insertions, 1 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index d80e637ed..78c344e51 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -93,7 +93,7 @@
<!-- Define all the unique gases found in the dive log -->
<gasdefinitions>
<!-- Get unique gas mixes from all the recorded dives -->
- <xsl:for-each select="dive/cylinder[generate-id() = generate-id(key('gases', concat(substring-before(@o2, '.'), '/', substring-before(@he, '.')))[1])]">
+ <xsl:for-each select="//dive/cylinder[generate-id() = generate-id(key('gases', concat(substring-before(@o2, '.'), '/', substring-before(@he, '.')))[1])]">
<xsl:variable name="o2">
<xsl:choose>