XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to next topicNext Topic
Posttop
Robin SmithSubject: Sum function not returning results
Author: Robin Smith
Date: 28 Apr 2025 02:52 PM
I am using a data transform document created in Stylus Studio for an Adobe form. This is being updated for a new document that has an addition field that includes a sum function. This is what I have added:

<xsl:template name="EquipmentValue">
<xsl:variable name="CollValue">
<xsl:value-of select="AS/UD.EQUIP.COLL.VALUE"/>
</xsl:variable>
<xsl:variable name="TotalCollValue">
<xsl:value-of select="sum($CollValue)"/>
</xsl:variable>
</xsl:template>

When creating the PDF document, the field that I have the template built for is just returning blank. It is not summing up the totals of all the UD.EQUIP.COLL.VALUE fields as expected.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.