I have an xml document with separators deep down in the hierarchy.
This transformation:
when applied on the provided XML document:
produces the wanted, correct result: