mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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>
|
||||
</link>
|
||||
</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>
|
||||
<leadquantity><xsl:value-of select="substring-before(weightsystem/@weight, ' ')"/>
|
||||
<leadquantity>
|
||||
<xsl:value-of select="sum(xt:node-set($trimmedweightlist)/weight)"/>
|
||||
</leadquantity>
|
||||
</equipmentused>
|
||||
</informationbeforedive>
|
||||
|
|
Loading…
Reference in a new issue