diff options
Diffstat (limited to 'xslt/manualcsv2xml.xslt')
-rw-r--r-- | xslt/manualcsv2xml.xslt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt index 1ad96510f..58f04fc98 100644 --- a/xslt/manualcsv2xml.xslt +++ b/xslt/manualcsv2xml.xslt @@ -166,9 +166,9 @@ <divecomputerid deviceid="ffffffff" model="csv" /> - <xsl:if test="$locationField != '' or $gpsField != ''"> + <xsl:if test="$locationField >= 0 or $gpsField >= 0"> <location> - <xsl:if test="$gpsField != ''"> + <xsl:if test="$gpsField >= 0"> <xsl:attribute name="gps"> <xsl:call-template name="getFieldByIndex"> <xsl:with-param name="index" select="$gpsField"/> @@ -176,7 +176,7 @@ </xsl:call-template> </xsl:attribute> </xsl:if> - <xsl:if test="$locationField != ''"> + <xsl:if test="$locationField >= 0"> <xsl:call-template name="getFieldByIndex"> <xsl:with-param name="index" select="$locationField"/> <xsl:with-param name="line" select="$line"/> |