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.
---
 xslt/uddf-export.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index 0488258..ff9f364 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>
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to