Description
The fn:string-join function concatenates a sequence of strings. The $arg1 argument specifies the sequence of strings to concatenate, while $arg2 specifies the separator. If $arg2 is a zero-length string, no separator is used.
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 TypeName | Type | Description |
$arg1 |
xs:string* |
the sequence of strings to join |
$arg2 |
xs:string |
the delimiter |
return value |
xs:string |
ExamplesXPath Example | Results |
---|
string-join( ('a', 'b', 'c'), '') |
abc |
string-join( ('a', 'b', 'c'), '/*') |
a/*b/*c |
string-join( ('a', '', 'c'), '/*') |
a/*/*c |
string-join( 'a', '/*') |
a |
string-join((), '/*') |
zero-length string |
See AlsoHistory |
Recommended Reading:
|