From: Vyacheslav S. <vya...@gm...> - 2009-11-27 21:36:14
|
let $a := document {<items> <item id="1"> <detail version="1"> <info>xxx</info> </detail> <detail version="2"> <info>xxxx</info> </detail> <detail version="3"> <info>xxxxx</info> </detail> </item> <item id="2"> <detail version="1"> <info>yyy</info> </detail> </item> </items>} return $a//items/item/detail[@version=max(../detail/@version)] 2009/11/28 David Voňka <dav...@gm...>: > Posted to the tracker as requested. > > Thanks for all the reactions, > David > > 2009/11/27 Dannes Wessels <di...@ex...>: >> Hitting the button too fast >> On 27 Nov 2009, at 20:55 , Dannes Wessels wrote: >> >> return $a//items/item/detail[@version=max(../detail/@version)] >> yields into nothing for saxon.... >> >> return $a//item/detail[@version=max(../detail/@version)] >> :-/ >> >> Kind regards >> Dannes >> -- >> eXist-db Native XML Database - http://exist-db.org >> Join us on linked-in: http://www.linkedin.com/groups?gid=35624 >> >> >> >> >> >> >> >> > |