[PATCH 11/11] Fix detection of numeric field
Miika Turkia
miika.turkia at gmail.com
Sat Jan 24 07:03:18 PST 2015
Discarding header lines was faulty as the test whether dive number was
numeric did not work properly.
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
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
More information about the subsurface
mailing list