The requirement is that subtotals need to be added for each group(group's atrriute is partnerid in summaryReport) in my summary report.
The object(summaryReport) are splitted into row1 and row2 respectively to fullfill our requirements.
Let's assume I have three records in summaryreport list.when the list is iterating in for-each loop, i have to check the current record's partnerid with next's
partnerid and do the summation(ie:subtotal) for each attribute in summary report till partner id is 1 and displays subtotal at end of each group.similarly i have to do for other group as well.
As i am new to this xsl, i am bit struggling to implement the above scenario.
1) How to compare the first and record object in for-each based on group(partner-id)?
2) how to do the summation for each group(partnerid)attributes?
I edited your post to use the "code" tags to delimit code instead of the "bold" tags. Notice how it makes the code more readable and prevents your XSLT elements from being converted to smilies? Much easier to read.