Count the weights properly on UDDF export

Using node() along with the node-set seems to grab the weights properly
for me.

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-14 11:06:04 +02:00 committed by Dirk Hohndel
parent 38d78062cb
commit fef56399b9

View file

@ -581,8 +581,8 @@
</visibility>
<equipmentused>
<leadquantity>
<xsl:if test="sum(xt:node-set($trimmedweightlist)) >= 0">
<xsl:value-of select="sum(xt:node-set($trimmedweightlist))"/>
<xsl:if test="sum(xt:node-set($trimmedweightlist)/node()) >= 0">
<xsl:value-of select="sum(xt:node-set($trimmedweightlist)/node())"/>
</xsl:if>
</leadquantity>
</equipmentused>