[xquery-talk] suppressing inter-item spaces

Howard Katz howardk at fatdog.com
Wed Jul 6 08:18:00 PDT 2005

I want to build up a single string by doing a series of string-joins()
across two parallel string sequences as in the following:

      let $nums := ( "1", "2", "3" )
      for $word at $i in ( "a", "b", "c" )

            fn:string-join( ( $word, $nums[ $i ] ), "" )

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 Content
[1].  Is there a way of suppressing these spaces, or alternatively some
other method of achieving the same result?


[1] http://www.w3.org/TR/xquery/#id-content

More information about the talk mailing list