I'm interested in getting back a specific range of results, say from 99 to 199, or, perhaps, the last JSON
object. While this works for small numbers or ranges, how can it be generalized or expanded to a larger range?
xquery version "3.0";
for $i in (1,2,3)
for $line in db:open("json_people")
return $line/json/_[$i]
db:open
really return lines? Could you please replace the database function with an XML snippet that allows us to run your code without further modifications? – Christian Grünline
is a bad name, yes. I kept trying from (99..199) or other variations but couldn't find the correct syntax. – Thufir