- <when test="string-length($expr) = string-length(.) - 2">
- <XSL:with-param name="{name()}" select="{$expr}"/>
+ <when test="substring(., 1, 1) = '{' and
+ substring(., $len, 1) = '}'">
+ <XSL:with-param name="{name()}"
+ select="{substring(., 2, $len - 2)}"/>