Using the below XML, I need to figure out which person worked more hours in each site. For instance in the below XML, person 1 worked 8 hours in site 1 but person 2 worked o
This XSLT 1.0 transformation:
when applied on the provided XML document:
8
2
9
6
10
2
produces the wanted, correct result:
Do note:
The use of the Muenchian method for grouping to find all different Site
values.
The way maximum is found by sorting in descending order and getting the first result from the sorted node-list.