1
Vote

MultiSelectDisplay not working with encoded (non alphanumeric) characters

description

This template uses the substring-before() and substring-after() functions on a loop to extract the semicolon-delimited values.
 
The trouble comes when there is an ampersand or other encoded character in the returned values. substring-before() and substring-after() are called on the encoded string returned, before an xsl transformation (i.e. disable-output-escaping="yes") can render the encoded character.
 
For example AA;B&C;DD is parsed as AA;B& amp;C;DD so the final result is
 
AA|B&amp|C|DD

comments