summaryrefslogtreecommitdiffstats
path: root/xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-14 11:06:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-14 10:06:34 -0800
commitfef56399b9863587d967a7077b5b84aef112f6c7 (patch)
tree9379098f898085b1ac03623cd0869da37460cbad /xslt
parent38d78062cb1bb82e1a8419b75b511a9b040029d6 (diff)
downloadsubsurface-fef56399b9863587d967a7077b5b84aef112f6c7.tar.gz
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>
Diffstat (limited to 'xslt')
-rw-r--r--xslt/uddf-export.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index 2180a2806..89bf6c137 100644
--- a/xslt/uddf-export.xslt
+++ b/xslt/uddf-export.xslt
@@ -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>