summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-05-07 21:22:00 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-07 21:36:50 -0700
commitccf916344b7f91934cf5fa2aaf949b786fe1f3c1 (patch)
tree122258a2e49f6f47a9ae088700201793211798d1 /xslt
parentd7cf3408e5d2f8c7f5ce25fa2b330cc3e75ff489 (diff)
downloadsubsurface-ccf916344b7f91934cf5fa2aaf949b786fe1f3c1.tar.gz
Include some extradata info on Seabear import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/csv2xml.xslt27
1 files changed, 27 insertions, 0 deletions
diff --git a/xslt/csv2xml.xslt b/xslt/csv2xml.xslt
index efe7c37ef..e3864025e 100644
--- a/xslt/csv2xml.xslt
+++ b/xslt/csv2xml.xslt
@@ -28,6 +28,9 @@
<xsl:param name="hw" select="hw"/>
<xsl:param name="diveNro" select="diveNro"/>
<xsl:param name="diveMode" select="diveMode"/>
+ <xsl:param name="Firmware" select="Firmware"/>
+ <xsl:param name="Serial" select="Serial"/>
+ <xsl:param name="GF" select="GF"/>
<xsl:output method="xml" indent="yes"/>
<xsl:variable name="lf"><xsl:text>
@@ -162,6 +165,30 @@
</xsl:if>
</xsl:if>
+ <xsl:if test="string-length($Firmware) &gt; 0">
+ <extradata key="Firmware version">
+ <xsl:attribute name="Value">
+ <xsl:value-of select="$Firmware"/>
+ </xsl:attribute>
+ </extradata>
+ </xsl:if>
+
+ <xsl:if test="string-length($Serial) &gt; 0">
+ <extradata key="Serial number">
+ <xsl:attribute name="Value">
+ <xsl:value-of select="$Serial"/>
+ </xsl:attribute>
+ </extradata>
+ </xsl:if>
+
+ <xsl:if test="string-length($GF) &gt; 0">
+ <extradata key="Gradient factors">
+ <xsl:attribute name="Value">
+ <xsl:value-of select="$GF"/>
+ </xsl:attribute>
+ </extradata>
+ </xsl:if>
+
<xsl:call-template name="printLine">
<xsl:with-param name="line" select="substring-before(//csv, $lf)"/>
<xsl:with-param name="lineno" select="'1'"/>