functx:capitalize-first

Capitalizes the first character of a string

Description

The functx:capitalize-first function capitalizes the first character of $arg. If the first character is not a lowercase letter, $arg is left unchanged. It capitalizes only the first character of the entire string, not the first letter of every word.

Parameters

Description

arg:string()

the word or phrase to capitalize

Examples

XPath

Results

functx:capitalize-first(‘hello’)

Hello

functx:capitalize-first(‘hello world’)

Hello world

functx:capitalize-first(‘Hello world’)

Hello world

See Also