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

diff --git a/xslt/xml2csv.xslt b/xslt/xml2csv.xslt
index 86739a6..c452dc2 100644
--- a/xslt/xml2csv.xslt
+++ b/xslt/xml2csv.xslt
@@ -23,7 +23,7 @@
     <xsl:variable name="time">
       <xsl:value-of select="@time"/>
     </xsl:variable>
-    <xsl:for-each select="divecomputer/sample|sample">
+    <xsl:for-each select="divecomputer[1]/sample|sample">
       <xsl:value-of select="concat('&quot;', $number, '&quot;')"/>
       <xsl:value-of select="$fs"/>
       <xsl:value-of select="concat('&quot;', $date, '&quot;')"/>
-- 
1.9.1

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

Reply via email to