I need to get this following output xml from the XSL file for this source XML document. I have attached the source xml and the output xml. As you can see from the output:
Should be depend on the:
<ItemNo> 1 </ItemNo>
For each new ItemNo and ProductCode should produce a new <Accommodation RPH="2"> with RPH value increase by 1. Also depend on the <Passenger>
will determine which room each passenger will be occupying as ItemNo will represent roomno and <PassengerListItem RPH="1">
RPH will increase by one for each passenger in the passengerListItem.