Visit Mozilla.org

XPath:Functions:normalize-space

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents


The normalize-space function strips leading and trailing white-space from a string, replaces sequences of whitespace characters by a single space, and returns the resulting string.

[edit] Syntax

normalize-space( [string] )

[edit] Arguments

string (optional)
The string to be normalized. If omitted, string used will be the same as the context node converted to a string.

[edit] Returns

The normalized string.

[edit] Defined

XPath 1.0 4.2

[edit] Gecko support

Supported.