A possible method might be to utiilize chaining or branching – although I have never used either for that purpose.
So you would like to have a ‘library’ of canned Xlate sub-modules you can invoke from other modules?
I think that would be a challenge to get done correctly since different vendors deploy sections of a given message differntly so a given routine might work for one integration but not for another. That might be more headache than it is worth.
In my opinion code duplication is not inherently bad despite what might be taught in today’s curriculum or be the current ‘trend’. Code duplication may properly occur and I submit in the case of Xlates that is probably the case.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.