Dear BaseX,
Running in the GUI, I execute:
let $source := (/)[1]
let $wrapped := <wrapper> { $source/*/* } <new/> </wrapper>
return $wrapped/*/name()
I expect to get a sequence of the names of element children of the document (root) element of the first entry in the currently open database, with a 'new' element named at the end.
Instead, I get 'new' followed by the names of the elements in the document, with 'new' first. (And I see 'new' for ($insert/*/name())[1] and not for ($insert/*/name())[last()].)
When I look at $insert itself, the document itself looks like what I expect.
Where am I going wrong, or is this a bug?
Cheers, Wendell
Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^
basex-talk@mailman.uni-konstanz.de