xml - XQuery multiple outputs -
im trying output multiple things on xquery xml file.
for $foo in doc("foo.xml")//foo/who return $foo $bar in doc("bar.xml")//bar/too $foo/name=$too/name return $too/title
so can return $foo if remove other section. if remove $foo can return $too/title.
i cant figure out way return multiple 1 return
return $too/title $too/name $too/date
does not work
try this: return ($too/name, $too/title) etc. remember returning sequence, can 0 (), 1 ($var) or more ($one,$two) items. put them between () , separate ,
success
Comments
Post a Comment