At runtime I can have two formats of a XML file:
I don't get it - apart from some slight syntax tweak towards using apply-templates:
There's not much we can tell you without knowing what you actually want to do.