Ghislain is perfectly right with his last comment. The latest XQuery Scripting spec allows this query.
However, I'm downgrading the priority for the 1.0 release since the scripting spec is not yet stable.
The title is not correct anymore. There is quite a tricky bug in the two tests now. Other people also ran into that problem (see http://www.w3.org/Bugs/Public/show_bug.cgi?id=5534).
Our result:
10
20
Expected Result: