diff options
-rw-r--r-- | xslt/uddf-export.xslt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xslt/uddf-export.xslt b/xslt/uddf-export.xslt index 9a0325689..d4683ee12 100644 --- a/xslt/uddf-export.xslt +++ b/xslt/uddf-export.xslt @@ -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> |