{ let $prods := doc("Data.xml")//car for $prod in $prods return if ($prod is $prods[last()]) then concat($prod/name,".") else concat($prod/name,", ") }
name 1, name 2, name 3.