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
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to