home contribute faq download

FunctX XSLT Functions

fn:upper-case

Converts to upper case

Google
Webxsltfunctions.com

Description

The fn:upper-case function converts a string to upper case. The mappings between lowercase and uppercase characters are determined by Unicode case mappings. If a character in $arg does not have a corresponding uppercase character, it is included in the result string unchanged.

This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book.

Arguments and Return Type

NameType
$arg xs:string?
return value xs:string

Examples

XPath ExampleResults
upper-case('query')
QUERY
upper-case('QUERY')
QUERY
upper-case('Query')
QUERY
upper-case('query-123')
QUERY-123

See Also

functx:capitalize-firstCapitalizes the first character of a string
functx:format-as-title-enMoves title words like "the" and "a" to the end of strings
fn:lower-caseConverts to lower case

History

Published OnLast UpdatedContributor(s)
2006-06-272007-02-26W3C, XQuery 1.0 and XPath 2.0 Functions and Operators, http://www.w3.org/TR/xpath-functions/
Datypic XSLT Services

Recommended Reading:

XQuery