DataPower does provide many languages for you to do what is needed:
- XSLT (XPath 1.0)
- XQuery/JSONiq (XPath 2.0)
Since ages extensions were available to mix languages like "dp:schema-validate()" ["dp:transform()"].
With 18.104.22.168 three new extensions became available for you to mix (if you want).
Here is what you can do (you can edit the graph if you want) as SVG, with links that point to Knowledge Center: