[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] sum function used for values within a node
I am returning values back from a recordset and populating nodes with the values. I am struggling to sum those values once they have all been returned. for example: I am returning each value from completed_setup with a for-each loop. <xsl:for each Record/Reseller_ID> <xsl:value-of select="./CLI/COMPLETED_SETUP"/> </xsl:end each> Later on what I want to do is to sum all values held within the <completed_setup>node and write out in a seperate cell. The code im currently using is : <xsl:value-of select="sum(../CLI/COMPLETED_SETUP)"/> wihich is outide the above loop. Also is it possible to create seperate tables within the stylesheet that appear at after a recordset has been displayed. I have displayed values back from a recordset howver I wish to have a final total table at the end of the report which is written back. currently I have put this as a seperate table aoutise the loop which processes invididual customers however this total table appear at the bottom of each report page - I just want it at the end of the report. I'm very new to XSL at the moment so I hope somebody can help. Thanks, Michael. **************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. **************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|