[PATCH 4/4] Set the number of o2 sensors on a CSV import
Anton Lundin
glance at acc.umu.se
Sat Jun 27 14:38:13 PDT 2015
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
xslt/csv2xml.xslt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index e13d0a9..92542c2 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -45,6 +45,9 @@
<divecomputer model="Imported from CSV" deviceid="ffffffff">
<xsl:if test="$po2Field >= 0 or $o2sensor1Field >= 0 or $o2sensor2Field >= 0 or $o2sensor3Field >= 0">
<xsl:attribute name="dctype">CCR</xsl:attribute>
+ <xsl:attribute name="no_o2sensors">
+ <xsl:copy-of select="number($o2sensor1Field >= 0) + number($o2sensor2Field >= 0) + number($o2sensor3Field >= 0)" />
+ </xsl:attribute>
</xsl:if>
<xsl:call-template name="printLine">
<xsl:with-param name="line" select="substring-before(//csv, $lf)"/>
--
2.1.4
More information about the subsurface
mailing list