On 18 July 2012 20:08, David Lee <[email protected]> wrote:
> Prety sure you can avoid the text {} and ()  and just do
>
>
>
> "Id&#9;Name",
>
>   for $i in $doc/item return
>
>      concat($i/id,  "&#9;", $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&#9;Name', $doc/item/concat(id, '&#9;', name)), '&#10;')




-- 
Andrew Welch
http://andrewjwelch.com
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to