The normalize-space() function removes leading and trailing whitespace from a string, and replaces internal sequences of whitespace with a single space character.
For example, the expression «normalize-space('x	 y ') » returns the string «x y » .
Argument | Data Type | Meaning |
---|---|---|
value (optional) | xs:string? | The input string. If the argument is omitted, it defaults to the string value of the context item |
Result | xs:string | A string obtained by removing leading and trailing whitespace from the input string, and replacing internal sequences of whitespace by a single space character |