diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2014-12-13 22:04:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-13 13:18:23 -0800 |
commit | 2307acd37f91597f73f34f7ccb2f884f32e32e48 (patch) | |
tree | cd456913aa6dea7c4056c8049f0b65cee962b13f /xslt | |
parent | a06ce34123f6e836fd0a17c799ef45d4e6b66d22 (diff) | |
download | subsurface-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>
Diffstat (limited to 'xslt')
-rw-r--r-- | xslt/uddf.xslt | 4 |
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 > 0"> + <xsl:if test="equipment_used/weight_used|u:informationafterdive/u:equipmentused/u:leadquantity > 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> |