summaryrefslogtreecommitdiffstats
path: root/xslt/manualcsv2xml.xslt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 20:19:45 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-06 20:19:45 -0800
commite544796199eb3ec3f12566b471bc60de1b3573f6 (patch)
tree49b6d0d3525451b6d7394f89fe774f05db99f875 /xslt/manualcsv2xml.xslt
parent5a4d85bf7c011aeab2f61ce412fc4cb16980d62d (diff)
downloadsubsurface-e544796199eb3ec3f12566b471bc60de1b3573f6.tar.gz
Add missing divemaster field to the manual import
No idea why I didn't notice earlier that this was missing. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/manualcsv2xml.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 544220a37..877410ba7 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="divemasterField" select="divemasterField"/>
<xsl:param name="buddyField" select="buddyField"/>
<xsl:param name="notesField" select="notesField"/>
<xsl:param name="weightField" select="weightField"/>
@@ -311,6 +312,15 @@
</depth>
</xsl:if>
+ <xsl:if test="$divemasterField >= 0">
+ <divemaster>
+ <xsl:call-template name="getFieldByIndex">
+ <xsl:with-param name="index" select="$divemasterField"/>
+ <xsl:with-param name="line" select="$line"/>
+ </xsl:call-template>
+ </divemaster>
+ </xsl:if>
+
<xsl:if test="$buddyField >= 0">
<buddy>
<xsl:call-template name="getFieldByIndex">