TOC PREV NEXT INDEX

Netscape XSLT


normalize-space()


The normalize-space() removes extra whitespace characters from a string.

Syntax:

string normalize-space(value[optional]) 

Arguments:

Optionally, a value. If the argument is not a string, it is converted using the rules of the string() function. If no argument is specified, the function uses the string value of the context node.

Result:

The argument string with all leading whitespace and all trailing whitespace removed, and any sequence of whitespace characters within the string replaced by a single whitespace character.

Defined: XPath, section 4.2.

NS support: Supported.


Send comments on this document to devdoc-feedback@netscape.com
TOC PREV NEXT INDEX