Discarding header lines was faulty as the test whether dive number was
numeric did not work properly.

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

diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index 50fc241..e7f2955 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -85,7 +85,7 @@
       </xsl:choose>
     </xsl:variable>
 
-    <xsl:if test="$number >= 0">
+    <xsl:if test="number($number) = $number">
     <dive>
       <xsl:attribute name="date">
         <xsl:choose>
-- 
1.9.1

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

Reply via email to