aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2020-05-04 07:57:54 +0300
committerGravatar Robert C. Helling <helling@atdotde.de>2020-05-04 10:43:40 +0200
commit05177cfc145d264ff99b7a0bf9e395862caf2435 (patch)
treeb915d51f90e188ae71ab2dfef351eea957573828 /xslt
parente1c3f29b889456977d8cd73596f7395c93268e3c (diff)
downloadsubsurface-05177cfc145d264ff99b7a0bf9e395862caf2435.tar.gz
CSV export: include dive mode field
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/manualcsv2xml.xslt12
1 files changed, 11 insertions, 1 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index b899d0655..e0eafc0b6 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -15,6 +15,7 @@
<xsl:param name="gpsField" select="gpsField"/>
<xsl:param name="maxDepthField" select="maxDepthField"/>
<xsl:param name="meanDepthField" select="meanDepthField"/>
+ <xsl:param name="modeField" select="modeField"/>
<xsl:param name="divemasterField" select="divemasterField"/>
<xsl:param name="buddyField" select="buddyField"/>
<xsl:param name="suitField" select="suitField"/>
@@ -225,7 +226,16 @@
</xsl:attribute>
</xsl:if>
- <divecomputer deviceid="ffffffff" model="csv" />
+ <divecomputer deviceid="ffffffff" model="csv">
+ <xsl:if test="$modeField >= 0">
+ <xsl:attribute name="dctype">
+ <xsl:call-template name="getFieldByIndex">
+ <xsl:with-param name="index" select="$modeField"/>
+ <xsl:with-param name="line" select="$line"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ </xsl:if>
+ </divecomputer>
<xsl:if test="$locationField &gt;= 0 or $gpsField &gt;= 0">
<location>