fn:upper-case function

The fn:upper-case function converts a string to uppercase.

Syntax

Read syntax diagramSkip visual syntax diagramfn:upper-case( source-string)
source-string
The string that is to be converted to uppercase.

source-string has the xs:string data type, or is an empty sequence.

Returned value

If source-string is not an empty sequence, the returned value is the xs:string value source-string, with each character converted to its uppercase correspondent. Every character that does not have an uppercase correspondent is included in the returned value in its original form.

If source-string is the empty sequence, the returned value is a string of length zero.

Examples

The following function converts the string 'Test literal 1' to uppercase.
fn:upper-case("Test literal 1")

The returned value is "TEST LITERAL 1".

The argument of the following function resolves to "ii".

fn:upper-case("ıi")

The returned value is "II".