# fn:string-join - XPath XQuery Reference

Returns a string created by concatenating the items in a sequence, with a defined
            separator between adjacent items.deterministiccontext-independentfocus-independentThe effect of calling the single-argument version of this function is the same as
            calling the two-argument version with $arg2 set to a zero-length
            string.The function returns an xs:string created by casting each item 
            in the sequence $arg1 to an xs:string, 
            and then concatenating the result strings in order, 
            using the value of $arg2 as a
            separator between adjacent strings. If the value of $arg2 is the zero-length
            string, then the members of $arg1 are concatenated without a separator.fn:string-join(1 to 9)"123456789"fn:string-join(('Now', 'is', 'the', 'time', '...'),
                  ' ')"Now is the time ..."fn:string-join(('Blow, ', 'blow, ', 'thou ', 'winter ', 'wind!'),
                  '')"Blow, blow, thou winter wind!"fn:string-join((), 'separator')""fn:string-join(1 to 5, ', ')"1, 2, 3, 4, 5"<doc>
  <chap>
    <section xml:id="xyz"/>
  </chap>
</doc>$doc//@xml:id ! fn:string-join((node-name(), '="', ., '"'))'xml:id="xyz"'$doc//section ! fn:string-join(ancestor-or-self::*/name(), '/')"doc/chap/section"If the value of $arg1 is the empty sequence, the function returns the
            zero-length string.