Version 8.2.2
 —  XQuery 4 Reference Guide  —

fn:normalize-space

Return its argument with normalized whitespace.


Syntax

fn:normalize-space(string? $string) => string?

Top of page

Description

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.

Top of page

Argument

$string

string value

Top of page

Example

Top of page