adding characters to a word untill max charactercount is achieved
This is an open discussion with 1 reply, filed under XSLT.
Search
The EXSLT padding()
function should be useful here. Passing it the number of characters and a character and it returns a string of that length. So you’d first need to check your string length (string-length('aword')
) and subtract this from the number of characters you want to end with, passing this difference to the str:padding()
function.
Create an account or sign in to comment.
How would I go about extending the charactercount with spaces for any giving word?
should become