[xquery-talk] Add value to result before a for loop
Mike Sokolov
sokolov at ifactory.com
Wed Jul 18 12:47:55 PDT 2012
On 07/18/2012 03:13 PM, Andrew Welch wrote:
>
> you can reduce it down a little further:
>
> for $i in $doc/item return concat(.....)
>
> is the same as
>
> $doc/item/concat(.....)
>
> which is what I did earlier:
>
> return string-join(('Id Name', $doc/item/concat(id, ' ', name)), '
')
>
Sorry - missed that :)
I still wonder whether
'Id Name',
$doc/item/concat(id, ' ', name)
will always work, or if you might sometimes get CRLF separators, or
spaces, or nothing at all
-Mike Sokolov
More information about the talk
mailing list