[PATCH] Count the weights properly on UDDF export
Miika Turkia
miika.turkia at gmail.com
Sun Dec 14 01:06:04 PST 2014
Using node() along with the node-set seems to grab the weights properly
for me.
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
xslt/uddf-export.xslt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt
index 2180a28..89bf6c1 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>
--
1.9.1
More information about the subsurface
mailing list