I need to use XSLT 1.0 and I can calculate the subtotal for each item by using the recrusive template but how can I calculate the total for all items? Do I need to write 2 recrusive template?
Subject:old 'sum of price times quantity' problem Author:Minollo I. Date:11 Apr 2006 11:21 AM
Not sure I understand the question; the method above may have a performance cost caused by the //sub-item search; if you have a large document, you may want to constrain that search a bit, making the path as explicit as you can... But that's not necessarily true if your XSLT processor is integrated with some form of repository that provides indexing on elements...