fn:upper-case

Return upper-cased value of a string.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

fn:upper-case(xs:string $arg) => xs:string

Description

This function returns the value of the string argument in upper case by translating each character in its upper-case equivalent on its own. If the value of $arg is the empty sequence, the string of length zero is returned.

Note that not every character has an upper case equivalent. Also, the case mapping functions are not inverse to each other. This means that neither upper-case(lower-case($arg)) nor lower-case(upper-case($arg)) are guaranteed to yield $arg.

Argument

$arg

string value

Example

  • This query returns the string value "ABC!D":

    lower-case("aBc!D")