Dear Arve,
Ouch! The behavior is indeed as expected in 7.7. It is unexpected (and non-conformant) in 7.7 beta.
The saddest thing is that I have 7.7 installed and could have tried it there before posting. :-(
Cheers, Wendell Wendell Piez | http://www.wendellpiez.com XML | XSLT | electronic publishing Eat Your Vegetables _____oo_________o_o___ooooo____ooooooo_^
On Mon, Sep 2, 2013 at 2:05 AM, Arve Gengelbach ag@basex.org wrote:
Hi Wendell,
running your query on any database with BaseX version 7.7, everything works as expected. Using the latter version?
cheers, Arve
Am 01.09.13 18:21, schrieb Wendell Piez:
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 mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk