aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-13 22:04:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-13 13:18:23 -0800
commit2307acd37f91597f73f34f7ccb2f884f32e32e48 (patch)
treecd456913aa6dea7c4056c8049f0b65cee962b13f
parenta06ce34123f6e836fd0a17c799ef45d4e6b66d22 (diff)
downloadsubsurface-2307acd37f91597f73f34f7ccb2f884f32e32e48.tar.gz
Include weight system on uddf import
Adjust to UDDF 3.2 specification Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--xslt/uddf.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 14a163f2c..f9872b7bd 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -224,10 +224,10 @@
</notes>
</xsl:if>
- <xsl:if test="equipment_used/weight_used &gt; 0">
+ <xsl:if test="equipment_used/weight_used|u:informationafterdive/u:equipmentused/u:leadquantity &gt; 0">
<weightsystem description="unknown">
<xsl:attribute name="weight">
- <xsl:value-of select="concat(format-number(equipment_used/weight_used, '0.0'), ' kg')"/>
+ <xsl:value-of select="concat(format-number(equipment_used/weight_used|u:informationafterdive/u:equipmentused/u:leadquantity, '0.0'), ' kg')"/>
</xsl:attribute>
</weightsystem>
</xsl:if>