Divelogs.de integration update

Adding temp support for divelogs.de import/export.

Adding export of divecomputer model to divelogs.de export

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2024-02-27 21:55:01 +02:00 committed by Dirk Hohndel
parent c3aa505f2b
commit 4642f12e29
2 changed files with 20 additions and 0 deletions

View file

@ -23,6 +23,11 @@
<TIME> <TIME>
<xsl:value-of select="@time"/> <xsl:value-of select="@time"/>
</TIME> </TIME>
<xsl:if test="divecomputer/@model != ''">
<COMPUTERMODEL>
<xsl:value-of select="divecomputer/@model"/>
</COMPUTERMODEL>
</xsl:if>
<xsl:variable name="duration"> <xsl:variable name="duration">
<xsl:call-template name="time2sec"> <xsl:call-template name="time2sec">
@ -385,6 +390,11 @@
<DEPTH> <DEPTH>
<xsl:value-of select="substring-before(./@depth, ' ')"/> <xsl:value-of select="substring-before(./@depth, ' ')"/>
</DEPTH> </DEPTH>
<xsl:if test="./@temp != ''">
<TEMP>
<xsl:value-of select="substring-before(./@temp, ' ')"/>
</TEMP>
</xsl:if>
</SAMPLE> </SAMPLE>
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
@ -394,6 +404,11 @@
<DEPTH> <DEPTH>
<xsl:value-of select="substring-before(./@depth, ' ')"/> <xsl:value-of select="substring-before(./@depth, ' ')"/>
</DEPTH> </DEPTH>
<xsl:if test="./@temp != ''">
<TEMP>
<xsl:value-of select="substring-before(./@temp, ' ')"/>
</TEMP>
</xsl:if>
</SAMPLE> </SAMPLE>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>

View file

@ -162,6 +162,11 @@
<xsl:attribute name="depth"> <xsl:attribute name="depth">
<xsl:value-of select="concat(., ' m')"/> <xsl:value-of select="concat(., ' m')"/>
</xsl:attribute> </xsl:attribute>
<xsl:if test="../TEMP != ''">
<xsl:attribute name="temp">
<xsl:value-of select="../TEMP"/>
</xsl:attribute>
</xsl:if>
</sample> </sample>
</xsl:for-each> </xsl:for-each>