I want to build up a single string by doing a series of string-joins()
across two parallel string sequences as in the following:
<string-join>
{
let $nums := ( "1", "2", "3" )
for $word at $i in ( "a", "b", "c" )
return
fn:string-join( ( $word, $nums[ $i ] ), "" )
}
</string-join>
What I want to get back is "a1b2c3". The above however returns "a1 b2 c3",
with inter-item spaces automatically inserted between each successive
evaluation of string-join() in accordance with the rules in 3.7.1.3 Content
[1]. Is there a way of suppressing these spaces, or alternatively some
other method of achieving the same result?
Howard
[1] http://www.w3.org/TR/xquery/#id-content