diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2020-05-24 17:29:02 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-26 11:33:10 -0700 |
commit | a1c59260bc2ba1fa4ba46f0ace76b40b96bd42bf (patch) | |
tree | 037069ba5b161c5db62afd4f243f6d98e7786dba /xslt | |
parent | a41a8c106519e627f2bb08cabb502a71326b5d57 (diff) | |
download | subsurface-a1c59260bc2ba1fa4ba46f0ace76b40b96bd42bf.tar.gz |
Add dive mode support for SubsurfaceCSV import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/subsurfacecsv.xslt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xslt/subsurfacecsv.xslt b/xslt/subsurfacecsv.xslt index 1aed0e9b2..b0a1b12e9 100644 --- a/xslt/subsurfacecsv.xslt +++ b/xslt/subsurfacecsv.xslt @@ -142,7 +142,15 @@ </xsl:attribute> </xsl:if> - <divecomputerid deviceid="ffffffff" model="csv" /> + <divecomputer deviceid="ffffffff" model="SubsurfaceCSV"> + <xsl:attribute name="dctype"> + <xsl:call-template name="getFieldByIndex"> + <xsl:with-param name="index" select="7"/> + <xsl:with-param name="line" select="$line"/> + </xsl:call-template> + </xsl:attribute> + </divecomputer> + <depth> <xsl:variable name="max"> |