I have an xml file where the data is as below and basically I need to copy all the information in the consignment section and to copy all the trackingevents to a new XML file but sorting the tracking events by date / time order.
Your XSLT copies all the nodes by default
and soes something similar with the consignment elementso yes, you get an identical copy of the input to the output
Is that what you want?
Exactly the same output, but with the tracking sorted?
Thanks for helping Gertone. It was a long day yesturday and I could have been more descriptive.
Yes basically from the whole file I just want to return everything within the consignment and trackingevents nodes and doing the sort on the tracking events.
I have copied your code from above and altered the line
it is very unclear what you want to do.
Your XSLT copies all the nodes by default
and soes something similar with the consignment elementso yes, you get an identical copy of the input to the output
Is that what you want?
Exactly the same output, but with the tracking sorted?