I need help with an XSLT problem. I haven’t had much time to search but for what I did I couldn’t find an answer. I have xml with five fields: Policy_Type, Policy_Date, State, Zip, and amount Paid. I need to find a way to add the Amount Paid fields together for all entries that have the same Policy_Type, Policy_Date, State, and Zip. Does anyone have a suggestion on best practice for going about this in XSL?
Also these fields are being pulled from an Interbase database. If there is a way of doing this through SQL statements that would welcome as well. I’m not as comfortable with Interbase though.
This transformation:
when applied on the following XML document (as no source XML document is provided!):
produces the wanted, correct result:
Explanation: Muenchian grouping.