summaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-17 07:36:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-16 21:54:46 -0800
commitff338f62c27771b8b8903427be656bc955d2e4da (patch)
tree0190dc810167101e6471b7fbb95fa5081ad09ea0 /xslt/uddf.xslt
parent69784524b27a2b274e2e29d1d47623002ca7bd7f (diff)
downloadsubsurface-ff338f62c27771b8b8903427be656bc955d2e4da.tar.gz
Move the samples inside divecomputer tag on UDDF import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/uddf.xslt')
-rw-r--r--xslt/uddf.xslt14
1 files changed, 7 insertions, 7 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index f9872b7bd..0604b2246 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -247,13 +247,6 @@
</xsl:if>
</temperature>
-
- <divecomputer deviceid="ffffffff">
- <xsl:attribute name="model">
- <xsl:value-of select="/uddf/generator/name|/u:uddf/u:generator/u:name|/u1:uddf/u1:generator/u1:name|/UDDF/history/modified/application/name"/>
- </xsl:attribute>
- </divecomputer>
-
<xsl:if test="equipment_used/tank_used != ''">
<xsl:for-each select="equipment_used/tank_used">
<cylinder>
@@ -318,6 +311,12 @@
</cylinder>
</xsl:for-each>
+
+ <divecomputer deviceid="ffffffff">
+ <xsl:attribute name="model">
+ <xsl:value-of select="/uddf/generator/name|/u:uddf/u:generator/u:name|/u1:uddf/u1:generator/u1:name|/UDDF/history/modified/application/name"/>
+ </xsl:attribute>
+
<depth>
<xsl:for-each select="greatestdepth|informationafterdive/greatestdepth|u:greatestdepth|u:informationafterdive/u:greatestdepth|u1:greatestdepth|u1:informationafterdive/u1:greatestdepth|max_depth">
<xsl:attribute name="max">
@@ -542,6 +541,7 @@
</xsl:if>
</sample>
</xsl:for-each>
+ </divecomputer>
</dive>
</xsl:template>