Edward, 

I guess MarkLogic and bdb might have relaxed the standard a little here, again: (i to j)[x to y] is not part of the stanard. 
I tried some other available engines (eXist, Zorba & Saxon), they all (correctly) refuse to run your query. 

To be portable you have to modify the code, but if we are talking only about positional access this should be pretty straight-forward.

Hope this helps

Michael
Am 05.11.2011 um 15:20 schrieb 方立厅:

Hi Michael,
   Thanks for your replying.
   So this BaseX does not compatible to XQuery 1.0 by this feature?
   "(/org)[$start to $end]" query excuted well in marklogic and bdbxml.

And I need a solution to make my existing xquery modules could be exuted in BaseX without modifying the codes.
Any suggestion?

Thank you,