summaryrefslogtreecommitdiffstats
path: root/xslt/csv2xml.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/csv2xml.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'"/>