mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
38d78062cb
commit
fef56399b9
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue