Subject:How to show summation based on certan conditions Author:(Deleted User) Date:06 Feb 2006 10:41 AM
You can use XSLT grouping to do this. At a high level, what you want to do is group on the <valueDate> element, and then loop through those groups and use the sum function to sum <contractAmount> based on <contractCurrency>.
You'll find lots of examples of XSLT grouping by searching SSDN. This topic might be a good place to start:
Subject:How to show summation based on certan conditions Author:(Deleted User) Date:07 Feb 2006 05:37 PM
Hi, Rahul. Attached is a solution that should provide what you are looking for. One thing to note is that it uses a key (formed by concatenating valueDate and contractCurrency) in order to identify unique occurrences on which to perform the sum function.
We offer free support for Stylus Studio on this site (since this is the Stylus Studio Developer Network), but if this is a generic XSLT question, you might want to consider asking it on the xsl-list mailing list, which specializes in general-purpose XSLT issues. Here is just one resource to consider: