mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
24ac35e107
commit
7367ccfb09
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue