We need to limit the DCs from which we grab the depths. Otherwise, we
end up with too many depth values.

Signed-off-by: Miika Turkia <[email protected]>
---
 xslt/xml2manualcsv.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 93894a7..03e4178 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -28,7 +28,7 @@
     <xsl:text>&quot;</xsl:text>
     <xsl:value-of select="@duration"/>
     <xsl:text>&quot;</xsl:text>
-    <xsl:apply-templates select="divecomputer/depth"/>
+    <xsl:apply-templates select="divecomputer[1]/depth"/>
     <xsl:choose>
       <xsl:when test="divetemperature/@air|divetemperature/@water != ''">
         <xsl:apply-templates select="divetemperature"/>
-- 
1.9.1

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

Reply via email to