mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Aggregate multiple weights into UDDF export.
Sum together all of the weights recored on a dive to use in the <leadquantity> tag in UDDF export. Signed-off-by: Martin Long <martin@longhome.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
18aa6f5ed8
commit
434f19cf56
1 changed files with 9 additions and 1 deletions
|
@ -248,8 +248,16 @@
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</link>
|
</link>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:variable name="trimmedweightlist">
|
||||||
|
<xsl:for-each select="weightsystem">
|
||||||
|
<weight>
|
||||||
|
<xsl:value-of select="substring-before(@weight, ' ')"/>
|
||||||
|
</weight>
|
||||||
|
</xsl:for-each>
|
||||||
|
</xsl:variable>
|
||||||
<equipmentused>
|
<equipmentused>
|
||||||
<leadquantity><xsl:value-of select="substring-before(weightsystem/@weight, ' ')"/>
|
<leadquantity>
|
||||||
|
<xsl:value-of select="sum(xt:node-set($trimmedweightlist)/weight)"/>
|
||||||
</leadquantity>
|
</leadquantity>
|
||||||
</equipmentused>
|
</equipmentused>
|
||||||
</informationbeforedive>
|
</informationbeforedive>
|
||||||
|
|
Loading…
Add table
Reference in a new issue