Hi, complete newbie from XSL perspective and would appreciate any help on the following:
Given the XML below what XSL would I need to do an equivalent of the SQL
SUM(quantity) group by id
e.g
<parts>
<part><id>123<\id><quantity>200</quantity></part>
<part><id>123<\id><quantity>100</quantity></part>
<part><id>456<\id><quantity>900</quantity></part>
<part><id>678<\id><quantity>600</quantity></part>
<part><id>123<\id><quantity> 50</quantity></part>
</parts}
to give output something like
ID=123 quantity=350
ID=456 quantity=900
ID=678 quantity=600
In order to understand recursion, you must first understand recursion.
Given the XML below what XSL would I need to do an equivalent of the SQL
SUM(quantity) group by id
e.g
<parts>
<part><id>123<\id><quantity>200</quantity></part>
<part><id>123<\id><quantity>100</quantity></part>
<part><id>456<\id><quantity>900</quantity></part>
<part><id>678<\id><quantity>600</quantity></part>
<part><id>123<\id><quantity> 50</quantity></part>
</parts}
to give output something like
ID=123 quantity=350
ID=456 quantity=900
ID=678 quantity=600
In order to understand recursion, you must first understand recursion.