Return its argument with normalized whitespace.
fn:normalize-space(string? $string) => string?
This function returns the argument with normalized whitespace. Normalizing whitespace includes stripping leading and trailing whitespace and replace more than one whitespace character with a single whitespace character.
$string |
string value |
---|
Return the normalized form of a string with lots of spaces:
normalize-space(" lots of spaces everywhere ... ")
This returns the string "lots of spaces everywhere ...".
The following construct(s) refer to this construct: