XSL transforms are already used to provide the charts of accounts in multiple languages for countries where several languages are commonly used, for example: https://hg.tryton.org/modules/account_be/file/d429b0c6650f/localize.xsl
I’m not sure whether anyone has investigated using them to generate other files though.
There is also this topic you may be interested in: Templating the XML files - #6 by albert