On 18 July 2012 20:08, David Lee <[email protected]> wrote:
> Prety sure you can avoid the text {} and () and just do
>
>
>
> "Id	Name",
>
> for $i in $doc/item return
>
> concat($i/id, "	", $i/name)
>
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)), ' ')
--
Andrew Welch
http://andrewjwelch.com
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk