I'm struggling with XSLT 1.0 and I hope someone can help me. This is the first time I use it. See XML below. I need to sum the Deposits for each Type. I've created a table per Type, so in the rows i show the product and in the last column I show the deposits. In the last row I want to sum the deposits for that Type. What will be the good approach?
<Letter>
<Information>
<Product>
<Type>Type1</Type>
</Product>
<Transactions>
<Deposits>150</Deposits>
</Transactions>
</Information>
</Letter>
<Letter>
<Information>
<Product>
<Type>Type1</Type>
</Product>
<Transactions>
<Deposits>120</Deposits>
</Transactions>
</Information>
</Letter>
<Letter>
<Information>
<Product>
<Type>Type2</Type>
</Product>
<Transactions>
<Deposits>120</Deposits>
</Transactions>
</Information>
</Letter>