What started out as a simple thing has turned out quite troublesome for XSLT noob.
Trying to sort childnodes/descending but, after adding an attribute to their pare
This transformation:
when applied on the provided XML document:
produces the wanted, correct result: