Spaces on XSLT
Eliminate NewLine or Carriage Return from element
translate(., ' ', '')
when this expression is evaluated, the result is the string value of the current node from which any
NL or CR characters are removed.
Do note that no other characters are deleted or modified, so this is a more precise solution and may
be preferrable in some cases over normalize-space()