summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-04-24 08:39:20 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-24 06:50:50 -0700
commitc80d1879b75716b47b1d6fb34fc385a08a43e420 (patch)
treee9d3a091aff9299dbbccdc98b4df5de1b17bc224 /xslt
parent415abeea66d180da05bdb5ad31439d6f937d7168 (diff)
downloadsubsurface-c80d1879b75716b47b1d6fb34fc385a08a43e420.tar.gz
Add suit field for CSV import
Fixes #853 [Dirk Hohndel: fixed test compile] Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/manualcsv2xml.xslt10
1 files changed, 10 insertions, 0 deletions
diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index 15eb8f00d..83c543581 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -17,6 +17,7 @@
<xsl:param name="meanDepthField" select="meanDepthField"/>
<xsl:param name="divemasterField" select="divemasterField"/>
<xsl:param name="buddyField" select="buddyField"/>
+ <xsl:param name="suitField" select="suitField"/>
<xsl:param name="notesField" select="notesField"/>
<xsl:param name="weightField" select="weightField"/>
<xsl:param name="dateformat" select="dateformat"/>
@@ -343,6 +344,15 @@
</buddy>
</xsl:if>
+ <xsl:if test="$suitField >= 0">
+ <suit>
+ <xsl:call-template name="getFieldByIndex">
+ <xsl:with-param name="index" select="$suitField"/>
+ <xsl:with-param name="line" select="$line"/>
+ </xsl:call-template>
+ </suit>
+ </xsl:if>
+
<xsl:if test="$notesField >= 0">
<notes>
<xsl:call-template name="getFieldByIndex">