Custom XML export, apply XSL

I have a view with REST export to XML up and running. The format though is not consumable by the service it is intended for.

I have a very simple XSL that makes the output compatible. Can I write a module that takes the view output and applies the transform?

Thank you in advance

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed