Might be worth looking at how [ncdhc/dpla-sample-repox-xslt](https://github.com/ncdhc/dpla-sample-repox-xslt) does OAI to MODS just for a more sane, template-based approach to XSLT.