mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Include some extradata info on Seabear import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
d7cf3408e5
commit
ccf916344b
3 changed files with 81 additions and 0 deletions
|
@ -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) > 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) > 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) > 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'"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue