Skip to content

XQuery String Functions

Explore the essential XQuery string functions for text manipulation, including string-length(), concat(), and string-join(), with usage examples and shared compatibility across XSLT 2.0, XPath 2.0, and XQuery 1.0.

XQuery String Functions

The following table lists the commonly used string functions provided by XQuery.

Name Description
string-length($string as xs:string) as xs:integer It returns the length of the string.
concat($input as xs:anyatomictype?) as xs:string It returns the concatenated string as output.
string-join($sequence as xs:string*, $delimiter as xs:string) as xs:string It returns the combination of items in a sequence separated by a delimiter.
Navigation