This content has been marked as final. Show 3 replies
Not pretty but how about
concat(string1, substring(padding1, string-length(string1)),
string2, substring(padding2, string-length(string2)),
string3, substring(padding3, string-length(string3)))
string1, string2 and string3 would be expressions to the 3 initial strings.
padding1, padding2, and padding3 would be three strings consisting of the number of padding characters required.
Then the substring operation would return enough padding characters to make the the length of the string and its padding the same length as the original padding string.
Of course I may be missing a more elegant solution. I don't consider writing my own XPath function to pad strings elegant!
<from expression="concat("Test 1","Test 2","Test 3")"/>
thanks for the response..
at the moment it seems like this is the most elegant solution.
thanks for the help.