|
|
|
|
|
by crdoconnor
4215 days ago
|
|
I would use a language that has a decent XML parser (e.g. python + lxml) for input and a decent templating language (e.g. jinja2) for output. Assuming it was a simple transformation, the python parsing code could be under 10 lines. Most of what you wrote would be templating. It would be 98% declarative. If it got complicated though (e.g. you're doing some aggregation or something), the python bit would grow but it probably never end up looking that horrendous, unlike XSLT. The same pattern could be applied to many other language ecosystems. You just need to make sure you get the best XML parsing library and the best templating language. |
|