Calculating a Sum of Sums Using msxsl:node-set()
The initial example for sum of sums uses an XML document for an invoicing application. A common objective of an invoicing application is to show, for each item purchased, the number of items purchased, the unit price, and the total price. This could be accomplished with the XSLT file shown in the initial example in this section, inv.xsl.
This section contains the following topics:
- Initial Example for Sum of Sums
- Calculating a Sum of Sums (First Attempt)
- Calculating a Sum of Sums (Second Attempt)
- Calculating a Sum of Sums (Final Version)