Grouping XML using custom XSLT

We receive Xml message which has details spread across multiple nodes and we want to Consolidate/Group the related details to single node.Below is the sample input, the message contains multiple order . It has same order occurring multiple time but with different Item and desired

4 Star
Add to favorites
E-mail Twitter Digg Facebook