In XSLT 2.0, is there an easy way to replace named placeholders in a string?
I'm thinking of something like Python's string.Template, where you can do this:
d = dict(name='Joe', age='50')
print Template("My name is $name and my age is $age").substitute(d)
The point is to externalize the string, so it can be easily changed. The only way I've found so far is to use a named xsl:template with parameters, but this is pretty verbose. Is there an easier way?