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>
This commit is contained in:
Miika Turkia 2014-12-13 22:04:37 +02:00 committed by Dirk Hohndel
parent a06ce34123
commit 2307acd37f

View file

@ -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>