diff options
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/manualcsv2xml.xslt | 12 |
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 >= 0 or $gpsField >= 0"> <location> |